/* Site logo (V Leisure & Lifestyle) */
.site-logo {
    display: block;
    max-width: 100%;
}

.site-logo--nav {
    max-height: 5rem;
}

.site-logo--footer,
.site-logo--auth {
    border-radius: 0.5rem;
}
    scroll-behavior: smooth;
}

body {
    background-color: #F7F5F0;
    overflow-x: hidden;
}

/* Glassmorphism */
.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.glass-dark {
    background: rgba(10, 77, 140, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Auth login / register fields */
.auth-field {
    display: flex;
    align-items: center;
    min-height: 44px;
    border-bottom: 1px solid rgba(147, 197, 253, 0.45);
    transition: border-color 0.2s ease;
}

.auth-field:focus-within {
    border-bottom-color: #D4AF37;
}

.auth-field-icon {
    width: 2rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(191, 219, 254, 0.95);
    font-size: 0.9375rem;
    line-height: 1;
    pointer-events: none;
}

.auth-field-input {
    flex: 1;
    min-width: 0;
    background: transparent !important;
    border: 0;
    padding: 0.625rem 0;
    color: #ffffff;
    font-size: 1rem;
    line-height: 1.4;
    outline: none;
    box-shadow: none;
}

.auth-field-input::placeholder {
    color: rgba(147, 197, 253, 0.45);
}

.auth-field-input:-webkit-autofill,
.auth-field-input:-webkit-autofill:hover,
.auth-field-input:-webkit-autofill:focus {
    -webkit-text-fill-color: #ffffff !important;
    caret-color: #ffffff;
    box-shadow: 0 0 0 1000px transparent inset !important;
    transition: background-color 99999s ease-out 0s;
}

.auth-field-toggle {
    flex-shrink: 0;
    width: 2.25rem;
    height: 2.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 0;
    padding: 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.9375rem;
    cursor: pointer;
    border-radius: 0.375rem;
    transition: color 0.15s ease, background-color 0.15s ease;
}

.auth-field-toggle:hover,
.auth-field-toggle:focus {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
}

.auth-social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.auth-google-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* Auth phone with country code */
.auth-phone-row {
    display: flex;
    align-items: stretch;
    gap: 0.5rem;
}

.auth-phone-country-wrap {
    position: relative;
    flex: 0 0 auto;
    width: 7.25rem;
    max-width: 42%;
    z-index: 20;
}

.auth-phone-country-wrap.is-open {
    z-index: 50;
}

.auth-phone-country-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.375rem;
    width: 100%;
    min-height: 44px;
    padding: 0.5rem 0.625rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(147, 197, 253, 0.35);
    border-radius: 0.5rem;
    color: #ffffff;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.auth-phone-country-trigger:hover,
.auth-phone-country-wrap.is-open .auth-phone-country-trigger {
    border-color: #D4AF37;
}

.auth-phone-country-trigger:focus-visible {
    border-color: #D4AF37;
    box-shadow: 0 0 0 1px #D4AF37;
}

.auth-phone-dial {
    color: #ffffff;
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
}

.auth-phone-country-chevron {
    font-size: 0.625rem;
    color: rgba(191, 219, 254, 0.9);
    transition: transform 0.15s ease;
}

.auth-phone-country-wrap.is-open .auth-phone-country-chevron {
    transform: rotate(180deg);
}

.auth-phone-country-panel {
    position: absolute;
    top: calc(100% + 0.375rem);
    left: 0;
    width: min(18rem, calc(100vw - 2rem));
    background: #0f2744;
    border: 1px solid rgba(147, 197, 253, 0.35);
    border-radius: 0.625rem;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
    overflow: hidden;
}

.auth-phone-country-search {
    display: block;
    width: calc(100% - 1rem);
    margin: 0.5rem;
    padding: 0.5rem 0.625rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(147, 197, 253, 0.25);
    border-radius: 0.375rem;
    color: #ffffff;
    font-size: 0.8125rem;
    outline: none;
}

.auth-phone-country-search::placeholder {
    color: rgba(191, 219, 254, 0.65);
}

.auth-phone-country-search:focus {
    border-color: #D4AF37;
}

.auth-phone-country-list {
    list-style: none;
    margin: 0;
    padding: 0.25rem 0;
    max-height: 14rem;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.auth-phone-country-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    color: #e0f2fe;
    font-size: 0.8125rem;
    cursor: pointer;
    transition: background 0.12s ease;
}

.auth-phone-country-option:hover,
.auth-phone-country-option.is-selected {
    background: rgba(212, 175, 55, 0.18);
    color: #ffffff;
}

.auth-phone-country-option-name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.auth-phone-country-option-dial {
    flex-shrink: 0;
    font-weight: 600;
    color: #D4AF37;
}

.auth-phone-country-empty {
    margin: 0;
    padding: 0.75rem;
    text-align: center;
    color: rgba(191, 219, 254, 0.75);
    font-size: 0.8125rem;
}

.auth-phone-field.auth-field {
    border-bottom: 0;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(147, 197, 253, 0.35);
    border-radius: 0.5rem;
    padding-right: 0.25rem;
}

.auth-phone-field.auth-field:focus-within {
    border-color: #D4AF37;
    box-shadow: 0 0 0 1px #D4AF37;
}

.auth-phone-group--light .auth-phone-country-trigger {
    background: #ffffff;
    border-color: #d1d5db;
    color: #111827;
}

.auth-phone-group--light .auth-phone-dial {
    color: #111827;
}

.auth-phone-group--light .auth-phone-country-chevron {
    color: #6b7280;
}

.auth-phone-group--light .auth-phone-country-panel {
    background: #ffffff;
    border-color: #d1d5db;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.auth-phone-group--light .auth-phone-country-search {
    background: #f9fafb;
    border-color: #e5e7eb;
    color: #111827;
}

.auth-phone-group--light .auth-phone-country-search::placeholder {
    color: #9ca3af;
}

.auth-phone-group--light .auth-phone-country-option {
    color: #374151;
}

.auth-phone-group--light .auth-phone-country-option:hover,
.auth-phone-group--light .auth-phone-country-option.is-selected {
    background: #eff6ff;
    color: #111827;
}

.auth-phone-group--light .auth-phone-country-option-dial {
    color: #2563eb;
}

.auth-phone-group--light .auth-phone-country-empty {
    color: #6b7280;
}

.auth-phone-group--light .auth-phone-country-wrap {
    width: auto;
    min-width: 7.25rem;
    max-width: 42%;
}

.auth-phone-group--light .auth-phone-field.auth-field {
    background: #ffffff;
    border-color: #d1d5db;
}

.auth-phone-group--light .auth-phone-field .auth-field-icon {
    color: #9ca3af;
}

.auth-phone-group--light .auth-phone-field .auth-field-input {
    color: #111827;
}

.auth-phone-group--light .auth-phone-field .auth-field-input::placeholder {
    color: #9ca3af;
}

.auth-phone-group--light label {
    color: #374151 !important;
}

.auth-phone-group--light .auth-phone-hint {
    color: #6b7280 !important;
}

@media (max-width: 399px) {
    .auth-phone-row {
        flex-direction: column;
    }

    .auth-phone-country-wrap,
    .auth-phone-group--light .auth-phone-country-wrap {
        width: 100%;
        max-width: none;
    }
}

@media (max-width: 639px) {
    .auth-field-input {
        font-size: 16px;
    }
}

/* Hide scrollbar for clean look but keep functionality */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Smooth Image Zooms */
.img-zoom-container {
    overflow: hidden;
}
.img-zoom {
    transition: transform 0.5s ease;
}
.img-zoom-container:hover .img-zoom {
    transform: scale(1.05);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease forwards;
}

.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }

/* Resort listing — filter inputs & touch-friendly controls */
.resort-filter-input {
    -webkit-appearance: none;
    appearance: none;
    line-height: 1.4;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 639px) {
    .resort-filter-input {
        font-size: 16px; /* prevents iOS zoom on focus */
    }
}

.touch-manipulation {
    touch-action: manipulation;
}

/* Themed destination autocomplete (replaces native datalist) */
.destination-suggest-list {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 60;
    max-height: min(360px, 50vh);
    overflow-y: auto;
    margin: 0;
    padding: 6px;
    list-style: none;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    box-shadow: 0 12px 28px rgba(10, 77, 140, 0.14);
}

.destination-suggest-list li {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.625rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    line-height: 1.35;
    color: #374151;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.destination-suggest-list li:hover,
.destination-suggest-list li.is-active {
    background-color: #eff6ff;
    color: #0A4D8C;
}

.destination-suggest-list li i {
    color: #00A8A8;
    font-size: 0.75rem;
    width: 1rem;
    text-align: center;
    flex-shrink: 0;
}

.destination-suggest-list .suggest-empty {
    justify-content: center;
    color: #9ca3af;
    cursor: default;
    font-size: 0.8125rem;
}

.destination-suggest-list .suggest-empty:hover {
    background: transparent;
    color: #9ca3af;
}

#destination-search-wrap:focus-within #filter-destination {
    border-color: #0A4D8C;
    box-shadow: 0 0 0 1px #0A4D8C;
}

#destination-search-wrap {
    z-index: 20;
}

#destination-search-wrap:focus-within {
    z-index: 50;
}

/* Dual-handle price range slider */
.price-range-slider {
    padding: 0.25rem 0.125rem 0;
}

.price-range-values {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.price-range-value {
    font-size: 0.875rem;
    font-weight: 600;
    color: #0A4D8C;
}

.price-range-track-wrap {
    position: relative;
    height: 2rem;
    display: flex;
    align-items: center;
}

.price-range-track {
    position: absolute;
    left: 0;
    right: 0;
    height: 6px;
    border-radius: 9999px;
    background: #e5e7eb;
}

.price-range-fill {
    position: absolute;
    height: 6px;
    border-radius: 9999px;
    background: linear-gradient(90deg, #0A4D8C 0%, #00A8A8 100%);
    pointer-events: none;
}

.price-range-input {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2rem;
    margin: 0;
    padding: 0;
    background: none;
    pointer-events: none;
    -webkit-appearance: none;
    appearance: none;
}

.price-range-input::-webkit-slider-runnable-track {
    height: 6px;
    background: transparent;
    border: none;
}

.price-range-input::-moz-range-track {
    height: 6px;
    background: transparent;
    border: none;
}

.price-range-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid #0A4D8C;
    box-shadow: 0 2px 6px rgba(10, 77, 140, 0.25);
    cursor: pointer;
    pointer-events: auto;
    margin-top: -7px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.price-range-input::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid #0A4D8C;
    box-shadow: 0 2px 6px rgba(10, 77, 140, 0.25);
    cursor: pointer;
    pointer-events: auto;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.price-range-input:active::-webkit-slider-thumb,
.price-range-input:active::-moz-range-thumb {
    transform: scale(1.08);
    box-shadow: 0 3px 10px rgba(10, 77, 140, 0.35);
}

.price-range-input-max {
    z-index: 2;
}

.price-range-input-min {
    z-index: 3;
}

.price-range-bounds {
    display: flex;
    justify-content: space-between;
    margin-top: 0.375rem;
    font-size: 0.6875rem;
    color: #9ca3af;
}

/* Screen-reader only (fallback if utility missing) */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Custom Map Placeholder */
.map-placeholder {
    background-color: #e5e7eb;
    background-image: radial-gradient(#d1d5db 1px, transparent 1px);
    background-size: 20px 20px;
}

/* Admin HTML editor (Quill) */
.html-editor-field .ql-toolbar.ql-snow {
    border: none;
    border-bottom: 1px solid #e5e7eb;
    background: #f9fafb;
}

.html-editor-field .ql-container.ql-snow {
    border: none;
    font-family: Inter, system-ui, sans-serif;
    font-size: 0.9375rem;
}

.html-editor-field .ql-editor {
    min-height: 180px;
    line-height: 1.6;
}

/* Public rich text content */
.rich-text-content h2,
.rich-text-content h3,
.rich-text-content h4 {
    font-family: Poppins, Inter, system-ui, sans-serif;
    font-weight: 700;
    color: #111827;
    margin: 1rem 0 0.5rem;
}

.rich-text-content h2 { font-size: 1.35rem; }
.rich-text-content h3 { font-size: 1.15rem; }
.rich-text-content p { margin-bottom: 0.75rem; }
.rich-text-content ul,
.rich-text-content ol {
    margin: 0.5rem 0 1rem 1.25rem;
    padding-left: 0.5rem;
}
.rich-text-content ul { list-style: disc; }
.rich-text-content ol { list-style: decimal; }
.rich-text-content li { margin-bottom: 0.35rem; }
.rich-text-content a { color: #0A4D8C; text-decoration: underline; }
.rich-text-content blockquote {
    border-left: 3px solid #C5A059;
    padding-left: 1rem;
    margin: 1rem 0;
    color: #4b5563;
}
