/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */

html {
	overflow-x: hidden;
}

::-moz-selection {
    /* Code for Firefox */
    color: #fff;
    background: #294829;
}

::selection {
    color: #fff;
    background: #294829;
}

#service-container:hover {
    background: #CAA849;
}

.contact-tag {
    color: #fff;
    text-decoration: none;
}

.contact-tag:hover {
    color: #CAA849;
}




:root {
    --gold-color: #CAA849;
    --secondary-color: #1A2D1A;
    --secondary-color-hover: #294829;
}

/* Ensure Flatpickr year is fully visible, bold, and styled nicely */
.flatpickr-calendar .flatpickr-current-month .numInputWrapper {
    display: inline-block !important;
    width: 6ch !important;
}

.flatpickr-calendar .flatpickr-current-month input.cur-year {
    font-weight: 600 !important;
    color: #1a1a1a !important;
    opacity: 1 !important;
    pointer-events: none !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.flatpickr-calendar .flatpickr-current-month span.cur-year {
    font-weight: 600 !important;
    color: #1a1a1a !important;
    display: inline-block !important;
    margin-left: 0.5ch !important;
}

/* ----- Booking Popup Side Panel ----- */
.booking-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 99999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.booking-popup-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.booking-popup-content.side-panel {
    background: #fff;
    width: 100%;
    max-width: 450px;
    position: absolute;
    right: 2rem;
    bottom: 2rem;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.1);
    padding: 2rem;
}

.booking-popup-overlay.active .booking-popup-content.side-panel {
    transform: translateX(0);
}

.booking-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.booking-popup-header .panel-title {
    font-family: "Montserrat", sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: #1a1a1a;
    text-transform: uppercase;
}

.booking-popup-header .booking-popup-close {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #1a1a1a;
    padding: 0;
}

.booking-popup-header .booking-popup-close:hover {
    color: var(--gold-color);
}

.booking-form {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.flatpickr-container-wrapper {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #eaeaea;
}

.flatpickr-container-wrapper .flatpickr-calendar {
    box-shadow: none !important;
    width: 100% !important;
}

.flatpickr-container-wrapper .flatpickr-calendar .flatpickr-innerContainer {
    display: block;
}

.flatpickr-container-wrapper .flatpickr-calendar .flatpickr-rContainer {
    width: 100%;
}

.flatpickr-container-wrapper .flatpickr-calendar .flatpickr-rContainer .flatpickr-days {
    width: 100%;
}

.flatpickr-container-wrapper .flatpickr-calendar .flatpickr-rContainer .flatpickr-days .dayContainer {
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    justify-content: space-around;
}

.flatpickr-container-wrapper .flatpickr-calendar .flatpickr-rContainer .flatpickr-days .dayContainer .flatpickr-day {
    max-width: 40px;
    height: 40px;
    line-height: 40px;
}

.booking-selectors {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.booking-selector {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.booking-selector .selector-info {
    display: flex;
    flex-direction: column;
}

.booking-selector .selector-info h4 {
    font-family: "Montserrat", sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: #1a1a1a;
    margin: 0;
}

.booking-selector .selector-info span {
    font-family: "Montserrat", sans-serif;
    font-size: 0.75rem;
    color: #888;
}

.booking-selector .selector-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.booking-selector .selector-controls button {
    background: #f8f8f8;
    border: 1px solid #ddd;
    color: #1a1a1a;
    font-size: 1.2rem;
    line-height: 1;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    padding: 0;
}

.booking-selector .selector-controls button:hover {
    background: #1A2D1A;
    color: #fff;
    border-color: #1A2D1A;
}

.booking-selector .selector-controls input {
    width: 30px;
    text-align: center;
    border: none;
    font-family: "Montserrat", sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: #1a1a1a;
    pointer-events: none;
    background: transparent;
}

.booking-agent input {
    width: 100%;
    padding: 1rem;
    border: 1px solid #eaeaea;
    border-radius: 4px;
    font-family: "Montserrat", sans-serif;
    font-size: 0.9rem;
    outline: none;
}

.booking-agent input:focus {
    border-color: var(--gold-color);
}

.booking-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #eaeaea;
}

.booking-summary .summary-dates {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.booking-summary .summary-dates .summary-checkin,
.booking-summary .summary-dates .summary-checkout {
    display: flex;
    flex-direction: column;
}

.booking-summary .summary-dates .summary-checkin .label,
.booking-summary .summary-dates .summary-checkout .label {
    font-size: 0.6rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.booking-summary .summary-dates .summary-checkin .date,
.booking-summary .summary-dates .summary-checkout .date {
    font-size: 0.85rem;
    font-weight: 600;
    color: #1a1a1a;
}

.booking-summary .summary-dates i {
    color: #ccc;
    font-size: 0.8rem;
}

.booking-summary .summary-guests {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.booking-summary .summary-guests .label {
    font-size: 0.6rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.booking-summary .summary-guests .value {
    font-size: 0.85rem;
    font-weight: 600;
    color: #1a1a1a;
}

.booking-summary .summary-guests .value i {
    font-size: 0.75rem;
    color: #888;
    margin-left: 2px;
}

.booking-footer {
    margin-top: auto;
    padding-top: 1rem;
}

.booking-footer button.btn-next {
    width: 100%;
    padding: 1.2rem;
    font-family: "Montserrat", sans-serif;
    font-size: 1rem;
    font-weight: 500;
    border: none;
    background: var(--secondary-color);
    color: #fff;
    cursor: pointer;
    transition: background 0.3s;
    border-radius: 4px;
}

.booking-footer button.btn-next:disabled {
    background: #e0e0e0;
    color: #a0a0a0;
    cursor: not-allowed;
}

.booking-footer button.btn-next:hover:not(:disabled) {
    background: var(--secondary-color-hover);
}

/* ----- Leaflet Route Map Styles ----- */
.fenomen-map-container {
    width: 100%;
    max-width: 1200px;
    margin: 2rem auto;
    font-family: "Montserrat", sans-serif;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    background: #ffffff;
    border: 1px solid #eaeaea;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.fenomen-map-container:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

#fenomen-route-map {
    width: 100%;
    height: 500px;
    background-color: #f4f6f8;
    z-index: 1;
}

/* Custom modern map controls */
.fenomen-map-container .leaflet-bar {
    border: none !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
    border-radius: 8px !important;
    overflow: hidden;
}

.fenomen-map-container .leaflet-bar a {
    background-color: #ffffff !important;
    color: #1a1a1a !important;
    border-bottom: 1px solid #eaeaea !important;
    transition: background 0.2s, color 0.2s;
    font-weight: 600;
}

.fenomen-map-container .leaflet-bar a:hover {
    background-color: #f4f4f4 !important;
    color: var(--gold-color) !important;
}

/* Premium Floating Map Labels */
.fenomen-map-label {
    background: #ffffff !important;
    border: none !important;
    border-radius: 20px !important;
    padding: 6px 14px !important;
    color: #1a1a1a !important;
    font-family: "Montserrat", sans-serif !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    letter-spacing: 1.5px !important;
    text-transform: uppercase !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12) !important;
    white-space: nowrap;
    transition: transform 0.2s ease;
}

/* Label color borders at the bottom for elegant design details */
.fenomen-map-label.label-plitvice {
    border-bottom: 3px solid #1A1A1A !important;
    font-size: 11px !important;
    padding: 7px 16px !important;
}

.fenomen-map-label.label-zagreb {
    border-bottom: 3px solid #1D705B !important;
}

.fenomen-map-label.label-split {
    border-bottom: 3px solid #E63D85 !important;
}

.fenomen-map-label.label-rijeka {
    border-bottom: 3px solid #4F67F2 !important;
}

.fenomen-map-label.label-zadar {
    border-bottom: 3px solid #C2672B !important;
}

/* Remove default leaflet tooltip arrow and borders */
.leaflet-tooltip-top:before,
.leaflet-tooltip-bottom:before,
.leaflet-tooltip-left:before,
.leaflet-tooltip-right:before {
    display: none !important;
}

/* Responsive bottom travel details grid */
.fenomen-map-info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid #eaeaea;
    background: #fafafa;
}

.map-info-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.8rem 1rem;
    text-align: center;
    border-right: 1px solid #eaeaea;
    transition: background-color 0.3s ease, transform 0.3s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.map-info-item:last-child {
    border-right: none;
}

/* Top accent color indicators */
.map-info-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    transition: height 0.2s ease;
}

.item-rijeka::before {
    background: #4F67F2;
}

.item-zagreb::before {
    background: #1D705B;
}

.item-zadar::before {
    background: #C2672B;
}

.item-split::before {
    background: #E63D85;
}

/* Subtle card hover animation */
.map-info-item:hover {
    background-color: #ffffff;
}

.map-info-item:hover::before {
    height: 6px;
}

.route-label {
    font-family: "Montserrat", sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 0.6rem;
    transition: color 0.3s ease;
}

.item-rijeka:hover .route-label {
    color: #4F67F2;
}

.item-zagreb:hover .route-label {
    color: #1D705B;
}

.item-zadar:hover .route-label {
    color: #C2672B;
}

.item-split:hover .route-label {
    color: #E63D85;
}

.route-divider {
    display: none;
    /* We hide inline dots on desktop block display */
}

.route-time {
    font-family: "Montserrat", sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.2;
    margin-bottom: 0.2rem;
}

.route-dot {
    color: #ccc;
    font-size: 1.2rem;
    margin: 0.2rem 0;
}

.route-distance {
    font-family: "Montserrat", sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    color: #666;
}

/* Responsiveness adjustments */
@media (max-width: 991px) {
    .fenomen-map-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .map-info-item:nth-child(2) {
        border-right: none;
    }

    .map-info-item:nth-child(3),
    .map-info-item:nth-child(4) {
        border-top: 1px solid #eaeaea;
    }

    .map-info-item:nth-child(3) {
        border-right: 1px solid #eaeaea;
    }
}

@media (max-width: 600px) {
    #fenomen-route-map {
        height: 380px;
    }

    .fenomen-map-info-grid {
        grid-template-columns: 1fr;
    }

    .map-info-item {
        border-right: none;
        border-bottom: 1px solid #eaeaea;
        padding: 1.2rem 1.5rem;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: flex-start;
        align-items: center;
        text-align: left;
    }

    .map-info-item::before {
        width: 4px;
        height: 100%;
    }

    .map-info-item:hover::before {
        width: 6px;
        height: 100%;
    }

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

    .route-label {
        width: 100%;
        margin-bottom: 0.3rem;
    }

    .route-time {
        font-size: 1.1rem;
        margin-bottom: 0;
        margin-right: 0.5rem;
    }

    .route-divider {
        display: inline;
        color: #ccc;
        margin-right: 0.5rem;
    }

    .route-dot {
        display: none;
    }

    .route-distance {
        font-size: 0.8rem;
    }
}

/* ----- Interactive Accommodation Map Styles ----- */
.fenomen-acc-map-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 2rem auto;
    font-family: "Montserrat", sans-serif;
    border-radius: 0px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    background: #ffffff;
    border: 1px solid #eaeaea;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.fenomen-acc-map-wrapper:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

#fenomen-accommodation-map {
    width: 100%;
    height: 720px;
    background-color: #f4f6f8;
    z-index: 1;
}

/* Custom map pins hover animation */
.custom-map-pin {
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), filter 0.3s ease;
    cursor: pointer;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.18));
}

.custom-map-pin:hover,
.active-pin .custom-map-pin {
    transform: scale(1.22) translateY(-5px);
    filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.32));
}

/* Custom Accommodation Map Popup styling */
.leaflet-popup.acc-map-popup .leaflet-popup-content-wrapper {
    background: #1A1A1A !important;
    color: #ffffff !important;
    border-radius: 14px !important;
    padding: 0 !important;
    overflow: hidden !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3) !important;
    font-family: "Montserrat", sans-serif !important;
    width: 260px !important;
}

.leaflet-popup.acc-map-popup .leaflet-popup-content {
    margin: 0 !important;
    width: 260px !important;
}

.leaflet-popup.acc-map-popup .leaflet-popup-tip {
    background: #1A1A1A !important;
    box-shadow: none !important;
}

.acc-popup-wrapper {
    display: flex;
    flex-direction: column;
}

.acc-popup-image {
    width: 100%;
    height: 140px;
    background-size: cover;
    background-position: center;
    border-top-left-radius: 14px;
    border-top-right-radius: 14px;
    transition: transform 0.4s ease;
}

.leaflet-popup.acc-map-popup:hover .acc-popup-image {
    transform: scale(1.03);
}

.acc-popup-body {
    padding: 1.25rem !important;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.acc-popup-title {
    font-family: "Montserrat", sans-serif !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    color: #ffffff !important;
    margin: 0 !important;
    letter-spacing: 0.5px !important;
    text-transform: capitalize !important;
}

.acc-popup-specs {
    font-family: "Montserrat", sans-serif !important;
    font-size: 0.78rem !important;
    color: #a0a0a0 !important;
    margin: 0 !important;
    line-height: 1.45 !important;
    letter-spacing: 0.2px !important;
}

.acc-popup-link {
    font-family: "Montserrat", sans-serif !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    color: var(--gold-color) !important;
    text-decoration: none !important;
    text-transform: uppercase !important;
    letter-spacing: 1.2px !important;
    margin-top: 0.5rem !important;
    display: inline-block !important;
    transition: color 0.2s ease, transform 0.2s ease !important;
}

.acc-popup-link:hover {
    color: #ffffff !important;
    transform: translateX(3px);
}

/* Close button style */
.leaflet-popup.acc-map-popup .leaflet-popup-close-button {
    color: #ffffff !important;
    font-size: 16px !important;
    padding: 8px !important;
    top: 5px !important;
    right: 5px !important;
    z-index: 10 !important;
    transition: color 0.2s ease !important;
}

.leaflet-popup.acc-map-popup .leaflet-popup-close-button:hover {
    color: var(--gold-color) !important;
    background: transparent !important;
}

/* Responsiveness adjustments */
@media (max-width: 600px) {
    #fenomen-accommodation-map {}
}

/* Make standard OSM tiles vibrant but premium */
#fenomen-route-map .leaflet-tile-pane,
#fenomen-accommodation-map .leaflet-tile-pane,
.leaflet-container .leaflet-tile-pane {
    filter: grayscale(15%) saturate(1.2) contrast(1.05) opacity(0.9);
}