/* Home Page Styles */
:root {
    --font-scale: 1; /* or 1.25, etc. */
}

/* Home Page Background */
body {
    background: #f2f2f2;
    background-repeat: no-repeat;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    height: auto;
    display: flex;
    align-items: flex-start;
    background: url("../../img/hero-bg.jpg") center/cover no-repeat;
    overflow: visible !important;
    padding-bottom: 40px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("../../img/hero-bg.jpg");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgb(0 0 0 / 45%);
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    text-align: center;
    padding-top: 100px; /* ensures content is below header */
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

/* Hero Search Form - Equal Padding and Unified Field UI */
.hero-search-form {
    max-width: 1200px;
    margin: 0 auto 0 auto;
    border: none;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 6px 32px 0 rgb(0 0 0 / 10%);
    /* padding: 1.5rem; */
    overflow: visible !important;
}

.search-card-group {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px 0 rgb(0 0 0 / 6%);
    overflow: visible !important;
    border: 1.5px solid #e5e7eb;
    margin-top: 0.5rem;
    position: relative;
    gap: 0;
    min-width: 0; /* Allow flex items to shrink below content size */
}

.search-card-field {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    border-right: 1.5px solid #e5e7eb;
    padding: 1rem;
    margin: 0;
    overflow: hidden; /* Prevent content from overflowing */
}

.search-card-field:last-child,
.search-btn-field {
    border-right: none !important;
    max-width: 100px;
}

.field-label {
    font-size: 0.98rem;
    color: #6b7280;
    font-weight: 500;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.field-main {
    font-size: 1rem;
    color: #22223b;
    font-weight: 700;
    display: flex;
    align-items: baseline;
    gap: 0.3rem;
}

.field-value {
    font-weight: 700;
    color: #ff385c;
    font-size: 1.45rem;
}

/* Toggle Group Styles */
.search-toggle-group {
    display: none !important;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 1.5rem;
}

.toggle-option {
    font-size: 0.7rem;
    font-weight: 500;
    color: #222;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    transition: border 0.2s, background 0.2s, color 0.2s;
}

.toggle-option.active,
.toggle-option input:checked {
    font-weight: 700;
    color: #ff385c !important;
    background: #fff0f3 !important;
}

.toggle-option input[type="radio"] {
    accent-color: #ff385c !important;
}

.badge.bg-pink {
    background: #ff385c;
    color: #fff;
    font-size: 0.8rem;
    border-radius: 8px;
    padding: 0.2em 0.6em;
}

/* Date Range Input */
.flatpickr-months .flatpickr-month,
.flatpickr-innerContainer {
    margin: 5px !important;
}

.rangeMode .flatpickr-day {
    margin-top: 5px !important;
}

.flatpickr-day.selected.startRange,
.flatpickr-day.startRange.startRange,
.flatpickr-day.endRange.startRange {
    background: #ff385c !important;
    border-radius: 6px 0 0 6px !important;
    border: none !important;
    color: #fff !important;
}

.flatpickr-day.selected.endRange,
.flatpickr-day.endRange.endRange,
.flatpickr-day.startRange.endRange {
    background: #ff385c !important;
    border-radius: 0 6px 6px 0 !important;
    border: none !important;
    color: #fff !important;
}

.flatpickr-day.inRange,
.flatpickr-day.inRange:focus,
.flatpickr-day.inRange:hover {
    background: #ffd1dc !important; /* lighter pink */
    color: #ff385c !important;
    box-shadow: none !important;
    border: none !important;
}

.flatpickr-calendar .flatpickr-day.inRange,
.flatpickr-calendar .flatpickr-day.inRange:focus,
.flatpickr-calendar .flatpickr-day.inRange:hover {
    background: #ffd1dc !important;
    color: #ff385c !important;
    box-shadow: none !important;
    border: none !important;
    border-left: none !important;
    border-right: none !important;
}

.flatpickr-day.endRange:before,
.flatpickr-day.startRange:after {
    display: none !important;
    background: none !important;
    box-shadow: none !important;
}

.flatpickr-day.selected.startRange + .endRange:not(:nth-child(7n + 1)),
.flatpickr-day.startRange.startRange + .endRange:not(:nth-child(7n + 1)),
.flatpickr-day.endRange.startRange + .endRange:not(:nth-child(7n + 1)) {
    box-shadow: -10px 0 0 #ff385c !important;
}

.flatpickr-day.selected,
.flatpickr-day.selected:focus,
.flatpickr-day.selected:hover {
    background: #ff385c !important;
    color: #fff !important;
    border-radius: 6px !important;
    border: none !important;
}

.search-btn,
.search-btn.search-btn-circle {
    /* background: linear-gradient(90deg, #FF385C 0%, #E61E4D 100%) !important; */
    background: linear-gradient(
        to right,
        #e61e4d 0%,
        #e31c5f 50%,
        #d70466 100%
    ) !important;
    color: #fff !important;
    border: none;
    font-weight: 700;
    box-shadow: none !important;
    transform: none !important;
    top: 0 !important;
    margin-top: 0 !important;
    align-self: center;
    width: 64px;
    height: 64px;
    min-width: 64px;
    min-height: 64px;
    max-width: 64px;
    max-height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: none;
    position: static;
}

.search-btn:hover,
.search-btn.search-btn-circle:hover {
    background: #e61e4d !important;
    color: #fff !important;
    box-shadow: none !important;
    transform: none !important;
}

.search-btn.search-btn-circle i {
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
}

/* Ensure search button shows correct state on page load */
.search-btn.search-btn-circle:not(:disabled) i.fa-spinner {
    display: none;
}

.search-btn.search-btn-circle:not(:disabled) i.fa-search {
    display: inline-block;
}

/* Section Styles */
.destinations-section,
.featured-hotels-section,
.why-choose-section {
    padding: 3rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #333;
}

.section-header p {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Destination Cards */
.destination-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.destination-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.destination-card.top-destination:hover {
    box-shadow: 0 8px 25px rgba(255, 56, 92, 0.3);
}

.destination-image {
    height: 200px;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
    position: relative;
    background-image: url("../../img/destinations/default.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.3s ease;
    will-change: transform;
}

.popular-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #dfdfdfbf;
    color: #181818;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(255, 56, 92, 0.3);
}

.destination-content {
    padding: 1.5rem;
}

.destination-content h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #22223b;
}

.destination-country {
    color: #6b7280;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.hotel-count {
    color: #ff385c;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.destination-link {
    display: inline-block;
    background: linear-gradient(
        to right,
        #e61e4d 0%,
        #e31c5f 50%,
        #d70466 100%
    ) !important;
    color: white;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
    width: 100%;
}

.destination-link:hover {
    background: linear-gradient(
        to right,
        #e61e4d 0%,
        #e31c5f 50%,
        #d70466 100%
    ) !important;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 56, 92, 0.3);
}

/* Hotel Cards */
.hotel-card {
    background: white;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 3px 30px 0 rgb(0 0 0 / 10%);
    transition: all 0.3s ease;
    height: 100%;
}

.hotel-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.hotel-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.hotel-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.hotel-card:hover .hotel-image img {
    transform: scale(1.1);
}

.hotel-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #ff385c;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.hotel-content {
    padding: 1.5rem;
}

.hotel-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
}

.hotel-location {
    color: #4a4a4a;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hotel-rating {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.hotel-rating .fas.fa-star {
    color: #ddd;
    font-size: 14px;
}

.hotel-rating .fas.fa-star.active {
    color: #ff385c;
}

.hotel-price {
    margin-bottom: 1rem;
}

.price-amount {
    color: #ff385c !important;
    font-weight: 700;
}

.price-period {
    color: #666;
    font-size: 14px;
}

.hotel-link {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    /* background: linear-gradient(90deg, #FF385C 0%, #E61E4D 100%) !important; */
    background: linear-gradient(
        to right,
        #e61e4d 0%,
        #e31c5f 50%,
        #d70466 100%
    ) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 6px !important;
    font-weight: 700;
    font-size: 1rem;
    text-align: center;
    text-decoration: none !important;
    box-shadow: 0 2px 8px rgba(255, 56, 92, 0.08);
    transition: background 0.5s, color 0.5s, box-shadow 0.5s;
    margin-top: 1rem;
    cursor: pointer;
}

.hotel-link:hover,
.hotel-link:focus {
    background: #e61e4d !important;
    color: #fff !important;
    text-decoration: none !important;
    box-shadow: 0 4px 16px rgba(255, 56, 92, 0.15);
}

/* Feature Cards */
.feature-card {
    text-align: center;
    padding: 2rem 1rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: #eaf4ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: #ff385c;
    font-size: 2rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

/* Remove old search-input-group styles for clarity */
.search-input-group,
.search-input,
.destination-input,
.guest-display {
    all: unset;
}

/* Remove old gradients and purple/pink colors */
.hero-search-form,
.search-btn,
.hotel-link,
.feature-icon,
.guest-apply-btn {
    background-image: none !important;
}

/* --- AIRBNB GLOBAL COLOR PALETTE --- */

/* Buttons & CTAs */
.hotel-link,
.guest-apply-btn,
.newsletter-form .btn {
    /* background: linear-gradient(90deg, #FF385C 0%, #E61E4D 100%) !important; */
    background: linear-gradient(
        to right,
        #e61e4d 0%,
        #e31c5f 50%,
        #d70466 100%
    ) !important;
    color: #fff !important;
    border: none;
    font-weight: 700;
    transition: background 0.2s, box-shadow 0.2s;
}
.search-btn:hover,
.hotel-link:hover,
.guest-apply-btn:hover,
.newsletter-form .btn:hover {
    background: #e61e4d !important;
}

/* Badges */
.badge.bg-pink {
    background: #ff385c;
    color: #fff;
}

/* Feature Icon (circle) */
.feature-icon {
    background: #fff0f3 !important;
    color: #ff385c !important;
}

/* Hotel Rating Stars */
.hotel-rating .fas.fa-star.active {
    color: #ff385c;
}

/* Guest Selector Dropdown */
.guest-dropdown {
    border: 1.5px solid #ff385c;
}

.guest-minus:active,
.guest-plus:active {
    background: #fff0f3;
    border-color: #ff385c;
}

/* Card & Field Highlights */
.hotel-badge,
.feature-icon {
    color: #ff385c !important;
    background: #fff0f3 !important;
}

.hotel-badge {
    background: #ff385c !important;
    color: #fff !important;
}

/* Remove previous blue, purple, or gradient backgrounds from buttons and icons */
.search-btn,
.hotel-link,
.guest-apply-btn,
.newsletter-form .btn,
.feature-icon {
    background-image: none !important;
}

/* --- FIXES FOR VISIBILITY, PROPORTION, AND BUTTON HOVER --- */

/* 1. Make .hotel-link (View Details) always visible */
.hotel-link {
    opacity: 1 !important;
    visibility: visible !important;
    color: #ff385c !important;
    background: #fff !important;
    border: 1.5px solid #ff385c !important;
    transition: background 0.2s, color 0.2s, border 0.2s;
}

.hotel-link:hover {
    /* background: linear-gradient(90deg, #FF385C 0%, #E61E4D 100%) !important; */
    background: linear-gradient(
        to right,
        #e61e4d 0%,
        #e31c5f 50%,
        #d70466 100%
    ) !important;
    color: #fff !important;
    border: 1.5px solid #e61e4d !important;
}

/* Vertically center the search button in the card group */
.search-card-group {
    align-items: center;
}

/* 3. Adjust field proportions */
.location-field {
    flex: 3 1 0 !important;
}

/* Destination display text truncation */
.location-field .field-main {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
    width: 100%;
}

.location-field .city-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
    display: block;
    cursor: pointer;
}

/* Ensure the destination field maintains its layout */
.location-field .destination-value {
    width: 100%;
    overflow: hidden;
}


.guests-field {
    flex: 2 1 0 !important;
}

.checkin-field,
.checkout-field {
    flex: 1 1 0 !important;
}
input#check_in,
input#check_out {
    display: none !important;
}
.guests-field .field-main {
    display: flex;
    align-items: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    gap: 0.25rem;
}

.guests-field::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 1.5px;
    height: 100%;
    background: #e5e7eb;
    z-index: 2;
}

/* Destination Autocomplete Popover Styles */
.home-page .destination-autocomplete-popover {
     margin-top: 50px;
}
.destination-autocomplete-popover {
    position: absolute;
    top: 20%;
    left: 0;
    width: 100%;
    max-height: 400px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
    z-index: 1050;
    overflow: hidden;
    margin-top: 10px;
}

.destination-popover-input {
    width: 100%;
    padding: 12px 16px;
    border: none;
    border-bottom: 1px solid #e0e0e0;
    font-size: 16px;
    font-weight: 700;
    color: #ff385c;
    background: #fff;
    outline: none;
}

.destination-popover-input::placeholder {
    color: #999;
    font-weight: 400;
}

.destination-suggestions {
    max-height: 320px;
    overflow-y: auto;
    background: #fff;
}

.destination-suggestions::-webkit-scrollbar {
    width: 6px;
}

.destination-suggestions::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.destination-suggestions::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.destination-suggestions::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Suggestion Item Styles */
.destination-suggestions .dropdown-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    border: none;
    background: transparent;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.destination-suggestions .dropdown-item:hover {
    background-color: #f8f9fa;
}

.destination-suggestions .dropdown-item:active {
    background-color: #e9ecef;
}

/* Suggestion Content */
.destination-suggestions .dropdown-item .fw-bold {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 2px;
    line-height: 1.2;
    word-break: break-word;
}

.destination-suggestions .dropdown-item .small {
    font-size: 14px;
    color: #666;
    margin: 0;
    line-height: 1.1;
    word-break: break-word;
}

/* Section Headers */
.destination-suggestions .text-muted {
    font-size: 12px;
    color: #999;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 16px 4px;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
}

/* Recent and Popular Sections */
.destination-suggestions .list-unstyled {
    margin: 0;
    padding: 0;
}

.destination-suggestions .list-unstyled li {
    margin: 0;
}

/* Icon Styles */
.destination-suggestions .dropdown-item::before {
    font-size: 16px;
    color: #ff385c;
    margin-right: 8px;
}

.destination-suggestions .recent-dest-item-popover::before {
    color: #666;
}

.destination-suggestions .popular-dest-item-popover::before {
    color: #ff385c;
}

/* No Results Message */
.destination-suggestions .text-muted:only-child {
    padding: 20px 16px;
    text-align: center;
    font-size: 14px;
    color: #666;
}

/* Search Failed Message */
.destination-suggestions .text-muted:last-child {
    padding: 20px 16px;
    text-align: center;
    font-size: 14px;
    color: #dc3545;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    margin: 8px;
}

/* Loading State */
.destination-suggestions .loading {
    padding: 20px 16px;
    text-align: center;
    color: #666;
}

.destination-suggestions .loading::after {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #ff385c;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 8px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.destination-input-wrapper {
    padding: 0;
    border-bottom: 1px solid #e0e0e0;
    background: #fff;
}

.suggestion-icon-wrapper {
    flex: 0 0 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 32px;
}

.suggestion-icon {
    width: 25px;
    height: 25px;
    display: block;
    stroke: #222;
    stroke-width: 1;
    fill: none;
}

.suggestion-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.suggestion-content .fw-bold {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 2px;
    line-height: 1.2;
    word-break: break-word;
}

.suggestion-content .small {
    font-size: 14px;
    color: #666;
    margin: 0;
    line-height: 1.1;
    word-break: break-word;
}

/* --- GUESTS DROPDOWN STYLES --- */
.search-card-field.guests-field {
    position: relative !important;
    overflow: visible !important;
}

.guests-dropdown {
    position: absolute !important;
    top: 100% !important;
    right: 0 !important;
    min-width: 350px !important;
    background: #fff !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 6px !important;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12) !important;
    z-index: 9999 !important;
    padding: 1rem !important;
    margin-top: 2px !important;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.guests-dropdown .btn {
    border-radius: 6px !important;
    font-weight: 600 !important;
}

.guests-dropdown .btn-light {
    background: #f8f9fa !important;
    border: 1px solid #e9ecef !important;
    color: #495057 !important;
    width: 30px !important;
    height: 30px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 15px !important;
}

.guests-dropdown .btn-light:hover {
    background: #e9ecef !important;
    border-color: #dee2e6 !important;
}

.guests-dropdown .btn-light:active {
    background: #fff0f3 !important;
    border-color: #ff385c !important;
    color: #ff385c !important;
}

.guests-dropdown .guest-count {
    font-weight: 700 !important;
    color: #ff385c !important;
    font-size: 16px !important;
    min-width: 20px !important;
    text-align: center !important;
    display: inline-block !important;
}

.guests-dropdown .guest-apply-btn {
    /* background: linear-gradient(90deg, #FF385C 0%, #E61E4D 100%) !important; */
    background: linear-gradient(
        to right,
        #e61e4d 0%,
        #e31c5f 50%,
        #d70466 100%
    ) !important;
    color: #fff !important;
    border: none !important;
    font-weight: 700 !important;
    padding: 12px 24px !important;
    border-radius: 8px !important;
}

.guests-dropdown .guest-apply-btn:hover {
    background: #e61e4d !important;
    color: #fff !important;
}

.guests-dropdown .form-select {
    border: 1px solid #e9ecef !important;
    border-radius: 6px !important;
    font-size: 14px !important;
    padding: 6px 8px !important;
}

.guests-dropdown .form-select:focus {
    border-color: #ff385c !important;
    box-shadow: 0 0 0 0.2rem rgba(255, 56, 92, 0.25) !important;
}

.guests-dropdown .child-ages-section {
    border-top: 1px solid #e9ecef !important;
    padding-top: 0.5rem !important;
}

.guests-dropdown .child-ages-row {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    margin-bottom: 10px;
    justify-content: flex-start;
}

.guests-dropdown .child-ages-row .form-select {
    flex: 0 0 48%;
    min-width: 100px;
    max-width: 120px;
}

.guests-dropdown .child-ages-row .child-label {
    min-width: 60px;
    color: #333;
    font-weight: 500;
    font-size: 0.95rem;
    align-self: center;
}

.guests-dropdown .child-ages-section .text-muted {
    text-align: center;
    font-size: 0.95rem;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

/* Ensure the guests field has proper positioning for the dropdown */
.search-card-field.guests-field {
    position: relative !important;
    overflow: visible !important;
}

.guests-field {
    position: relative !important;
    overflow: visible !important;
}

.guest-row {
    min-height: 40px;
}

.guest-label {
    font-weight: 500;
    color: #333;
    font-size: 1rem;
}

.guest-counter .btn {
    min-width: 30px;
    min-height: 30px;
    font-size: 1.1rem;
    padding: 0;
}

.guest-count {
    font-weight: 700;
    color: #ff385c;
    font-size: 1.1rem;
    min-width: 24px;
    text-align: center;
    display: inline-block;
}

.container {
    max-width: 1200px !important;
    overflow: visible !important;
}

.child-age-label-select {
    display: flex;
    align-items: center;
    min-width: 0;
    flex: 1 1 0;
    max-width: 50%;
    margin-bottom: 0;
}

.child-label {
    color: #333 !important;
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 0;
    margin-right: 8px;
}

/* Language/Currency Modal Sizing and Style */
.language-currency-modal.show,
.login-modal.show {
    display: flex;
}

#languageCurrencyModal .modal-content {
    max-width: 400px;
    width: 100%;
    margin: 0 auto;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 8px 32px rgba(60, 60, 60, 0.12);
    overflow-x: hidden;
    /* overflow: hidden !important; */
}

#languageCurrencyModal .modal-body {
    overflow: visible !important;
    max-height: none !important;
}

.lcm-label {
    display: flex;
    font-size: calc(var(--font-scale, 1) * 12px);
    font-weight: bold;
    color: rgb(117, 117, 117);
    margin-bottom: 8px;
}

#applySettings {
    width: 100%;
    background: linear-gradient(
        to right,
        #e61e4d 0%,
        #e31c5f 50%,
        #d70466 100%
    ) !important;
}

span.lcm-close-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: -225px;
    top: -130px;
    width: 24px;
    height: 24px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(60, 60, 60, 0.12);
    cursor: pointer;
    z-index: 10;
    border: 1px solid #eee;
    transition: box-shadow 0.2s, background 0.2s;
}

span.lcm-close-btn:hover {
    box-shadow: 0 4px 16px rgba(60, 60, 60, 0.18);
    background: #f8f8f8;
}

span.lcm-close-btn i {
    color: #888;
    font-size: 12px;
}
/* ===== LOGIN/REGISTER MODAL STYLES ===== */
/* Modal Container */
.login-register-modal .modal-dialog {
    max-width: 900px;
    margin: 1.75rem auto;
}

.login-register-modal .modal-content {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.login-register-modal .modal-header {
    border: none;
    padding: 0;
    position: relative;
}

/* Modal Body */
.login-register-modal .modal-body {
    padding: 0;
    display: flex;
}

.slider-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 2rem;
}

.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.external-close {
    position: absolute;
    top: -15px;
    right: -15px;
    z-index: 1051;
    background-color: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    padding: 0.5rem;
}

.slider-dot.active {
    background: white;
    transform: scale(1.2);
}

/* Right Side - Auth Content */
.modal-auth-content {
    flex: 0 0 60%;
    padding: 20px;
    background: white;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
}

/* Tabs */
.auth-tabs {
    display: flex;
    margin-bottom: 2rem;
    border-bottom: 2px solid #f0f0f0;
}

.auth-tab {
    flex: 1;
    padding: 12px 16px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    color: #666;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 10;
}

.auth-tab.active {
    color: #ff385c;
    border-bottom-color: #ff385c;
}

.auth-tab:hover {
    color: #ff385c;
    background: rgba(255, 56, 92, 0.05);
}

/* Debug styles - remove after testing */
.auth-tab {
    pointer-events: auto !important;
    user-select: none;
}

.auth-tab:active {
    transform: scale(0.98);
}

/* Tab Content */
.tab-content {
    display: none;
    flex: 1;
}

.tab-content.active {
    display: block;
}

/* Form Styles */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.auth-form .form-group {
    margin-bottom: 0px !important;
}

.form-group {
    position: relative;
}

.form-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
    display: block;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fafafa;
}

.form-control:focus {
    outline: none;
    border-color: #ff385c;
    background: white;
    box-shadow: 0 0 0 3px rgba(255, 56, 92, 0.1);
}

.form-control.error {
    border-color: #dc3545;
}

.error-message {
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 0.25rem;
    display: none;
}

.error-message.show {
    display: block;
}

/* Phone Input Group */
.phone-input-group {
    display: flex;
    gap: 8px;
}

.country-code-select {
    flex: 0 0 80px;
    padding: 12px 8px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    background: #fafafa;
    font-size: 0.9rem;
    font-weight: 600;
}

.phone-input {
    flex: 1;
}

span#backToEmailFromOtp {
    cursor: pointer;
}

/* Continue Button */
.continue-btn {
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(
        to right,
        #e61e4d 0%,
        #e31c5f 50%,
        #d70466 100%
    ) !important;
    color: #fff;
    width: 100%;
    border: none;
    box-shadow: 0 2px 8px rgba(26, 115, 232, 0.08);
}

.continue-btn:hover {
    background: #e62e4d;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 56, 92, 0.3);
}

.continue-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* OTP Section */
.otp-section {
    display: none;
    text-align: center;
}

.otp-section.show {
    display: block;
}

.otp-input-group {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin: 1.5rem 0;
}

.otp-input {
    width: 50px;
    height: 50px;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    background: #fafafa;
}

.otp-input:focus {
    border-color: #ff385c;
    background: white;
    box-shadow: 0 0 0 3px rgba(255, 56, 92, 0.1);
}

.resend-otp {
    color: #ff385c;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    margin-top: 1rem;
    display: inline-block;
}

.resend-otp:hover {
    text-decoration: underline;
}

.resend-otp:disabled {
    color: #999;
    cursor: not-allowed;
    text-decoration: none;
}

/* Footer */
.auth-footer {
    /* margin-top: auto; */
    text-align: center;
    padding-top: 3rem;
}

.auth-footer p {
    color: #666;
    font-size: 12px;
    margin-bottom: 0.5rem;
}

.auth-footer a {
    color: #ff385c;
    text-decoration: none;
    font-weight: 500;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Loading States */
.loading-spinner {
    display: inline-block;
    vertical-align: sub;
    width: 20px;
    height: 20px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s ease-in-out infinite;
    margin-left: 5px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Success States */
.success-message {
    color: #28a745;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    display: none;
}

.success-message.show {
    display: block;
}

/* Account Created Round Icon */
.accountCreatedRound {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #ace143, #219393);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.accountCreatedRound i.fa-check {
    color: white;
    font-size: 24px;
    font-weight: bold;
}

/* Success message layout - horizontal alignment */
.modalTitle.makeFlex.hrtlCenter.appendBottom5 {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 15px;
}

.accountCreatedRound {
    flex-shrink: 0;
}

.accountCreatedTitle {
    flex: 1;
    text-align: left;
}

.accountCreatedTitle {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    text-align: left;
    line-height: 1.4;
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.3s ease-in;
}

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

.slide-in {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

/* === OVERRIDES FOR LOGIN/REGISTER MODAL (Bootstrap) === */
#loginRegisterModal {
    z-index: 1055 !important;
    position: fixed !important;
}

#loginRegisterModal .modal-dialog {
    z-index: 1055 !important;
    position: relative !important;
}

.login-register-modal-content {
    padding: 0 !important;
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    max-width: none !important;
    width: auto !important;
    max-height: none !important;
    overflow-y: visible !important;
}

.login-register-modal-body {
    padding: 0 !important;
}

.modal-backdrop {
    --bs-backdrop-zindex: 999 !important;
}

/* Make the login modal smaller and responsive */
#loginRegisterModal .modal-dialog {
    max-width: 750px !important;
    width: 95vw;
    margin: 5rem auto;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

#loginRegisterModal .modal-content.login-register-modal-content {
    min-height: 400px;
    max-height: 90vh;
    overflow: visible;
    border-radius: 12px;
    padding: 0 !important;
}

/* Modal image slider as background */
.modal-image-slider {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
}

/* Remove .slider-image img styles, as we use background now */
.slider-image {
    display: none;
}

.slider-content {
    color: white;
    text-align: center;
    padding: 40px 30px 30px 30px;
    background: rgba(0, 0, 0, 0.5);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Vertically center slider-content in modal-image-slider */
.modal-image-slider {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /* keep other background and sizing styles */
}

/* Move close button outside the modal visually */
.login-register-modal .btn-close {
    position: absolute;
    top: 0px;
    right: -32px;
    font-size: 11px;
    opacity: 1;
    background: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    pointer-events: auto;
}

.login-register-modal .btn-close i.fa.fa-times {
    font-weight: 700;
    font-size: 12px;
    padding: 3px;
}

/* --- Google Login Button --- */
.google-login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 24px;
    padding: 8px;
    font-size: 16px;
    font-weight: 600;
    color: #444;
    box-shadow: 0 1px 2px rgba(60, 64, 67, 0.08);
    cursor: pointer;
    transition: box-shadow 0.2s;
    margin: 0 auto;
}

.google-login-btn:hover {
    box-shadow: 0 2px 4px rgba(60, 64, 67, 0.15);
}

.google-icon {
    display: flex;
    align-items: center;
}

.googleLoginBar {
    text-align: center;
    margin: 24px 0 12px 0;
    color: #888;
    font-size: 14px;
    position: relative;
}

.googleLoginBar span {
    background: #fff;
    padding: 0 12px;
    position: relative;
    z-index: 1;
}

.googleLoginBar:before,
.googleLoginBar:after {
    content: "";
    display: inline-block;
    width: 20%;
    height: 1px;
    background: #eee;
    vertical-align: middle;
    margin: 0 8px;
}

/* --- Email Input --- */
.email-input {
    padding: 12px 18px;
}

/* --- Prominent Continue Button --- */
.prominent-btn {
    background: linear-gradient(
        to right,
        #e61e4d 0%,
        #e31c5f 50%,
        #d70466 100%
    ) !important;
    color: #fff;
    width: 100%;
    border: none;
    box-shadow: 0 2px 8px rgba(26, 115, 232, 0.08);
}

.modal-tab-header {
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    color: #ff385c;
    letter-spacing: 1px;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f2f2f2;
    background: none;
}

.makeFlex.hrtlCenter.appendBottom20 {
    text-align: end;
}

.modalBack.capText {
    cursor: pointer;
    font-weight: 600;
    color: #ff385c;
}

.auth-form-links {
    display: flex;
    justify-content: space-between;
}

.lrf-link {
    font-size: 15px;
    font-weight: 400;
    color: #ff385c;
}

/* === OTP Input with Resend Link Inside === */
.otp-input-wrapper {
    position: relative;
    width: 100%;
}

.otp-input-field {
    width: 100%;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    background: #fafafa;
    box-sizing: border-box;
}

.resend-otp-inside {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.95rem;
    color: #ff385c;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    z-index: 2;
}

.resend-otp-inside:hover {
    text-decoration: underline;
}

p#skipProfile {
    color: #747474;
    font-weight: 700;
    font-size: small;
    text-align: center;
    margin-top: 20px;
}

#userMenuBtn {
    background: linear-gradient(
        to right,
        #e61e4d 0%,
        #e31c5f 50%,
        #d70466 100%
    ) !important;
}

#userDropdown {
    max-width: 300px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(60, 60, 60, 0.18);
    padding: 0;
    margin-top: 3px;
    border: none;
    font-family: inherit;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease;
    position: absolute;
    right: 115px;
    z-index: 1002;
}

#userMenuContainer:hover #userDropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown-header {
    background: #fff3f6;
    color: #ff385c;
    font-size: 13px;
    font-weight: 600;
    padding: 14px 20px 10px 20px;
    border-bottom: 1px solid #e3eaf2;
    line-height: 1.3;
}

.user-dropdown-header .user-email {
    color: #ff385c;
    font-size: 13px;
    font-weight: 400;
    display: block;
    margin-top: 2px;
    word-break: break-all;
}

.user-dropdown-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px;
    cursor: pointer;
    transition: background 0.15s;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    text-decoration: none;
}

.user-dropdown-item:hover {
    background: #fff3f6;
}

.user-dropdown-item i {
    font-size: 20px;
    color: #ff385c;
    flex-shrink: 0;
    margin-top: 2px;
}

.user-dropdown-item .item-title {
    font-weight: 600;
    font-size: 15px;
    color: #222;
    margin-bottom: 2px;
    display: block;
}

.user-dropdown-item .item-desc {
    font-size: 12px;
    color: #666;
    font-weight: 400;
    line-height: 1.3;
    margin-top: 1px;
    display: block;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .form-control {
        border-width: 3px;
    }

    .continue-btn {
        border: 2px solid #ff385c;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .continue-btn:hover,
    .social-btn:hover,
    .auth-tab:hover {
        transform: none;
    }

    .fade-in,
    .slide-in {
        animation: none;
    }
}

/* Password input wrapper styles */
.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-wrapper .form-control {
    padding-right: 50px;
}

.password-toggle-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: color 0.2s ease;
    z-index: 10;
}

.password-toggle-btn:hover {
    color: #374151;
}

.password-toggle-btn:focus {
    outline: none;
    color: #ff385c;
}

.password-toggle-btn i {
    font-size: 16px;
}

/* Forgot password specific styles */
#forgotPasswordEmailDisplay {
    font-weight: 600;
    color: #ff385c;
}

.modalTitle.makeFlex.hrtlCenter.appendBottom5 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #22223b;
    margin-bottom: 0.5rem;
}

.font14.darkGreyText.makeFlex {
    font-size: 0.8rem;
    color: #6b7280;
    line-height: 1.2;
}

/* === PROFILE PAGE HEADER SECTION === */
.profile-header-section {
    position: relative;
    width: 100%;
    min-height: 220px;
    background: linear-gradient(120deg, #eaf4ff 0%, #fff0f3 100%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0;
    margin-bottom: 0;
    overflow: visible;
}
.profile-header-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("../../img/profile-bg.jpg") center/cover no-repeat;
    z-index: 1;
}

.profile-header-bg::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}
.profile-header-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: flex-end;
    gap: 32px;
    padding: 32px 40px 0 40px;
}
.profile-avatar {
    position: relative;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: -20px;
}
.profile-avatar {
    position: relative;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: -20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.profile-avatar .loading-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    color: #e61e4d;
    font-size: 24px;
}

/* Profile Photo Upload Modal Styles */
#profilePhotoModal .modal-content {
    padding: 1.5rem !important;
    border-radius: 12px;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

#profilePhotoModal .modal-title {
    font-weight: 600;
    color: #1f2937;
}

#profilePhotoModal .btn-close {
    position: absolute;
    top: 0.8rem;
    right: 0.8rem;
    z-index: 10;
    border: none;
    font-size: 0.5rem;
    color: #6b7280;
    cursor: pointer;
    padding: 0.4rem;
    border-radius: 50%;
    border: 2px solid #6b7280;
    transition: all 0.3s ease;
}

.upload-area {
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    transition: all 0.3s ease;
    background: #f9fafb;
}

.upload-area:hover,
.upload-area.dragover {
    border-color: #e61e4d;
    background: #fef2f2;
}

.upload-content i {
    font-size: 48px;
    color: #9ca3af;
    margin-bottom: 16px;
}

.upload-content h6 {
    color: #374151;
    font-weight: 600;
    margin-bottom: 8px;
}

.upload-content p {
    color: #6b7280;
    margin-bottom: 16px;
}

.upload-info {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 16px;
    margin-bottom: 0;
}

#browseBtn {
    background: linear-gradient(
        to right,
        #e61e4d 0%,
        #e31c5f 50%,
        #d70466 100%
    );
    border: none;
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
}

#browseBtn:hover {
    background: linear-gradient(
        to right,
        #d70466 0%,
        #e31c5f 50%,
        #e61e4d 100%
    );
    transform: translateY(-1px);
}

.preview-area {
    text-align: center;
}

.preview-image-container {
    margin-bottom: 20px;
}

.preview-image {
    max-width: 100%;
    max-height: 300px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.preview-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.preview-actions .btn {
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.preview-actions .btn-primary {
    background: linear-gradient(
        to right,
        #e61e4d 0%,
        #e31c5f 50%,
        #d70466 100%
    );
    border: none;
}

.preview-actions .btn-primary:hover {
    background: linear-gradient(
        to right,
        #d70466 0%,
        #e31c5f 50%,
        #e61e4d 100%
    );
    transform: translateY(-1px);
}

.preview-actions .btn-secondary {
    background: #6b7280;
    border: none;
}

.preview-actions .btn-secondary:hover {
    background: #4b5563;
    transform: translateY(-1px);
}

.profile-avatar:hover .avatar-overlay {
    opacity: 1;
}

.profile-avatar img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
}

.avatar-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 50%;
}

.avatar-overlay i {
    font-size: 1.2rem;
    margin-bottom: 4px;
}

.avatar-overlay span {
    font-size: 0.7rem;
    text-align: center;
}

/* Profile Form Styles */
.profile-content .form-control {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.profile-content .date-input-wrapper {
    position: relative;
    display: block;
}

.profile-content .date-input {
    cursor: pointer;
    background: #fff;
    position: relative;
    z-index: 1;
    color: transparent;
}

.profile-content .date-input::-webkit-datetime-edit,
.profile-content .date-input::-webkit-datetime-edit-fields-wrapper,
.profile-content .date-input::-webkit-datetime-edit-text,
.profile-content .date-input::-webkit-datetime-edit-month-field,
.profile-content .date-input::-webkit-datetime-edit-day-field,
.profile-content .date-input::-webkit-datetime-edit-year-field {
    color: transparent;
}

.profile-content .date-input.has-value {
    color: #374151;
}

.profile-content .date-input.has-value::-webkit-datetime-edit,
.profile-content .date-input.has-value::-webkit-datetime-edit-fields-wrapper,
.profile-content .date-input.has-value::-webkit-datetime-edit-text,
.profile-content .date-input.has-value::-webkit-datetime-edit-month-field,
.profile-content .date-input.has-value::-webkit-datetime-edit-day-field,
.profile-content .date-input.has-value::-webkit-datetime-edit-year-field {
    color: #374151;
}

.profile-content .date-input::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    position: relative;
    z-index: 3;
}

.profile-content .date-input::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

.profile-content .date-placeholder {
    position: absolute;
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 14px;
    pointer-events: none;
    z-index: 2;
    transition: all 0.3s ease;
    opacity: 1;
}

.profile-content .date-input.has-value + .date-placeholder,
.profile-content .date-input:focus + .date-placeholder {
    opacity: 0;
    transform: translateY(-50%) translateX(-10px);
}

.profile-content .form-control:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    outline: none;
}

.profile-content select.form-control {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.profile-content select.form-control option {
    padding: 8px 12px;
}

.profile-content .save-button {
    background: #9ca3af;
    color: white;
    border: none;
    padding: 8px 24px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.6;
    box-shadow: none;
}

/* Enabled state - when button is active */
.profile-content .save-button.enabled,
.profile-content .save-button:not([disabled]),
.profile-content .save-button[disabled="false"] {
    background: linear-gradient(
        to right,
        #e61e4d 0%,
        #e31c5f 50%,
        #d70466 100%
    ) !important;
    cursor: pointer !important;
    opacity: 1 !important;
    box-shadow: none;
}

/* Hover effect for enabled button */
.profile-content .save-button.enabled:hover,
.profile-content .save-button:not([disabled]):hover,
.profile-content .save-button[disabled="false"]:hover {
    background: linear-gradient(
        to right,
        #d70466 0%,
        #e31c5f 50%,
        #e61e4d 100%
    ) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(230, 30, 77, 0.3);
}

/* Disabled state - when button is inactive */
.profile-content .save-button.disabled,
.profile-content .save-button[disabled="true"],
.profile-content .save-button[disabled] {
    background: #9ca3af !important;
    cursor: not-allowed !important;
    opacity: 0.6 !important;
    box-shadow: none !important;
    transform: none !important;
}

.info-section {
    background: white;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.info-section h3 {
    color: #1f2937;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #f3f4f6;
}

.section-description {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 16px;
}
.profile-user-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 18px;
}
.profile-user-name {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
}
.profile-user-contact {
    font-size: 0.8rem;
    color: #fff;
    display: flex;
    align-content: space-between;
    flex-direction: column;
}
.profile-user-contact .add-mobile {
    color: #fff;
}

/* === PROFILE PAGE MAIN LAYOUT === */
.profile-container {
    margin: 40px auto;
    max-width: 1200px;
}

.profile-main {
    margin: 0 auto;
    max-width: 1100px;
    display: flex;
    flex-direction: row;
    min-height: 700px;
    background: none;
}
.sidebar-section {
    width: 300px;
    padding: 20px;
    background: #fff;
    border-radius: 12px 0px 0px 12px;
    border-right: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-height: 100%;
}
.siderbar-first {
    padding: 5px;
}
.sidebar-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #22223b;
}
.sidebar-menu {
    width: 100%;
}
.menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    margin-bottom: 5px;
    font-size: 1rem;
    color: #333;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.menu-item.active,
.menu-item:hover {
    background: #fff0f3;
    color: #ff385c;
    border-radius: 8px;
}
.menu-icon {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.logout-link {
    color: #ff385c;
    text-decoration: none;
}
.logout-link:hover {
    text-decoration: underline;
}
.profile-content {
    display: flex;
    flex-direction: column;
}
.content-section {
    flex: 1;
    background: #fff;
    min-width: 0;
    border-radius: 0px 12px 12px 0px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}
.content-header {
    display: flex;
    padding: 20px;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e5e7eb;
}
.content-header h2 {
    font-size: calc(var(--font-scale, 1) * 22px);
    font-weight: 700;
    color: #22223b;
}
.content-body {
    padding: 20px;
}
.save-button {
    background: #e0e0e0;
    color: #888;
    border: none;
    border-radius: 8px;
    padding: 10px 32px;
    font-size: 1rem;
    font-weight: 600;
    cursor: not-allowed;
    transition: background 0.2s;
}
.save-button:enabled {
    background: linear-gradient(
        to right,
        #e61e4d 0%,
        #e31c5f 50%,
        #d70466 100%
    );
    color: #fff;
    cursor: pointer;
}
.info-section h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #22223b;
    margin-bottom: 10px;
}
.section-description {
    color: #888;
    font-size: 1rem;
    margin-bottom: 16px;
}
.form-row {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.form-group {
    flex: 1 1 0;
    min-width: 180px;
    margin-bottom: 0;
}
.half-width {
    flex-basis: 48%;
}
.quarter-width {
    flex-basis: 23%;
}
.input-wrapper,
.dropdown-wrapper,
.contact-input-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.form-input,
.contact-input input {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    background: #fafafa;
    transition: border 0.2s, box-shadow 0.2s;
}
.form-input:focus,
.contact-input input:focus {
    border-color: #ff385c;
    background: #fff;
    outline: none;
    box-shadow: 0 0 0 2px #ffe3ea;
}
.form-label,
.contact-label,
.dropdown-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: #888;
    margin-bottom: 0;
    margin-top: 2px;
    transition: color 0.2s;
}
.form-label.filled,
.contact-label.filled {
    color: #ff385c;
}
.dropdown-wrapper {
    gap: 2px;
}
.select-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    background: #fafafa;
    font-size: 1rem;
    cursor: pointer;
    min-height: 48px;
    transition: border 0.2s, box-shadow 0.2s;
}
.select-box:focus,
.select-box.active {
    border-color: #ff385c;
    background: #fff;
    box-shadow: 0 0 0 2px #ffe3ea;
}
.select-arrow {
    width: 18px;
    height: 18px;
    background: url('data:image/svg+xml;utf8,<svg fill="%23FF385C" height="18" viewBox="0 0 24 24" width="18" xmlns="http://www.w3.org/2000/svg"><path d="M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z"/></svg>')
        no-repeat center center;
    background-size: 18px 18px;
    display: inline-block;
}
.field-description {
    font-size: 0.9rem;
    color: #888;
    margin-top: 6px;
}
.contact-input {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fafafa;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    padding: 14px 16px;
    min-height: 48px;
    font-size: 1rem;
    color: #333;
    position: relative;
}
.contact-input.filled {
    background: #eaf4ff;
    border-color: #ff385c;
    color: #22223b;
}
.contact-label {
    margin-top: 8px;
}
.delete-button {
    margin-left: 12px;
    color: #ff385c;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
}
.delete-button:hover {
    color: #d70466;
}

/* --- Profile Page Customizations for General Info & Contact Details --- */
.add-mobile-btn {
    background: #fff;
    border: 2px solid #ff385c !important;
    color: #ff385c;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: background 0.2s, color 0.2s, border 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    letter-spacing: 0.5px;
}
.add-mobile-btn:hover,
.add-mobile-btn:focus {
    background: #ff385c;
    color: #fff;
    border-color: #ff385c;
}
.email-display {
    background: #f8f9fa;
    color: #22223b;
    font-weight: bold;
    border-radius: 8px;
    padding: 14px 16px;
    font-size: 1rem;
    border: 1.5px solid #e5e7eb;
    margin-top: 2px;
    word-break: break-all;
}

/* Enhanced Search Functionality Styles */
.loading-state {
    display: flex;
    align-items: center;
    padding: 15px;
    color: #6c757d;
    font-size: 0.9rem;
}

.loading-state .spinner-border {
    width: 1rem;
    height: 1rem;
}

.error-state {
    display: flex;
    align-items: center;
    padding: 15px;
    color: #dc3545;
    font-size: 0.9rem;
}

.error-state i {
    margin-right: 8px;
}

.destination-autocomplete-popover .dropdown-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    transition: background-color 0.2s ease;
}

.destination-autocomplete-popover .dropdown-item:hover {
    background-color: #f8f9fa;
}

.suggestion-icon-wrapper {
    width: 24px;
    /* margin-right: 12px; */
    text-align: center;
    flex-shrink: 0;
}

.suggestion-icon-wrapper i {
    font-size: 1rem;
}

.suggestion-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.suggestion-content .fw-bold {
    font-weight: 600;
    color: #22223b;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.suggestion-content .small {
    color: #6c757d;
    font-size: 0.875em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Popular Destinations Loading */
#destinationsLoading {
    padding: 40px 20px;
}

#destinationsLoading .spinner-border {
    width: 2rem;
    height: 2rem;
}

/* Enhanced tooltip styles */
.tooltip {
    font-size: 0.875rem;
}

.tooltip-inner {
    background-color: #333;
    color: #fff;
    border-radius: 6px;
    padding: 8px 12px;
}

/* Notification enhancements */
.toastr-container {
    z-index: 9999;
}

.toastr-success {
    background-color: #28a745;
    border-color: #28a745;
}

.toastr-error {
    background-color: #dc3545;
    border-color: #dc3545;
}

.toastr-info {
    background-color: #17a2b8;
    border-color: #17a2b8;
}

.toastr-warning {
    background-color: #ffc107;
    border-color: #ffc107;
    color: #212529;
}

/* Enhanced destination card hover effects */
.destination-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.destination-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Loading animation for search button */
.search-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.search-btn.loading i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* css add by Nitika */
input.flatpickr-input.flatpickr-mobile {
    display: none;
}
/* Responsive Styles */
@media (min-width: 400px) {
    .guests-dropdown .child-ages-row .form-select {
        flex: 0 0 18%;
        min-width: 80px;
        max-width: 120px;
    }
}

@media (max-width: 1200px) {
    .profile-wrapper {
        max-width: 100%;
    }
}

@media (max-width: 1024px) {
    .hero-section {
        display: block;
    }
    .hero-search-form {
        max-width: 80%;
    }
    .location-field,
    .search-card-field,
    .checkin-field,
    .checkout-field {
        flex: unset !important;
    }
    .location-field{ border-bottom: 1.5px solid #e5e7eb; }
    .hero-title {
        font-size: 2rem;
    }

    .search-card-field {
        padding: 0.75rem;
        width: 100%;
        border-right: 0;
    }

    .field-value {
        font-size: 1.25rem;
    }

    .search-btn {
        width: 46px;
        height: 46px;
        font-size: 1rem;
    }
    .guests-field::after {
        content: unset;
    }

    .search-card-group {
        flex-wrap: wrap !important;
    }
    .search-card-group > .checkin-field,
    .search-card-group > .checkout-field {
        flex: 0 0 25%;
        max-width: 25%;
        width: 25%;
        padding-left: 0.9rem;
        padding-right: 0.9rem;
    }
    .search-card-group > .checkin-field {
        border-right: 1.5px solid #e5e7eb;
        border-bottom: 0;
    }
    .search-card-field.guests-field {
        max-width: 30%;
        width: 30%;
        padding-left: 0.9rem;
        padding-right: 0.9rem;
        border: 0;
        border-right: 1.5px solid #e5e7eb;
        border-left: 1.5px solid #e5e7eb;
    }
    .search-card-field:last-child, .search-btn-field{ width: 20%;max-width: unset; }
    .destinations-section, .featured-hotels-section, .why-choose-section{ padding: 1.5rem 0;}
    .destinations-section{ padding-top: 3rem; }
    .section-header{ margin-bottom: 1.5rem; }
}

@media (max-width: 992px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .search-card-group {
        border-radius: 12px;
    }
    .search-card-field {
        border-right: none;
        padding: 1rem 1.25rem;
    }
    .search-card-field:last-child {
        border-bottom: none;
    }
    .search-btn.search-btn-circle {
        margin: 1rem auto 0 auto;
        top: 0;
        transform: none;
    }

    .section-header h2 {
        font-size: 2rem;
    }
    .profile-header-content {
        flex-direction: column;
        align-items: flex-start;
        padding: 24px 16px 0 16px;
        gap: 16px;
    }
    .profile-main {
        flex-direction: column;
    }
    .sidebar-section {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        border-right: none;
        border-bottom: 1px solid #e5e7eb;
    }
    .menu-item {
        padding: 12px;
    }
}

@media (max-width: 768px) {
    .login-register-modal .modal-dialog {
        max-width: 95%;
        margin: 1rem auto;
    }

    .login-register-modal .modal-body {
        flex-direction: column;
        min-height: auto;
    }

    .modal-image-slider {
        flex: none;
        height: 200px;
    }

    .modal-auth-content {
        flex: none;
        padding: 30px 20px;
    }

    .slider-content h3 {
        font-size: 1.5rem;
    }

    .slider-content p {
        font-size: 1rem;
    }

    .auth-tabs {
        margin-bottom: 1.5rem;
    }

    .auth-tab {
        font-size: 1rem;
        padding: 0.75rem 0;
    }

    .otp-input-group {
        gap: 6px;
    }

    .otp-input {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    .guests-dropdown {
        width: 280px !important;
        min-width: 280px !important;
        left: 0 !important;
        right: auto !important;
    }
    .hero-section {
        height: auto;
        min-height: 500px;
        padding: 2rem 0;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .destinations-section,
    .featured-hotels-section,
    .why-choose-section {
        padding: 1rem 0;
    }
    .destinations-section{ padding-top: 3rem; }
    .section-header{ margin-bottom: 1.5rem; }
    
    .section-header h2 {
        font-size: 1.75rem;
    }

    .newsletter-content h2 {
        font-size: 2rem;
    }
    .destination-suggestions {
        max-height: 220px;
    }

    .destination-popover-input {
        font-size: 14px;
        padding: 10px 12px;
    }

    .destination-suggestions .dropdown-item {
        padding: 10px 12px;
    }

    .destination-suggestions .dropdown-item .fw-bold {
        font-size: 14px;
    }

    .destination-suggestions .dropdown-item .small {
        font-size: 12px;
    }
    .location-field .city-name {
        font-size: 1.2rem;
    }
     #loginRegisterModal .modal-dialog {
        max-width: 80vw !important;
        margin: 1rem auto;
        max-height: unset;
    }
    .modal-image-slider {
        flex: none;
        border-radius: 20px 20px 0 0;
    }
    .slider-content {
        border-radius: 0 0 20px 20px;
        padding: 20px 10px;
    }
    .profile-container {
        padding: 0;
    }
    .profile-wrapper {
        border-radius: 0;
        box-shadow: none;
    }
    .form-row {
        gap: 12px;
    }
    .profile-header-content {
        flex-direction: column;
        align-items: flex-start;
        padding: 90px 8px 16px 8px;
        gap: 10px;
    }
    .profile-avatar {
        width: 80px;
        height: 80px;
        margin-bottom: 0;
    }
    .profile-user-info{ margin-bottom: 0;gap: unset; }
    .loading-state,
    .error-state {
        padding: 12px;
        font-size: 0.85rem;
    }

    .suggestion-icon-wrapper {
        width: 20px;
        margin-right: 10px;
    }

    .suggestion-content .fw-bold {
        font-size: 0.9rem;
    }

    .suggestion-content .small {
        font-size: 0.8rem;
    }
    .modal-image-slider{ display: none; }
    .destination-content h4, .hotel-location{ display: inline-block; }
    .hotel-count, .hotel-rating{ float: right; }
    .profile-page .menu-list{ display: flex; }
    .profile-page .menu-item{ flex: 1; }
}

@media (max-width: 767px) {
    .search-card-group > .checkin-field, .search-card-group > .checkout-field, .search-card-field.guests-field{
        max-width: 50%;
        width: 50%;
        border-bottom: 1.5px solid #e5e7eb;
    }
    .search-card-field.guests-field{ border-bottom: 0;border-left: 0; }
    .search-card-field:last-child, .search-btn-field{ max-width: 50%; }
    .search-btn,
    .search-btn.search-btn-circle {
        min-height: unset;
        height: 48px;
    }
    
    .search-card-group .search-btn {
        border-radius: 12px;
    }
}

@media (max-width: 576px) {
    .hero-search-form {
        max-width: 94%;
    }
    .login-register-modal .modal-content {
        border-radius: 16px;
    }

    .modal-auth-content {
        padding: 20px 15px;
    }

    .slider-content {
        padding: 20px 15px;
    }

    .slider-content h3 {
        font-size: 1.3rem;
    }

    .otp-input {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .continue-btn {
        padding: 12px 20px;
        font-size: 1rem;
    }
    .guests-dropdown {
        min-width: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
        left: 0 !important;
        right: 0 !important;
    }
    .hero-title {
        font-size: 24px;
        margin-bottom: 0;
    }
    .hero-subtitle {
        font-size: 16px;
    }
    .location-field .city-name {
        font-size: 1rem;
    }
    .search-card-field{ padding: 10px; }
    .otp-input-field {
        padding-right: 90px;
        font-size: 0.95rem;
    }
    .resend-otp-inside {
        font-size: 0.85rem;
        right: 10px;
    }
    .profile-wrapper {
        border-radius: 0;
        box-shadow: none;
    }
    .content-header h2 {
        font-size: 1.3rem;
    }
    .info-section h3 {
        font-size: 1rem;
    }
    .profile-header-content {
        padding: 8px 2px 0 2px;
    }
    .search-btn, .search-btn.search-btn-circle{ width: 100%;max-width: unset; }
}

@media (max-width: 500px) {
    .search-card-field:last-child, .search-btn-field {
        padding: 8px;
        width: 100%;
        max-width: unset;
    }
    .search-card-group > .checkin-field, .search-card-group > .checkout-field, .search-card-field.guests-field{
        max-width: 100%;
        width: 100%;
        flex-direction: row;
    }
    .search-card-field .field-label, .search-card-field .field-main{ width: 100%; }
}
