/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'BlinkMacSystemFont', '-apple-system', 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #262626;
}

/* Header Styles */
@keyframes cloudDrift {
    0% { background-position: 0px 0px, 0px 0px, 0px 0px; }
    100% { background-position: 2400px 0px, 1600px 0px, 0px 0px; }
}

.main-header {
    background-color: #003b95;
    background-image: 
        radial-gradient(800px 400px at 50% 30%, rgba(255, 255, 255, 0.4) 0%, transparent 60%),
        radial-gradient(600px 300px at 50% 80%, rgba(255, 255, 255, 0.25) 0%, transparent 50%),
        linear-gradient(135deg, #003b95, #0056b3);
    background-size: 1200px 100%, 800px 100%, 100% 100%;
    animation: cloudDrift 20s linear infinite;
    color: #ffffff;
    padding-bottom: 60px; /* Space for the overlapping search bar */
}

.header-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Top Navigation */
.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    cursor: pointer;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-item {
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    padding: 8px;
    border-radius: 4px;
}

.nav-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.flag-icon {
    border-radius: 50%;
    width: 20px;
    height: 20px;
    object-fit: cover;
}

.nav-btn {
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s;
}

.btn-light {
    background-color: #ffffff;
    color: #003b95;
}

.btn-light:hover {
    background-color: #f2f2f2;
}

/* Mobile Nav Icons */
.mobile-nav-icons {
    display: none;
    align-items: center;
    gap: 20px;
}

.mobile-icon {
    font-size: 24px;
    padding: 0;
    color: #ffffff;
    text-decoration: none;
}

.notification-dot {
    position: absolute;
    top: 0;
    right: -2px;
    width: 8px;
    height: 8px;
    background-color: #d4111e;
    border-radius: 50%;
    border: 1px solid #003b95;
}

/* Secondary Navigation */
.secondary-nav {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.sec-nav-item {
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    padding: 10px 16px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.2s;
}

.sec-nav-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.sec-nav-item.active {
    background-color: rgba(255, 255, 255, 0.15);
    border: 1px solid #ffffff;
}

/* Hero Section */
.hero-section {
    padding: 60px 0;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 15px;
}

.hero-subtitle {
    font-size: 24px;
    font-weight: 400;
}

/* Search Box */
.search-section-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 15px;
    position: relative;
    margin-top: -32px; /* Overlap with header */
    z-index: 10;
}

.search-container {
    background-color: #febb02;
    padding: 4px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.search-form {
    display: flex;
    background-color: transparent;
    gap: 4px;
}

.search-field {
    background-color: #ffffff;
    position: relative;
    cursor: pointer;
    border-radius: 4px;
}

.destination-field {
    flex: 1.5;
    display: flex;
    align-items: center;
    padding: 0 15px;
    height: 52px;
}

.search-icon {
    color: #262626;
    margin-right: 12px;
    font-size: 20px;
}

.search-input {
    border: none;
    outline: none;
    font-size: 15px;
    font-weight: 500;
    color: #262626;
    width: 100%;
}

.search-input::placeholder {
    color: #262626;
}

.clear-icon, .arrow-icon {
    color: #262626;
    margin-left: auto;
    font-size: 14px;
}

/* Dates */
.date-range-picker {
    flex: 2;
    display: flex;
    align-items: center;
    padding: 0 15px;
    height: 52px;
}

.date-label, .guest-label {
    display: none; /* Hidden on desktop */
}

.date-value, .guest-value {
    font-size: 15px;
    font-weight: 500;
    color: #262626;
    display: flex;
    align-items: center;
}

/* On desktop, simulate the icons before date/guest values */
@media (min-width: 769px) {
    .date-range-picker::before {
        content: "\f073"; /* FontAwesome calendar icon */
        font-family: "Font Awesome 6 Free";
        font-weight: 400;
        position: absolute;
        left: 15px;
        color: #262626;
        font-size: 20px;
        z-index: 1;
        pointer-events: none;
    }
    .date-range-picker input { padding-left: 32px; }

    .guests-picker::before {
        content: "\f007"; /* FontAwesome user icon */
        font-family: "Font Awesome 6 Free";
        font-weight: 400;
        position: absolute;
        left: 15px;
        color: #262626;
        font-size: 20px;
    }
    .guests-picker .guest-summary { padding-left: 32px; }
}

/* Guests Picker */
.guests-picker {
    flex: 1.5;
    display: flex;
    align-items: center;
    padding: 0 15px;
    height: 52px;
    cursor: pointer;
    position: relative;
}

.guest-summary {
    font-size: 15px;
    font-weight: 500;
    color: #262626;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dropdown-icon {
    font-size: 14px;
    color: #262626;
    margin-left: 10px;
}

/* Dropdown */
.guest-dropdown {
    display: none;
    position: absolute;
    top: 60px;
    right: 0;
    background-color: #ffffff;
    border-radius: 4px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.15);
    padding: 24px;
    width: 340px;
    z-index: 100;
    cursor: default;
}

.guest-dropdown.show {
    display: block;
}

.guest-dropdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.guest-dropdown-item:last-child {
    margin-bottom: 0;
}

.guest-dropdown-label {
    font-size: 16px;
    font-weight: 500;
    color: #262626;
}

.guest-dropdown-controls {
    display: flex;
    align-items: center;
    border: 1px solid #858585;
    border-radius: 4px;
    overflow: hidden;
}

.guest-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: none;
    font-size: 20px;
    color: #0071c2;
    cursor: pointer;
    outline: none;
}

.guest-btn:hover:not(:disabled) {
    background-color: #f2f2f2;
}

.guest-btn:disabled {
    color: #c6c6c6;
    cursor: not-allowed;
}

.guest-count {
    width: 36px;
    text-align: center;
    font-size: 16px;
    font-weight: 500;
}

.search-submit-btn {
    background-color: #0071c2;
    color: #ffffff;
    border: none;
    font-size: 20px;
    font-weight: 500;
    padding: 0 32px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.search-submit-btn:hover {
    background-color: #005999;
}

/* Responsive adjustments for Mobile */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .mobile-nav-icons { display: flex; }
    
    .secondary-nav {
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 5px;
        -webkit-overflow-scrolling: touch;
        margin: 15px -15px 0 -15px;
        padding: 0 15px 5px 15px;
    }
    .secondary-nav::-webkit-scrollbar { display: none; }
    
    .main-header {
        padding-bottom: 0;
    }
    
    .hero-section {
        background-color: #f5f5f5;
        margin: 0 -15px;
        padding: 30px 15px 40px 15px;
    }
    .hero-title, .hero-subtitle {
        color: #1a1a1a;
    }
    .hero-title {
        font-size: 32px;
    }
    .hero-subtitle {
        font-size: 16px;
    }
    
    .search-section-wrapper {
        margin-top: -20px;
    }
    
    .search-form {
        flex-direction: column;
    }
    
    .destination-field,
    .date-range-picker,
    .guests-picker {
        flex: none;
        align-items: center;
        padding: 0 15px;
        height: 52px;
        width: 100%;
    }
    
    .date-label, .guest-label {
        display: block;
        font-size: 12px;
        color: #262626;
        margin-bottom: 4px;
    }
    
    .date-value, .guest-value {
        font-size: 15px;
        font-weight: 700;
        gap: 0;
    }
    
    .guest-dropdown {
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
    }
    
    .search-submit-btn {
        height: 52px;
    }
    
    .carousel-btn {
        display: none;
    }
}

/* Property Types Section */
.property-types-section {
    margin-top: 40px;
    margin-bottom: 40px;
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 20px;
}

.carousel-container {
    position: relative;
    display: flex;
    align-items: center;
}

.carousel-track {
    display: grid;
    grid-auto-flow: column;
    gap: 16px;
    overflow-x: auto;
    scroll-behavior: smooth;
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
    width: 100%;
}
#propTrack {
    grid-auto-columns: calc((100% - 48px) / 4);
}
#exploreTrack {
    grid-auto-columns: calc((100% - 80px) / 6);
}
.carousel-track::-webkit-scrollbar {
    display: none;
}

.property-card {
    cursor: pointer;
}

.property-img-placeholder {
    width: 100%;
    aspect-ratio: 4 / 3;
    background-color: #e0e0e0;
    border-radius: 8px;
    margin-bottom: 12px;
    background-size: cover;
    background-position: center;
}

.property-title {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
}

.carousel-btn {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid #c6c6c6;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    color: #1a1a1a;
    transition: 0.2s;
}

.carousel-btn:hover {
    background: #f2f2f2;
}

.prev-btn {
    left: -16px;
}

.next-btn {
    right: -16px;
}

/* Explore Section */
.explore-section {
    margin-bottom: 40px;
}

.section-subtitle {
    font-size: 16px;
    color: #6b6b6b;
    margin-top: -15px;
    margin-bottom: 20px;
}

.destination-card {
    cursor: pointer;
}

.dest-img-placeholder {
    width: 100%;
    aspect-ratio: 4 / 3;
    background-color: #e0e0e0;
    border-radius: 8px;
    margin-bottom: 8px;
}

.dest-title {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    display: flex;
    align-items: center;
}

.dest-subtitle {
    font-size: 14px;
    color: #6b6b6b;
    margin-top: 2px;
}



/* Unique Properties Section */
.unique-properties-section {
    margin-bottom: 40px;
}

#uniqueTrack {
    grid-auto-columns: calc((100% - 48px) / 4); /* 4 visible on desktop */
}

.unique-property-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    overflow: hidden;
    cursor: pointer;
}

.unique-img-wrapper {
    position: relative;
}

.unique-img-placeholder {
    width: 100%;
    aspect-ratio: 4 / 3;
    background-color: #e0e0e0;
    background-size: cover;
    background-position: center;
}

.heart-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ffffff;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    font-size: 16px;
    color: #1a1a1a;
    transition: background-color 0.2s;
}

.heart-btn:hover {
    background: #f2f2f2;
}

.unique-content {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.unique-type-row {
    font-size: 12px;
    color: #6b6b6b;
    display: flex;
    align-items: center;
    gap: 4px;
}

.unique-stars {
    display: flex;
    align-items: center;
    gap: 2px;
}

.thumbs-up-icon {
    background: #febb02;
    color: #ffffff;
    border-radius: 2px;
    padding: 2px 3px;
    font-size: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 2px;
}

.unique-badge {
    background: #003b95;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 2px;
    margin-left: 4px;
}

.unique-title {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.2;
}

.unique-location {
    font-size: 13px;
    color: #6b6b6b;
}

.unique-rating-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

.rating-score {
    background: #003b95;
    color: #ffffff;
    font-weight: 700;
    font-size: 14px;
    padding: 4px 6px;
    border-radius: 4px 4px 4px 0;
}

.rating-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.rating-word {
    font-size: 13px;
    font-weight: 700;
    color: #1a1a1a;
}

.rating-reviews {
    font-size: 12px;
    color: #6b6b6b;
}

.unique-price-row {
    margin-top: auto;
    text-align: right;
    padding-top: 10px;
}

.price-label {
    font-size: 12px;
    color: #6b6b6b;
}

.old-price {
    font-size: 14px;
    color: #d4111e;
    text-decoration: line-through;
}

.new-price {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
}

/* Modern Footer */
.modern-footer {
    background-color: #f2f2f2;
    padding: 60px 0 20px 0;
    font-size: 14px;
    color: #1a1a1a;
    margin-top: 60px;
}
.footer-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 15px;
}
.footer-links-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}
@media (max-width: 900px) {
    .footer-links-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 600px) {
    .footer-links-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
.footer-col h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #1a1a1a;
}
.footer-col a {
    display: block;
    color: #1a1a1a;
    text-decoration: none;
    margin-bottom: 12px;
    font-weight: 400;
    transition: color 0.2s;
}
.footer-col a:hover {
    color: #0071c2;
    text-decoration: underline;
}
.footer-bottom {
    border-top: 1px solid #dcdcdc;
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}
.footer-locale {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    cursor: pointer;
    align-self: flex-start;
}
.footer-copyright {
    text-align: center;
    font-size: 12px;
    color: #6b6b6b;
    line-height: 1.6;
}

/* Footer Social Media Links */
.footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    flex-wrap: wrap;
    gap: 15px;
}
.footer-social {
    display: flex;
    gap: 12px;
}
.footer-social .social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: #e4e6eb;
    color: #1a1a1a;
    border-radius: 50%;
    text-decoration: none;
    font-size: 16px;
    transition: background-color 0.2s, color 0.2s, transform 0.2s;
}
.footer-social .social-icon:hover {
    color: #ffffff;
    transform: translateY(-2px);
}
.footer-social .social-icon.facebook:hover {
    background-color: #1877f2;
}
.footer-social .social-icon.youtube:hover {
    background-color: #ff0000;
}
.footer-social .social-icon.whatsapp:hover {
    background-color: #25D366;
}
@media (max-width: 600px) {
    .footer-row {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    .footer-locale {
        align-self: center !important;
    }
}

/* Ensure mobile overrides apply correctly (placed at the bottom for higher precedence) */
@media (max-width: 768px) {
    #propTrack {
        grid-auto-columns: calc((100% - 16px) / 2.2);
    }
    #exploreTrack {
        grid-auto-columns: calc((100% - 16px) / 2.5);
    }
    #uniqueTrack {
        grid-auto-columns: calc((100% - 16px) / 2); /* Show exactly 2 cards on mobile */
    }
    
    /* Adjust text sizes for unique property card on mobile to look nicer */
    .unique-title {
        font-size: 14px;
    }
    .unique-location {
        font-size: 12px;
    }
    .new-price {
        font-size: 15px;
    }
    .old-price {
        font-size: 11px;
    }
    .rating-score {
        font-size: 12px;
        padding: 3px 5px;
    }
    .rating-word {
        font-size: 11px;
    }
    .rating-reviews {
        font-size: 10px;
    }
    .unique-content {
        padding: 8px;
    }
}
