:root {
    --primary: #1a73e8;
    --primary: #1877f2;
    --primary-hover: #166fe5;
    --text: #333333;
    --text-light: #717171;
    --text-dark: #222222;
    --bg-light: #f7f7f9;
    --border: #dddddd;
    --white: #ffffff;
    --font-stack: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-stack);
}

body {
    font-family: var(--font-stack);
    background-color: var(--bg-light);
    color: var(--text);
    line-height: 1.6;
}

.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Header */
header {
    background: var(--white);
    padding: 15px 0;
    padding-top: calc(15px + env(safe-area-inset-top, 0px));
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
}

.logo span {
    color: var(--secondary);
}

/* Dropdown Menu */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--white);
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1;
    border-radius: 8px;
    top: 100%;
    overflow: hidden;
}

.dropdown-content a {
    color: var(--text);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 14px;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
    color: var(--primary);
}

.dropdown:hover .dropdown-content {
    display: block;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 25px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-links a:hover {
    color: var(--primary);
}

.btn-admin {
    background: var(--primary);
    color: white !important;
    padding: 8px 16px;
    border-radius: 8px;
}

/* Hero */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('https://images.unsplash.com/photo-1542314831-068cd1dbfeeb?auto=format&fit=crop&w=1600&q=80');
    background-size: cover;
    background-position: center;
    padding: 100px 0;
    color: white;
    text-align: center;
}

.hero h1 {
    font-size: 42px;
    margin-bottom: 10px;
}

.hero p {
    font-size: 18px;
    margin-bottom: 40px;
}

.search-bar {
    background: white;
    padding: 10px;
    border-radius: 12px;
    display: flex;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    max-width: 900px;
    margin: 0 auto;
    color: var(--text);
}

.search-item {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 10px 15px;
    border-right: 1px solid var(--border);
    text-align: left;
}

.search-item:last-of-type {
    border-right: none;
}

.search-item i {
    color: var(--primary);
    margin-right: 10px;
}

.search-item label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
}

.search-item input {
    border: none;
    outline: none;
    width: 100%;
    font-size: 14px;
    padding: 4px 0;
}

.btn-search {
    background: var(--secondary);
    color: white;
    border: none;
    padding: 0 30px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s;
}

.btn-search:hover {
    transform: scale(1.02);
}

/* Area Catalog */
.area-catalog {
    padding: 20px 0 60px 0;
}

.area-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.area-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 180px;
    cursor: pointer;
    text-decoration: none;
}

.area-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.area-card:hover img {
    transform: scale(1.1);
}

.area-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 20px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.area-overlay h3 {
    color: white;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
}

.area-overlay i {
    color: white;
    width: 18px;
    height: 18px;
}

.featured {
    padding: 60px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 30px;
}

.view-all {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    font-size: 14px;
}

.property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

@media (min-width: 1200px) {
    .property-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

.property-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.property-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.property-image {
    position: relative;
    height: 220px;
    overflow: hidden;
    border-radius: 12px;
    margin: 12px;
}

.carousel-container {
    display: flex;
    transition: transform 0.4s ease-in-out;
    height: 100%;
}

.carousel-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    flex-shrink: 0;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transition: opacity 0.2s, transform 0.2s;
    z-index: 2;
}

.property-image:hover .carousel-btn {
    opacity: 1;
}

.carousel-btn:hover {
    transform: translateY(-50%) scale(1.1);
    background: white;
}

.carousel-btn.prev {
    left: 8px;
}

.carousel-btn.next {
    right: 8px;
}

.carousel-dots {
    position: absolute;
    bottom: 15px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 6px;
    z-index: 2;
}

.carousel-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transition: background 0.2s, transform 0.2s;
}

.carousel-dot.active {
    background: white;
    transform: scale(1.2);
}

.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #ff5a5f;
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.property-info {
    padding: 20px;
}

.property-location {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.property-info h3 {
    font-size: 18px;
    margin-bottom: 12px;
    height: 54px;
    overflow: hidden;
}

.property-price {
    font-weight: 700;
    color: var(--primary);
    font-size: 18px;
}

.property-price span {
    font-weight: 400;
    color: var(--text-muted);
    font-size: 14px;
}

.property-price small {
    color: var(--text-muted);
}

/* Footer */
footer {
    background: #202124;
    color: white;
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-info p {
    margin-top: 15px;
    color: #9aa0a6;
}

.footer-links h4 {
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #9aa0a6;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #3c4043;
    padding-top: 20px;
    text-align: center;
    font-size: 14px;
    color: #9aa0a6;
}

/* Responsive */
@media (max-width: 768px) {
    .search-bar {
        flex-direction: column;
        padding: 20px;
    }

    .search-item {
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding: 15px 0;
    }

    .btn-search {
        margin-top: 20px;
        padding: 15px;
        justify-content: center;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 28px;
    }

    .nav-links {
        display: none;
    }
}

.search-container {
    background: white;
    border-radius: 100px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border);
    max-width: 900px;
    margin: 30px auto;
}

.header-search {
    margin: 0 20px !important;
    padding: 5px 8px;
    max-width: 850px;
    flex: 1;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: max-width 0.3s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s ease;
}

.header-search.compact {
    max-width: 650px;
    cursor: pointer;
}

.header-search .search-field {
    padding: 2px 15px;
    transition: padding 0.3s ease;
}

.header-search.compact .search-field {
    padding: 6px 10px;
}

.header-search .search-field label {
    font-size: 10px;
    margin-bottom: 2px;
    transition: opacity 0.2s ease, height 0.2s ease;
    opacity: 1;
    height: auto;
}

.header-search.compact .search-field label {
    opacity: 0;
    height: 0;
    margin-bottom: 0;
    overflow: hidden;
}

.header-search .search-field input,
.header-search .search-field #guest-display,
.header-search .search-field #price-display {
    font-size: 13px;
    transition: font-weight 0.2s ease;
    white-space: nowrap;
}

.header-search.compact .search-field input,
.header-search.compact .search-field #guest-display,
.header-search.compact .search-field #price-display {
    font-weight: 600;
    cursor: pointer;
}

.header-search.compact .search-field input::placeholder {
    color: var(--text-dark);
    font-weight: 600;
}

.header-search .btn-search-main {
    width: 38px;
    height: 38px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.header-search.compact .btn-search-main {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.search-field {
    flex: 1;
    padding: 5px 20px;
    border-right: 1px solid #eee;
    position: relative;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.search-field:last-of-type {
    border-right: none;
}

.search-field label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.search-field input,
.search-field #guest-display {
    border: none;
    width: 100%;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-dark);
    outline: none;
    background: transparent;
    padding: 0;
}

.btn-search-main {
    background: var(--primary);
    color: white;
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.btn-search-main:hover {
    transform: scale(1.05);
}

/* Guest Picker Dropdown */
.guest-picker {
    position: absolute;
    top: 100%;
    left: 0;
    width: 300px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 20px;
    margin-top: 15px;
    display: none;
    z-index: 1000;
}

.guest-picker.active {
    display: block;
}

.guest-type {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f5f5f5;
}

.guest-type:last-child {
    border-bottom: none;
}

.guest-info h4 {
    font-size: 14px;
    margin: 0;
    color: #333;
}

.guest-info p {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0;
}

.guest-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-qty {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #ccc;
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
}

.btn-qty:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Amenity Bar for Homestay Page */
.premium-filter-bar {
    background: white;
    border-bottom: 1px solid var(--border);
    padding: 10px 0;
    position: sticky;
    top: 80px;
    z-index: 95;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.amenity-slider-container {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

.amenity-slider-btn {
    position: absolute;
    z-index: 10;
    background: white;
    border: 1px solid var(--border);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.2s, box-shadow 0.2s;
    color: var(--text-dark);
}

.amenity-slider-btn:hover {
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.amenity-slider-btn.left {
    left: -16px;
}

.amenity-slider-btn.right {
    right: -16px;
}

.amenity-scroll {
    display: flex;
    overflow-x: auto;
    gap: 30px;
    padding: 10px 0;
    scrollbar-width: none;
}

.amenity-scroll::-webkit-scrollbar {
    display: none;
}

.amenity-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 10px;
    min-width: 80px;
    cursor: pointer;
    color: var(--text-light);
    opacity: 0.7;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}

.amenity-tab:hover,
.amenity-tab.active {
    color: var(--text-dark);
    opacity: 1;
    border-bottom-color: var(--text-dark);
}

.amenity-tab span {
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.amenity-tab i {
    width: 24px;
    height: 24px;
}

/* Detail Page Styles */
.detail-page-wrapper .container {
    max-width: 1200px !important;
    margin: 0 auto;
}

.detail-container {
    padding: 30px 0;
    max-width: 1200px;
    margin: 0 auto;
}

.detail-header {
    margin-bottom: 25px;
}

.detail-breadcrumbs {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.detail-title-area {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.detail-title-area h1 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 8px;
}

.detail-meta {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: var(--text-muted);
}

.detail-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Gallery Grid */
.detail-gallery {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: repeat(2, 250px);
    gap: 12px;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 40px;
    position: relative;
}

.detail-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 0.3s, transform 0.3s;
    cursor: pointer;
}

.detail-gallery img:hover {
    filter: brightness(0.9);
    transform: scale(1.02);
}

.gallery-main {
    grid-row: span 2;
}

.btn-all-photos {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: white;
    border: 1px solid var(--text);
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Detail Main Layout */
.detail-content {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 50px;
}

/* Quick Info Grid */
.quick-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 40px;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 20px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.info-item i {
    width: 24px;
    height: 24px;
    color: var(--primary);
}

.info-text strong {
    display: block;
    font-size: 16px;
    color: var(--text);
}

.info-text span {
    font-size: 13px;
    color: var(--text-muted);
}

/* Sticky Booking Card */
.sticky-sidebar {
    position: sticky;
    top: 90px;
}

.booking-card {
    background: white;
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border);
}

.booking-price {
    display: flex;
    align-items: baseline;
    gap: 2px;
    margin-bottom: 20px;
}

.booking-price .amount {
    font-size: 28px;
    font-weight: 800;
    color: #222;
}

.booking-price .currency {
    font-size: 20px;
    font-weight: 700;
    color: #222;
}

.booking-price .unit {
    font-size: 15px;
    font-weight: 400;
    color: var(--text-muted);
    margin-left: 4px;
}

.booking-form {
    border: 1px solid var(--border);
    border-radius: 16px;
    margin-bottom: 20px;
}

.booking-dates {
    display: flex;
    border-bottom: 1px solid var(--border);
}

.date-input {
    flex: 1;
    padding: 15px;
}

.date-input:first-child {
    border-right: 1px solid var(--border);
}

.date-input label {
    display: block;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-muted);
}

.date-input input {
    border: none;
    width: 100%;
    font-size: 14px;
    margin-top: 4px;
    outline: none;
    background: transparent;
}

.booking-guests {
    padding: 15px;
}

.btn-book-now {
    width: 100%;
    background: #0084ff;
    color: white;
    border: none;
    padding: 18px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
}

.btn-book-now:hover {
    background: #0073e6;
    transform: translateY(-2px);
}

/* Description & Sections */
.detail-section {
    margin-bottom: 50px;
    padding-bottom: 40px;
    border-bottom: 1px solid #f0f0f0;
}

.detail-section h2 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 25px;
}

.desc-text {
    line-height: 1.8;
    color: #484848;
    font-size: 16px;
}

.amenity-list-detail {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.amenity-item-detail {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 16px;
}

.amenity-item-detail i {
    width: 20px;
    height: 20px;
    color: #222;
}

.extra-services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.extra-service-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    border: 1px solid #f0f0f0;
    border-radius: 16px;
    transition: border-color 0.2s;
}

.extra-service-card:hover {
    border-color: var(--primary);
}

.extra-service-icon {
    width: 50px;
    height: 50px;
    background: #f8f9fa;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.extra-service-info h4 {
    font-size: 15px;
    margin-bottom: 5px;
}

.extra-service-info p {
    font-size: 14px;
    font-weight: 800;
    color: var(--primary);
}

@media (max-width: 1024px) {
    .detail-content {
        grid-template-columns: 1fr;
    }

    .sticky-sidebar {
        position: static;
    }

    .detail-gallery {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .gallery-main {
        grid-row: auto;
        height: 300px;
    }
}

/* Calendar & Policy Styles */
.calendar-container {
    padding: 25px;
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 20px;
    margin-bottom: 40px;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.month-title {
    font-weight: 700;
    text-align: center;
    margin-bottom: 15px;
    font-size: 14px;
}

.days-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    text-align: center;
}

.day-name {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 10px;
}

.day-cell {
    padding: 8px 0;
    border-radius: 8px;
    font-size: 13px;
    position: relative;
    cursor: pointer;
    transition: background 0.2s;
}

.day-cell:hover {
    background: #f8f9fa;
}

.day-cell.active {
    background: #0084ff;
    color: white;
}

.day-cell.range {
    background: #e8f0fe;
}

.day-price {
    display: block;
    font-size: 8px;
    color: #888;
    margin-top: 2px;
}

.day-cell.active .day-price {
    color: rgba(255, 255, 255, 0.8);
}

.policy-note {
    margin-top: 30px;
    padding: 25px;
    background: #fffdf0;
    border-radius: 16px;
    border: 1px solid #ffeeba;
}

.policy-list {
    margin-top: 15px;
    padding-left: 0;
    list-style: none;
}

.policy-list li {
    font-size: 14px;
    margin-bottom: 10px;
    color: #444;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.policy-list li::before {
    content: "•";
    color: #ffb400;
    font-weight: bold;
}

@media (max-width: 768px) {
    .calendar-grid {
        grid-template-columns: 1fr;
    }
}

/* Sub-tab Buttons */
.sub-tabs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin: 30px 0;
}

.sub-tab-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border: 1.5px solid #0084ff;
    border-radius: 12px;
    color: #0084ff;
    font-weight: 700;
    font-size: 14px;
    background: white;
    cursor: pointer;
    transition: background 0.2s;
}

.sub-tab-btn:hover {
    background: #f0f7ff;
}

.sub-tab-btn i {
    width: 20px;
    height: 20px;
}

/* Full Amenities Grid */
.full-amenities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.full-amenity-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    color: #444;
}

.full-amenity-item i {
    width: 20px;
    height: 20px;
    color: #666;
}

@media (max-width: 768px) {
    .sub-tabs-grid {
        grid-template-columns: 1fr;
    }

    .full-amenities-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Floating Contact Buttons */
.floating-contact-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-end;
    animation: float-in 0.5s ease-out forwards;
}

@keyframes float-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.floating-btn {
    display: flex;
    align-items: center;
    background: white;
    padding: 8px 16px 8px 16px;
    border-radius: 30px;
    color: white;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s, box-shadow 0.2s;
    font-family: inherit;
}

.floating-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.floating-btn-text {
    display: flex;
    flex-direction: column;
    margin-right: 12px;
    text-align: right;
    color: white;
}

.floating-btn-text strong {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
}

.floating-btn-text small {
    font-size: 11px;
    opacity: 0.9;
}

.floating-btn-icon {
    width: 36px;
    height: 36px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.floating-btn-icon img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.floating-btn-icon i,
.floating-btn-icon svg {
    width: 20px;
    height: 20px;
}

.zalo-text {
    color: #0068FF;
    font-weight: 800;
    font-size: 13px;
    font-family: sans-serif;
}

/* Specific button colors */
.floating-zalo {
    background: #0068FF;
}

.floating-facebook {
    background: #3b5998;
}

.floating-facebook .floating-btn-icon {
    color: #3b5998;
}

.floating-hotline {
    background: #1B9C56;
}

.floating-hotline .floating-btn-icon {
    color: #1B9C56;
}

.floating-livechat {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    margin-top: 10px;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.floating-livechat:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.floating-livechat i {
    width: 28px;
    height: 28px;
}

/* Livechat Modal */
.livechat-modal {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 350px;
    height: 500px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.9);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-origin: bottom right;
}

.livechat-modal.active {
    transform: scale(1);
    opacity: 1;
    pointer-events: auto;
}

.livechat-header {
    background: var(--primary);
    color: white;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.livechat-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 16px;
}

.livechat-close {
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.livechat-close:hover {
    opacity: 1;
}

.livechat-messages {
    flex: 1;
    background: #f8f9fa;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.chat-msg {
    display: flex;
    gap: 10px;
    max-width: 85%;
}

.chat-msg.user-msg {
    margin-left: auto;
    flex-direction: row-reverse;
}

.chat-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
    overflow: hidden;
}

.chat-avatar img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.user-msg .chat-avatar {
    background: #e9ecef;
}

.chat-bubble {
    background: white;
    padding: 12px 16px;
    border-radius: 12px;
    border-top-left-radius: 4px;
    font-size: 14px;
    color: #333;
    line-height: 1.5;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.user-msg .chat-bubble {
    background: var(--primary);
    color: white;
    border-radius: 12px;
    border-top-right-radius: 4px;
    border-top-left-radius: 12px;
}

.livechat-input {
    padding: 15px;
    background: white;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 10px;
}

.livechat-input input {
    flex: 1;
    border: 1px solid var(--border);
    background: #f8f9fa;
    padding: 12px 16px;
    border-radius: 20px;
    outline: none;
    font-size: 14px;
    transition: border-color 0.2s;
}

.livechat-input input:focus {
    border-color: var(--primary);
    background: white;
}

.livechat-input button {
    background: var(--primary);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
}

.livechat-input button:hover {
    transform: scale(1.05);
    background: #0066cc;
}

/* ===================== FOOTER ===================== */
.site-footer {
    background: #0d0d0d;
    color: #aaa;
    padding: 60px 0 0;
    font-size: 14px;
    line-height: 1.8;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand img {
    height: 44px;
    margin-bottom: 16px;
    display: block;
}

.footer-brand p {
    color: #888;
    font-size: 13.5px;
    max-width: 260px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer-socials {
    display: flex;
    gap: 10px;
}

.footer-social-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    text-decoration: none;
    transition: all 0.22s;
}

.footer-social-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.footer-social-btn svg,
.footer-social-btn i {
    width: 17px;
    height: 17px;
}

.footer-col-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #fff;
    margin-bottom: 18px;
}

.footer-col-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col-list li {
    margin-bottom: 10px;
}

.footer-col-list a {
    color: #888;
    text-decoration: none;
    font-size: 13.5px;
    transition: color 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.footer-col-list a:hover {
    color: #fff;
}

.footer-hotline-box {
    margin-top: 22px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 10px 16px;
    color: #fff;
    font-weight: 600;
    font-size: 15px;
    transition: background 0.2s;
}

.footer-hotline-box:hover {
    background: rgba(255, 255, 255, 0.1);
}

.footer-hotline-box svg,
.footer-hotline-box i {
    width: 18px;
    height: 18px;
    color: var(--primary);
}

.footer-payment-chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 6px;
}

.footer-payment-chip {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 700;
    color: #ccc;
    letter-spacing: 0.03em;
}

.footer-bottom {
    padding: 20px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-bottom-copy {
    font-size: 13px;
    color: #555;
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-bottom-links a {
    font-size: 13px;
    color: #555;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-bottom-links a:hover {
    color: #aaa;
}

@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 560px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* --- Mobile Menu & Responsive Typography Fixes --- */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--primary);
    padding: 5px;
}

.menu-toggle i {
    width: 28px;
    height: 28px;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    /* Override hidden state if active */
    .nav-links.active {
        display: flex !important;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        padding: 10px 20px 20px;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
        gap: 5px;
        z-index: 100;
        border-top: 1px solid #f0f0f0;
        animation: slideDown 0.3s ease forwards;
        transform-origin: top;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: scaleY(0.9);
        }

        to {
            opacity: 1;
            transform: scaleY(1);
        }
    }

    .nav-links.active a {
        padding: 12px 15px;
        border-radius: 8px;
        width: 100%;
        justify-content: flex-start;
        font-weight: 500;
        transition: background 0.2s;
    }

    .nav-links.active a:hover {
        background: #f4f6f8;
        color: var(--primary);
    }

    /* Floating Contacts Mobile Optimization */
    .floating-contact-container {
        bottom: 15px !important;
        right: 10px !important;
        gap: 8px !important;
    }

    .floating-livechat {
        width: 40px !important;
        height: 40px !important;
    }

    .floating-livechat i {
        font-size: 18px !important;
        width: 18px !important;
        height: 18px !important;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .floating-btn.floating-zalo,
    .floating-btn.floating-facebook,
    .floating-btn.floating-hotline {
        padding: 8px 12px !important;
        border-radius: 20px !important;
        height: auto !important;
    }

    .floating-btn-text .btn-text {
        font-size: 10px !important;
    }

    .floating-btn-text .time {
        font-size: 9px !important;
        display: none !important;
        /* Hide time text to save space on mobile */
    }

    .floating-btn-icon {
        width: 24px !important;
        height: 24px !important;
    }

    .floating-btn-icon img,
    .floating-btn-icon svg,
    .floating-btn-icon i {
        width: 14px !important;
        height: 14px !important;
    }

    /* Search Bar Mobile Fix */
    .search-container {
        display: flex !important;
        flex-direction: column !important;
        border-radius: 16px !important;
        padding: 15px !important;
        gap: 15px !important;
        align-items: stretch !important;
        height: auto !important;
    }

    .search-field {
        width: 100% !important;
        flex: none !important;
        border-right: none !important;
        padding-right: 0 !important;
        padding-bottom: 12px !important;
        border-bottom: 1px solid #eee !important;
        justify-content: flex-start !important;
        align-items: flex-start !important;
    }

    .search-field:last-of-type,
    #guest-field {
        border-bottom: none !important;
        padding-bottom: 0 !important;
    }

    .search-btn {
        width: 100% !important;
        height: 44px !important;
        border-radius: 12px !important;
        padding: 10px !important;
        justify-content: center !important;
        margin-top: 5px !important;
    }

    /* Typography Clamping */
    .hero {
        padding: 60px 15px !important;
    }

    .hero h1 {
        font-size: 28px !important;
        line-height: 1.3;
    }

    .hero p {
        font-size: 15px !important;
    }

    .why-choose-vivu h2,
    .partners-section h2,
    .section-title {
        font-size: 18px !important;
        line-height: 1.3;
    }

    .section-header {
        align-items: center !important;
    }

    .section-header h2 {
        font-size: 16px !important;
        margin: 0 !important;
    }

    .view-all {
        font-size: 12px !important;
        white-space: nowrap !important;
    }

    .news-section-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 12px !important;
    }

    .news-section-header h2 {
        font-size: 18px !important;
        line-height: 1.3;
    }

    .news-section-header p {
        font-size: 12px !important;
        margin-top: 4px;
    }

    .header-search.compact,
    header .search-container.header-search {
        display: none !important;
    }

    .partners-section,
    .area-catalog,
    .featured,
    .news-section {
        padding: 40px 15px !important;
    }

    /* Grid Area Mobile Fixes */
    .area-grid,
    .property-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    .area-card {
        height: 200px !important;
    }

    /* Full-width Banner on Mobile */
    .home-banner-container {
        padding-left: 0 !important;
        padding-right: 0 !important;
        padding-top: 10px !important;
    }

    .home-banner-carousel {
        border-radius: 0 !important;
    }

    /* Chat Modal Mobile Fixes */
    .livechat-modal {
        top: auto !important;
        bottom: 0 !important;
        right: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: auto !important;
        max-height: 85vh !important;
        border-radius: 16px 16px 0 0 !important;
        transform-origin: bottom center !important;
    }

    .livechat-messages {
        overflow-y: auto !important;
    }

    /* Filter Bar Mobile Optimization */
    .premium-filter-bar {
        top: 60px !important;
        padding: 5px 0 !important;
    }

    .amenity-slider-container {
        padding: 0 10px !important;
    }

    .amenity-scroll {
        gap: 15px !important;
        -webkit-overflow-scrolling: touch;
        padding-right: 40px !important;
        /* Space for the right button */
    }

    .amenity-tab {
        min-width: 70px !important;
        padding: 5px !important;
    }

    .amenity-tab span {
        font-size: 11px !important;
    }

    .amenity-slider-btn.left {
        display: none !important;
        /* Hide left button on mobile to save space, rely on scroll */
    }

    .amenity-slider-btn.right {
        right: 5px !important;
        width: 36px !important;
        height: 36px !important;
        background: rgba(255, 255, 255, 0.95) !important;
        box-shadow: -5px 0 15px rgba(255, 255, 255, 0.9) !important;
        border: 1px solid var(--primary) !important;
        color: var(--primary) !important;
    }

    .amenity-slider-container::after {
        display: none !important;
    }

    /* Show both filter nav buttons on mobile */
    .amenity-slider-btn.left {
        display: flex !important;
        left: 5px !important;
        width: 32px !important;
        height: 32px !important;
        background: rgba(255,255,255,0.95) !important;
        box-shadow: 5px 0 15px rgba(255,255,255,0.9) !important;
        border: 1px solid var(--primary) !important;
        color: var(--primary) !important;
        z-index: 10 !important;
    }

    .amenity-slider-btn.right {
        right: 5px !important;
        width: 32px !important;
        height: 32px !important;
        background: rgba(255,255,255,0.95) !important;
        box-shadow: -5px 0 15px rgba(255,255,255,0.9) !important;
        border: 1px solid var(--primary) !important;
        color: var(--primary) !important;
        z-index: 10 !important;
    }

    /* Disable touch scroll on filter - use buttons only */
    .amenity-scroll {
        overflow-x: hidden !important;
        padding-right: 40px !important;
        padding-left: 40px !important;
    }

    /* Social proof toast - mobile sized, no overlap */
    .social-proof-toast {
        bottom: 100px !important;
        left: 10px !important;
        right: 10px !important;
        max-width: calc(100vw - 20px) !important;
        padding: 10px 14px !important;
        gap: 10px !important;
        border-radius: 10px !important;
    }

    .social-proof-icon {
        width: 30px !important;
        height: 30px !important;
        flex-shrink: 0 !important;
    }

    .social-proof-content h5 {
        font-size: 12px !important;
    }

    .social-proof-content p {
        font-size: 11px !important;
    }

    /* Detail page - booking card goes below content on mobile */
    .detail-content {
        flex-direction: column !important;
    }

    .detail-content .sticky-sidebar {
        width: 100% !important;
        position: static !important;
    }

    /* Detail page title area */
    .detail-title-area {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 10px !important;
    }

    .detail-title-area > div:last-child {
        display: flex !important;
        gap: 8px !important;
    }
}
/* Mobile Fixes for Premium Filter Bar */
@media (max-width: 768px) {
    .premium-filter-bar .container {
        gap: 10px !important;
    }
    .amenity-slider-container {
        flex: 1;
        min-width: 0;
        width: auto !important;
        padding: 0 40px !important; /* room for L/R buttons */
    }
    .btn-filter {
        flex-shrink: 0;
        padding: 8px 12px !important;
        font-size: 13px !important;
        white-space: nowrap;
    }
}

