/*jquery-comments.js 1.4.0

(c) 2017 Joona Tykkyläinen, Viima Solutions Oy
jquery-comments may be freely distributed under the MIT license.
For all details and documentation:
http://viima.github.io/jquery-comments/*/

.jquery-comments * {
	box-sizing: border-box;
	text-shadow: none;
}

.jquery-comments a[href]:not(.tag) {
	color: #2793e6;
	text-decoration: none;
}

.jquery-comments a[href]:not(.tag):hover {
	text-decoration: underline;
}

.jquery-comments .textarea, .jquery-comments input, .jquery-comments button {
	-webkit-appearance: none;
	-moz-appearance: none;
	-ms-appearance: none;
	appearance: none;

	vertical-align: top;
	border-radius: 0;
	margin: 0;
	padding: 0;
	border: 0;
	outline: 0;
	background: rgba(0, 0, 0, 0);
}

.jquery-comments button {
	vertical-align: inherit;
}

.jquery-comments .tag {
	color: #d40606;
	font-size: 1em;
	line-height: 1.2em;
	background: #fff0f0;
/**	border: 1px solid #d40606; **/
	padding: 0.05em 0.4em;
	cursor: pointer;
	font-weight: bold;
	border-radius: 4px;
	transition: all 0.2s linear;
	white-space: nowrap;
	display: inline-block;
	text-decoration: none;
}

.jquery-comments .attachments .tag {
	white-space: normal;
	word-break: break-all;

	padding: 0.05em 0.5em;
	line-height: 1.3em;

	margin-top: 0.3em;
	margin-right: 0.5em;
}

.jquery-comments .attachments .tag > i:first-child {
	margin-right: 0.4em;
}

.jquery-comments .attachments .tag .delete {
	display: inline;
	font-size: 14px;
	color: #888;

	position: relative;
	padding: 2px;
	padding-right: 4px;
	right: -4px;
}

.jquery-comments .attachments .tag:hover .delete {
	color: black;
}

.jquery-comments .tag:hover {
	text-decoration: none;
}

.jquery-comments .tag:not(.deletable):hover {
	background-color: #d8edf8;
	border-color: #2793e6;
}

.jquery-comments [contentEditable=true]:empty:not(:focus):before{
	content:attr(data-placeholder);
	color: #CCC;
	position: inherit;
}

.jquery-comments i.fa {
	width: 1em;
	height: 1em;
	background-size: cover;
	text-align: center;
}

.jquery-comments i.fa.image:before {
	content: "";
}

.jquery-comments .spinner {
	font-size: 2em;
	text-align: center;
	padding: 0.5em;
	margin: 0;
	color: #666;
}

.jquery-comments .spinner.inline {
	font-size: inherit;
	padding: 0;
	color: #fff;
}

.jquery-comments ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.jquery-comments .profile-picture {
	float: left;
	width: 3.6rem;
	height: 3.6rem;
	max-width: 50px;
	max-height: 50px;
	background-size: cover;
	background-repeat: no-repeat;
	background-position: center center;
}

.jquery-comments i.profile-picture {
	font-size: 3.4em;
	text-align: center;
}

.jquery-comments .profile-picture.round {
	border-radius: 50%;
}

.jquery-comments .commenting-field.main{
	margin-bottom: 0.75em;
	width: 100%
}

.jquery-comments .commenting-field.main .profile-picture {
	margin-bottom: 1rem;
}

.jquery-comments .textarea-wrapper {
	overflow: hidden;
	padding-left: 15px;
	position: relative;
}

.jquery-comments .textarea-wrapper:before {
	content: " ";
	position: absolute;
	border: 5px solid #D5D5D5;
	left: 5px;
	top: 0;
	width: 10px;
	height: 10px;
	box-sizing: border-box;
	border-bottom-color: rgba(0, 0, 0, 0);
	border-left-color: rgba(0, 0, 0, 0);
}

.jquery-comments .textarea-wrapper:after {
	content: " ";
	position: absolute;
	border: 7px solid #FFF;
	left: 7px;
	top: 1px;
	width: 10px;
	height: 10px;
	box-sizing: border-box;
	border-bottom-color: rgba(0, 0, 0, 0);
	border-left-color: rgba(0, 0, 0, 0);
}

.jquery-comments .textarea-wrapper .inline-button {
	cursor: pointer;
	right: 0;
	z-index: 10;
	position: absolute;
	border: .5em solid rgba(0,0,0,0);
	box-sizing: content-box;
	font-size: inherit;
	overflow: hidden;
	opacity: 0.5;

	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}

.jquery-comments .textarea-wrapper .inline-button:hover {
	opacity: 1;
}

.jquery-comments:not(.mobile) .commenting-field-scrollable .textarea-wrapper .inline-button {
	margin-right: 15px;	/* Because of scrollbar */
}

.jquery-comments .textarea-wrapper .inline-button i {
	font-size: 1.2em;
}

.jquery-comments .textarea-wrapper .upload input {
	cursor: pointer;
	position: absolute;
	top: 0;
	right: 0;
	min-width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	opacity: 0;
}

.jquery-comments .textarea-wrapper .close {
	width: 1em;
	height: 1em;
}

.jquery-comments .textarea-wrapper .textarea {
	margin: 0;
	outline: 0;
	overflow-y: auto;
	overflow-x: hidden;
	cursor: text;

	border: 1px solid #CCC;;
	background: #FFF;
	font-size: 1em;
	line-height: 1.45em;
	padding: .25em .8em;
	padding-right: 2em;
}

.jquery-comments:not(.mobile) .commenting-field-scrollable .textarea-wrapper .textarea {
	padding-right: calc(2em + 15px);	/* Because of scrollbar */
}

.jquery-comments .textarea-wrapper .control-row > .attachments {
	padding-top: .3em;
}

.jquery-comments .textarea-wrapper .control-row > span {
	float: right;
	line-height: 1.6em;
	margin-top: .4em;
	border: 1px solid rgba(0, 0, 0, 0);
	color: #FFF;
	padding: 0 1em;
	font-size: 1em;
	opacity: .5;
}

.jquery-comments .textarea-wrapper .control-row > span:not(:first-child) {
	margin-right: .5em;
}

.jquery-comments .textarea-wrapper .control-row > span.enabled {
	opacity: 1;
	cursor: pointer;
}

.jquery-comments .textarea-wrapper .control-row > span:not(.enabled) {
	pointer-events: none;
}

.jquery-comments .textarea-wrapper .control-row > span.enabled:hover {
	opacity: .9;
}

.jquery-comments .textarea-wrapper .control-row > span.upload {
	position: relative;
	overflow: hidden;
	background-color: #999;
}

.jquery-comments ul.navigation {
	clear: both;

	color: #999;
	border-bottom: 2px solid #CCC;
	line-height: 2em;
	font-size: 1em;
	margin-bottom: 0.5em;
}

.jquery-comments ul.navigation .navigation-wrapper {
	position: relative;
}

.jquery-comments ul.navigation li {
	display: inline-block;
	position: relative;
	padding: 0 1em;
	cursor: pointer;
	text-align: center;

	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}

.jquery-comments ul.navigation li.active,
.jquery-comments ul.navigation li:hover {
	color: #000;
}

.jquery-comments ul.navigation li.active:after {
	content: " ";
	display: block;
	right: 0;
	height: 2px;
	background: #000;
	position: absolute;
	bottom: -2px;
	left: 0;
}

.jquery-comments ul.navigation li[data-sort-key="attachments"] {
	float: right;
}

.jquery-comments ul.navigation li[data-sort-key="attachments"] i {
	margin-right: 0.25em;
}

.jquery-comments ul.navigation .navigation-wrapper.responsive {
	display: none;
}

@media screen and (max-width: 600px) {
	.jquery-comments ul.navigation .navigation-wrapper {
		display: none;
	}
	.jquery-comments ul.navigation .navigation-wrapper.responsive {
		display: inline;
	}
}

.jquery-comments.responsive ul.navigation .navigation-wrapper {
	display: none;
}
.jquery-comments.responsive ul.navigation .navigation-wrapper.responsive {
	display: inline;
}

.jquery-comments ul.navigation .navigation-wrapper.responsive li.title {
	padding: 0 1.5em;
}

.jquery-comments ul.navigation .navigation-wrapper.responsive li.title header:after {
	display: inline-block;
	content: "";
	border-left: 0.3em solid rgba(0, 0, 0, 0) !important;
	border-right: 0.3em solid rgba(0, 0, 0, 0) !important;
	border-top: 0.4em solid #CCC;
	margin-left: 0.5em;
	position: relative;
	top: -0.1em;
}

.jquery-comments ul.navigation .navigation-wrapper.responsive li.title.active header:after,
.jquery-comments ul.navigation .navigation-wrapper.responsive li.title:hover header:after {
	border-top-color: #000;
}

.jquery-comments ul.dropdown {
	display: none;
	position: absolute;
	background: #FFF;
	z-index: 99;
	line-height: 1.2em;

	border: 1px solid #CCC;
	box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
	-webkit-box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
	-moz-box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
	-ms-box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
}

.jquery-comments ul.dropdown.autocomplete {
	margin-top: 0.25em;
}

.jquery-comments ul.dropdown li {
	display: block;
	white-space: nowrap;
	clear: both;
	padding: 0.6em;
	font-weight: normal;
	cursor: pointer;
}

.jquery-comments ul.dropdown li.active {
	background: #EEE;
}

.jquery-comments ul.dropdown li a {
	display: block;
	text-decoration: none;
	color: inherit;
}

.jquery-comments ul.dropdown li .profile-picture {
	float: left;
	width: 2.4em;
	height: 2.4em;
	margin-right: 0.5em;
}

.jquery-comments ul.dropdown li .details {
	display: inline-block;
}

.jquery-comments ul.dropdown li .name {
	font-weight: bold;
}

.jquery-comments ul.dropdown li .details.no-email {
	line-height: 2.4em;
}

.jquery-comments ul.dropdown li .email {
	color: #999;
	font-size: 0.95em;
	margin-top: 0.1em;
}

.jquery-comments ul.navigation .navigation-wrapper.responsive ul.dropdown {
	left: 0;
	width: 100%;
}

.jquery-comments ul.navigation .navigation-wrapper.responsive ul.dropdown li {
	color: #000;
}

.jquery-comments ul.navigation .navigation-wrapper.responsive ul.dropdown li.active {
	color: #FFF;
}

.jquery-comments ul.navigation .navigation-wrapper.responsive ul.dropdown li:hover:not(.active) {
	background: #F5F5F5;
}

.jquery-comments ul.navigation .navigation-wrapper.responsive ul.dropdown li:after {
	display: none;
}

.jquery-comments .no-data {
	display: none;
	margin: 1em;
	text-align: center;
	font-size: 1.5em;
	color: #CCC;
}

.jquery-comments ul.main:empty ~ .no-comments {
	display: inherit;
}

.jquery-comments ul#attachment-list:empty ~ .no-attachments {
	display: inherit;
}

.jquery-comments ul.main li.comment {
	clear: both;
}

.jquery-comments ul.main li.comment .comment-wrapper,
.jquery-comments ul.main li.toggle-all,
.jquery-comments ul.main li.comment .commenting-field {
	padding: .5em;
}

.jquery-comments ul.main li.comment .comment-wrapper {
	border-top: 1px solid #DDD;
	overflow: hidden;
}

.jquery-comments ul.main > li.comment:first-child > .comment-wrapper {
	border-top: none;
}

.jquery-comments ul.main li.comment .comment-wrapper > .profile-picture {
	margin-right: 1rem;
}

.jquery-comments ul.main li.comment time {
	float: right;
	line-height: 1.4em;
	margin-left: .5em;
	font-size: 0.8em;
	color: #666;
}

.jquery-comments ul.main li.comment .comment-header {
	line-height: 1.4em;
	word-break: break-word;
}

.jquery-comments ul.main li.comment .comment-header > * {
	margin-right: .5rem;
}

.jquery-comments ul.main li.comment .comment-header .name {
	font-weight: bold;
}

.jquery-comments ul.main li.comment .comment-header .reply-to {
	color: #999;
	font-size: .8em;
	font-weight: normal;
	vertical-align: top;
}

.jquery-comments ul.main li.comment .comment-header .reply-to i {
	margin-right: .25rem;
}

.jquery-comments ul.main li.comment .comment-header .new {
	background: #2793e6;
	font-size: 0.8em;
	padding: 0.2em 0.6em;
	color: #fff;
	font-weight: normal;
	border-radius: 1em;
	vertical-align: bottom;
	word-break: normal;
}

.jquery-comments ul.main li.comment .wrapper{
	line-height: 1.4em;
	overflow: hidden;
}

.jquery-comments.mobile ul.main li.comment .child-comments li.comment .wrapper{
	overflow: visible;
}

/* Content */
.jquery-comments ul.main li.comment .wrapper .content {
	white-space: pre-line;
	word-break: break-word;
}

.jquery-comments ul.main li.comment .wrapper .content time.edited {
	float: inherit;
	margin: 0;
	font-size: .9em;
	font-style: italic;
	color: #999;
}

.jquery-comments ul.main li.comment .wrapper .content time.edited:before {
	content: " - ";
}

/* Attachments */
.jquery-comments ul.main li.comment .wrapper .attachments .tags:not(:empty) {
	margin-bottom: 0.5em;
}

.jquery-comments ul.main li.comment .wrapper .attachments .previews .preview {
	display: inline-block;
	margin-top: .25em;
	margin-right: .25em;
}

.jquery-comments ul.main li.comment .wrapper .attachments .previews .preview > * {
	max-width: 100%;
	max-height: 200px;
	width: auto;
	height: auto;
}

.jquery-comments ul.main li.comment .wrapper .attachments .previews .preview > *:focus {
	outline: none;
}

/* Actions */
.jquery-comments.mobile ul.main li.comment .actions {
	font-size: 1em;
}

.jquery-comments ul.main li.comment .actions > * {
	color: #999;
	font-weight: bold;
}

.jquery-comments ul.main li.comment .actions .action {
	display: inline-block;
	cursor: pointer;
	margin-left: 1em;
	margin-right: 1em;
	line-height: 1.5em;
	font-size: 0.9em;
}

.jquery-comments ul.main li.comment .actions .action:first-child {
	margin-left: 0;
}

.jquery-comments ul.main li.comment .actions .action.upvote {
	cursor: inherit;
}

.jquery-comments ul.main li.comment .actions .action.upvote .upvote-count {
	margin-right: .5em;
}

.jquery-comments ul.main li.comment .actions .action.upvote .upvote-count:empty {
	display: none;
}

.jquery-comments ul.main li.comment .actions .action.upvote i {
	cursor: pointer;
}

.jquery-comments ul.main li.comment .actions .action:not(.upvote):hover,
.jquery-comments ul.main li.comment .actions .action.upvote:not(.highlight-font) i:hover {
	color: #666;
}

.jquery-comments ul.main li.comment .actions .action.delete {
	opacity: 0.5;
	pointer-events: none;
}

.jquery-comments ul.main li.comment .actions .action.delete.enabled {
	opacity: 1;
	pointer-events: auto;
}

.jquery-comments ul#attachment-list li.comment .actions .action:not(.delete) {
	display: none;
}

.jquery-comments ul#attachment-list li.comment .actions .action.delete {
	margin: 0;
}

.jquery-comments ul#attachment-list li.comment .actions .separator {
	display: none;
}


/* Child comments */
.jquery-comments ul.main li.comment .child-comments > *:before { /* Margin for second level content */
	content: "";
	height: 1px;
	float: left;

	width: calc(3.6em + .5em);	/* Profile picture width plus margin */
	max-width: calc(50px + .5em);	/* Profile picture max width plus margin */
}

.jquery-comments ul.main li.comment .child-comments .profile-picture {
	width: 2.4rem;
	height: 2.4rem;
}

.jquery-comments ul.main li.comment .child-comments i.profile-picture {
	font-size: 2.4em;
}

.jquery-comments ul.main li.comment .child-comments li.toggle-all {
	padding-top: 0;
}

.jquery-comments ul.main li.comment .child-comments li.toggle-all span:first-child {
	vertical-align: middle;
}

.jquery-comments ul.main li.comment .child-comments li.toggle-all span:first-child:hover {
	cursor: pointer;
	text-decoration: underline;
}

.jquery-comments ul.main li.comment .child-comments li.toggle-all .caret {
	display: inline-block;
	vertical-align: middle;
	width: 0;
	height: 0;

	margin-left: .5em;
	border: .3em solid;
	margin-top: .35em;

	border-left-color: rgba(0, 0, 0, 0);
	border-bottom-color: rgba(0, 0, 0, 0);
	border-right-color: rgba(0, 0, 0, 0);
}

.jquery-comments ul.main li.comment .child-comments li.toggle-all .caret.up {
	border-top-color: rgba(0, 0, 0, 0);
	border-bottom-color: inherit;
	margin-top: -.2em;
}

.jquery-comments ul.main li.comment .child-comments .togglable-reply {
	display: none;
}

.jquery-comments ul.main li.comment .child-comments .visible {
	display: inherit;
}

.jquery-comments ul.main li.comment.hidden {
	display: none;
}

/* Editing comment */
.jquery-comments ul.main li.comment.edit > .comment-wrapper > *:not(.commenting-field) {
	display: none;
}

.jquery-comments ul.main li.comment.edit > .comment-wrapper .commenting-field {
	padding-left: 0 !important;
	padding-right: 0 !important;
}

/* Drag & drop attachments */
.jquery-comments.drag-ongoing {
	overflow-y: hidden !important;
}

.jquery-comments .droppable-overlay {
	display: table;
	position: fixed;
	z-index: 99;

	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0,0,0,0.3)
}

.jquery-comments .droppable-overlay .droppable-container {
	display: table-cell;
	vertical-align: middle;
	text-align: center;
}

.jquery-comments .droppable-overlay .droppable-container .droppable {
	background: #FFF;
	color: #CCC;
	padding: 6em;
}

.jquery-comments .droppable-overlay .droppable-container .droppable.drag-over {
	color: #999;
}

.jquery-comments .droppable-overlay .droppable-container .droppable i {
	margin-bottom: 5px;
}

/* Read-only mode */
.jquery-comments.read-only .commenting-field {
	display: none;
}
.jquery-comments.read-only .actions {
	display: none;
}




.menu-container {
	position: relative;
	display: inline-block;
}

.menu-trigger {
	background: none;
	border: none;
	font-size: 24px;
	cursor: pointer;
	padding: 0 5px;
}

.dropdown-menu {
	display: none; /* Hidden by default */
	position: absolute;
	left: 0;
	right: auto;
	background: #fff;
	border: 1px solid #ccc;
	box-shadow: 0 2px 10px rgba(0,0,0,0.1);
	z-index: 9999; /* Ensure this is higher than surrounding elements */

	width: max-content;
	flex-direction: column;
}

/* Show the menu when the container has an 'active' class */
.menu-container.active .dropdown-menu {
	display: flex;
	flex-direction: column;
}

.dropdown-menu button {
	padding: 10px;
	border: none;
	background: none;
	text-align: left;
	cursor: pointer;
}

.dropdown-menu button:hover {
	background-color: #f0f0f0;
}
/* --- BANNERS --- */
#bannerNonPano, #bannerPano {
    width: 100%;
    margin-top: -40px;
    margin-bottom: 20px;
    height: 25rem;
    overflow: hidden;
    background-repeat: no-repeat;
    background-position: center center;
}

#bannerNonPano {
    background-image: url('/go/tripimage/maxwidth?id=[[${firstImage.getEncodedId()}]]&size=1920');
    background-size: cover;
}

#bannerPano {
    background-size: 100% 25rem;
    background-image: url('/go/image?i=[[${panoImage?.imagePath}]]');
}

@media (max-width: 992px) {
    #bannerNonPano, #bannerPano { background-image: url('/go/tripimage/maxwidth?id=[[${firstImage.getEncodedId()}]]&size=992') }
}
@media (max-width: 768px) {
    #bannerNonPano, #bannerPano { background-image: url('/go/tripimage/maxwidth?id=[[${firstImage.getEncodedId()}]]&size=768') }
}
@media (max-width: 576px) {
    #bannerNonPano, #bannerPano { background-image: url('/go/tripimage/maxwidth?id=[[${firstImage.getEncodedId()}]]&size=576') }
}

/* --- WEATHER WIDGET --- */
.weather-wrapper-float {
    float: right;
    margin: 15px 0 15px 20px;
    width: 280px;
}

.weather-container {
    background: #fffafa; /* Light red tint */
    border: 1px solid #f9eaea;
    border-radius: 8px;
    padding: 12px;
    box-shadow: 0 2px 4px rgba(212, 6, 6, 0.05);
}

.weather-flex {
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.weather-day {
    text-align: center;
    flex: 1;
}

.weather-date {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #7f8c8d;
    margin-bottom: 4px;
}

.weather-temps {
    font-size: 0.85rem;
    font-weight: 600;
}

.weather-temps .high { color: #2c3e50; }
.weather-temps .low { color: #95a5a6; }
.weather-temps .temp-sep { color: #eee; margin: 0 2px; }

.weather-footer {
    text-align: center;
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid #f9eaea;
}

.weather-footer a {
    font-size: 0.75rem;
    color: #d40606; /* Brand Red */
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
}

@media (max-width: 768px) {
    .weather-wrapper-float {
        float: none;
        width: 100%;
        margin-left: 0;
    }
}

/* --- BETA OVERVIEW & STATS --- */
#beta_overview {
  line-height: 1.2;
}
#beta_overview .beta_item {
    font-size: 0.9rem;
    color: #7f8c8d;
    margin-top: 8px;
}

#beta_overview .beta_item a {
    color: #2c3e50;
    font-weight: 600;
    text-decoration: none;
}

#beta_overview .beta_item a span {
    color: #d40606; /* Brand Red */
}

#beta_overview strong.overviewLabel {
    display: inline-block;
    width: 105px;
    font-size: 0.75rem;
    color: #7f8c8d;
    letter-spacing: 0.5px;
}

#beta_overview div > span,
#beta_overview div > a {
    font-size: 0.95rem;
    color: #2c3e50;
    text-decoration: none;
}

#beta_overview > .row > .col-sm-12 > div {
    margin-bottom: 6px;
}

#ratingCountArea {
    display: inline-block;
    font-size: 0.85rem;
    color: #95a5a6;
    margin-left: 5px;
}

#ratingCountArea a { color: #95a5a6; text-decoration: none; }

/* Force the rating widget and the text to align on the same center line */
.br-theme-fontawesome-stars-o .br-widget {
    display: flex;
    align-items: center;
    line-height: 1; /* Reset any tall line-heights */
}

/* Ensure the text span is also vertically centered within the parent flexbox */
#ratingCountArea {
    display: flex;
    align-items: center;
    height: 100%;
    margin-left: 10px;
    line-height: 1;
}

/* If the "3" (current rating) text inside the stars is causing a misalignment */
.br-current-rating {
    display: inline-block;
    vertical-align: middle;
    margin-left: 10px;
}


/* --- PHOTO GALLERY --- */
#gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

#gallery a {
    height: 250px;
    flex-grow: 1;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

#gallery a img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

#gallery a:hover img { transform: scale(1.05); }

.thumb-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 10px 8px 10px;
    color: white;
    font-size: 0.85rem;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#gallery a:hover .thumb-caption { opacity: 1; }
#gallery::after { content: ""; flex-grow: 999999; }

/* --- ACCORDIONS & WAYPOINTS --- */
.custom-wp-accordion {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    margin-top: 15px;
}

.custom-wp-accordion .accordion-button {
    background-color: #fcfdfe;
    color: #2c3e50;
    font-weight: 600;
    box-shadow: none !important;
}

.custom-wp-accordion .accordion-button:not(.collapsed) {
    background-color: #fffafa; /* Light red tint */
    color: #d40606; /* Brand Red */
    border-bottom: 1px solid #f9eaea;
}

.wp-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 15px;
    border-bottom: 1px solid #f5f5f5;
}

.wp-row:nth-child(even) { background-color: #fafafa; }
.wp-row:last-child { border-bottom: none; }

.wp-desc { flex: 1; font-size: 0.95rem; color: #444; }

.wp-coords {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    min-width: 180px;
}

.wp-coords code {
    font-size: 0.8rem;
    color: #777;
    font-family: ui-monospace, monospace;
}

@media (max-width: 600px) {
    .wp-row { flex-direction: column; align-items: flex-start; gap: 5px; }
    .wp-coords { align-items: flex-start; min-width: unset; }
}

/* --- USER EXPERIENCE SECTION --- */
.experience-card {
    border: 1px solid #f9eaea;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(212, 6, 6, 0.05);
    overflow: hidden;
}

.experience-header {
    background: #fffafa;
    padding: 12px 15px;
    border-bottom: 1px solid #f9eaea;
}

.experience-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 8px;
}

.experience-row {
    padding: 12px 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-bottom: 1px solid #fcf6f6;
}

.experience-row:last-child { border-bottom: none; }

.row-label {
    font-weight: bold;
    color: #7f8c8d;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.btn-text {
    color: #d40606; /* Brand Red */
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.btn-text.active { color: #27ae60; } /* Keep green for "Success/On Todo" */

.btn-add-tick {
    background: #d40606;
    color: white;
    border: none;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
}

.trip-log-item {
    display: flex;
    gap: 12px;
    padding: 10px;
    background: #fffafa;
    border: 1px solid #f9eaea;
    border-radius: 6px;
    margin-bottom: 6px;
    font-size: 0.9rem;
}

/* --- UTILITY BAR (PDF/GPX) --- */
.download-bar {
    background-color: #fffafa; /* Light red tint */
    border-radius: 8px;
    padding: 10px 15px;
    border: 1px solid #f9eaea;
}


/* Update the download-nav to center items horizontally */
.download-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 25px;
    align-items: center;
    justify-content: center; /* Centers items horizontally */
    text-align: center;
}

/* Mobile Adjustments: Keep them centered when stacked */
@media (max-width: 768px) {
    .download-nav {
        flex-direction: column;
        align-items: center; /* Centers the items in column mode */
        gap: 12px;
    }

    .download-item {
        border-bottom: 1px solid rgba(212, 6, 6, 0.05);
        width: 100%;
        max-width: 300px; /* Optional: prevents bars from being too long on mobile */
        padding-bottom: 8px;
    }

    .download-item:last-child {
        border-bottom: none;
    }
}


.download-item a {
    color: #2c3e50;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.download-item a i { color: #d40606; font-size: 1.1rem; }

.download-item.donate-link a,
.download-item.donate-link a i { color: #d40606; }

@media (max-width: 768px) {
    .download-nav { flex-direction: column; gap: 12px; }
    .download-item { border-bottom: 1px solid rgba(212, 6, 6, 0.05); width: 100%; padding-bottom: 8px; }
}

/* --- LOGIN CTA --- */
.login-cta {
    display: flex;
    justify-content: center; /* Centers the entire content block horizontally */
    padding: 20px;
    background-color: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 8px;
    margin: 20px 0;
}

.cta-content {
    display: flex;
    align-items: center;    /* Vertically aligns icon and text */
    text-align: left;       /* Keeps text left-aligned relative to the icon */
    gap: 15px;              /* Space between icon and text */
}

.cta-icon {
    font-size: 1.8rem;
    line-height: 1;         /* Prevents icon height from bloating the container */
}

.cta-text {
    margin: 0;
    font-size: 1.05rem;
    color: #2c3e50;
}

.login-link {
    color: #d40606;
    font-weight: bold;
    text-decoration: none;
}

.login-link:hover {
    text-decoration: underline;
}

/* Mobile: Stack them if the screen is too narrow */
@media (max-width: 480px) {
    .cta-content {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
}




.jumpTo {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Centers items horizontally */
    align-items: center;
    gap: 15px; /* Adds consistent spacing between items */
    margin-bottom: 20px;
    font-size: 1.1rem;
    font-weight: 500;
}

/* Optional: Style the links to be a bit more robust on mobile */
.jumpTo a {
    color: #2c3e50;
    text-decoration: none;
    white-space: nowrap; /* Prevents a single link from breaking across lines */
    transition: color 0.2s ease;
}

.jumpTo a:hover {
    color: #d40606; /* Brand Red */
    text-decoration: none;
}

/* Style the Font Awesome icons within the jumpTo bar */
.jumpTo i {
    color: #d40606;
    margin-right: 5px;
}

/* Mobile Adjustments */
@media (max-width: 576px) {
    .jumpTo {
        gap: 10px;
        font-size: 0.95rem;
    }
}


/** Quality **/
.br-theme-fontawesome-stars-o .br-widget {
    height: 28px;
    white-space: nowrap;
}
.br-theme-fontawesome-stars-o .br-widget a {
    font: normal normal normal 20px/1 FontAwesome;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    text-decoration: none;
    margin-right: 2px;
}
.br-theme-fontawesome-stars-o .br-widget a:after {
    content: '\f006';
    color: #d2d2d2;
}
.br-theme-fontawesome-stars-o .br-widget a.br-active:after {
    content: '\f005';
    color: #EDB867;
}
.br-theme-fontawesome-stars-o .br-widget a.br-selected:after {
    content: '\f005';
    color: #EDB867;
}
.br-theme-fontawesome-stars-o .br-widget a.br-fractional:after {
    content: '\f123';
    color: #EDB867;
}
.br-theme-fontawesome-stars-o .br-widget .br-current-rating {
    display: none;
}
.br-theme-fontawesome-stars-o .br-readonly a {
    cursor: default;
}
.br-theme-fontawesome-stars-o .br-reverse a.br-fractional {
    display: inline-block;
    transform: scaleX(-1);
    -moz-transform: scaleX(-1);
    -webkit-transform: scaleX(-1);
    filter: FlipH;
    -ms-filter: "FlipH";
}
@media print {
    .br-theme-fontawesome-stars-o .br-widget a:after {
        content: '\f006';
        color: black;
    }
    .br-theme-fontawesome-stars-o .br-widget a.br-active:after,
    .br-theme-fontawesome-stars-o .br-widget a.br-selected:after {
        content: '\f005';
        color: black;
    }
    .br-theme-fontawesome-stars-o .br-widget a.br-fractional:after {
        content: '\f123';
        color: black;
    }
}
