:root {
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --secondary: #64748b;
    --background: #f8fafc;
    --surface: #ffffff;
    --text-main: #1e293b;
    --text-light: #64748b;
    --border: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --radius-md: 12px;
    --radius-lg: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background);
    color: var(--text-main);
    line-height: 1.5;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.flex {
    display: flex;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

/* Header */
header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 0.5rem 0;
    /* Reduced padding */
    position: sticky;
    top: 0;
    z-index: 50;
}

.logo h2 {
    color: var(--primary);
    font-weight: 700;
    font-size: 1.5rem;
}

nav ul {
    display: flex;
    gap: 2rem;
}

nav ul li {
    position: relative;
}

nav a {
    font-weight: 500;
    color: var(--text-light);
    transition: color 0.2s;
    display: block;
    padding: 0.5rem 0;
}

/* Dropdown Menu */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--surface);
    min-width: 160px;
    box-shadow: var(--shadow-md);
    border-radius: 8px;
    z-index: 100;
    top: 100%;
    left: 0;
    overflow: hidden;
    border: 1px solid var(--border);
}

.dropdown-content a {
    color: var(--text-main);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 0.9rem;
}

.dropdown-content a:hover {
    background-color: var(--background);
    color: var(--primary);
}

nav ul li:hover .dropdown-content {
    display: block;
}

nav a:hover,
nav a.active {
    color: var(--primary);
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 2rem 0 1rem;
    /* Reduced height */
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 20px;
    right: 20px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    color: #fff;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--text-main);
}

.search-bar {
    background: var(--surface);
    padding: 0.5rem;
    border-radius: 50px;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    max-width: 600px;
    margin: 0 auto 1.5rem;
    border: 1px solid var(--border);
}

.search-icon {
    color: var(--text-light);
    margin-left: 1rem;
}

.search-bar input {
    border: none;
    outline: none;
    padding: 0.8rem;
    flex: 1;
    font-size: 1rem;
    color: var(--text-main);
}

.filter-btn {
    background: var(--background);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    color: var(--text-main);
    transition: background 0.2s;
}

.filter-btn:hover {
    background: #e2e8f0;
}

.filters-row {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.pill {
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-light);
    white-space: nowrap;
    font-size: 0.9rem;
    transition: all 0.2s;
    cursor: pointer;
}

.pill.active,
.pill:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.search-btn {
    background: var(--primary);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    margin-left: auto;
    border: none;
    cursor: pointer;
}

/* Cities Section */
.cities-section {
    margin: 2rem 0;
}

.cities-section h3 {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    color: var(--text-main);
}

.city-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1.5rem;
}

.city-card {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 1 / 1;
    display: block;
}

.city-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.city-card:hover img {
    transform: scale(1.05);
}

.city-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    color: white;
    padding: 1rem;
    font-weight: 600;
    text-align: center;
}

/* Listings Section */
.listings-section h3 {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    color: var(--text-main);
}

.listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.listing-card {
    background: var(--surface);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.3s;
}

.listing-card:hover {
    box-shadow: var(--shadow-md);
}

.card-image {
    position: relative;
    height: 200px;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.price-tag {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.9);
    padding: 4px 12px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-main);
}

.card-content {
    padding: 1.2rem;
}

.card-content h4 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.location {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.specs {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--secondary);
}

.specs span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.card-actions {
    display: flex;
    gap: 0.5rem;
}

.view-btn {
    flex: 1;
    background: var(--text-main);
    color: white;
    text-align: center;
    padding: 0.6rem;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.view-btn:hover {
    background: black;
}

.fav-btn {
    width: 40px;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    color: var(--text-light);
    transition: all 0.2s;
}

.fav-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* Responsive */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    nav ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--surface);
        flex-direction: column;
        padding: 1rem;
        border-bottom: 1px solid var(--border);
        gap: 1rem;
    }

    nav ul.show {
        display: flex;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .city-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .listings-grid {
        grid-template-columns: 1fr;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 90%;
    max-width: 500px;
    border-radius: 12px;
    position: relative;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
}

.submit-btn {
    background: var(--primary);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    width: 100%;
    font-size: 1rem;
    margin-top: 1rem;
}

/* Product Page Styles */
.product-page {
    padding-top: 1rem;
    padding-bottom: 4rem;
}

.breadcrumb {
    margin-bottom: 1.5rem;
}

.breadcrumb a {
    color: var(--text-light);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.product-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.main-image {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 400px;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.price-tag-large {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--primary);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 1.1rem;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.image-grid img {
    border-radius: var(--radius-md);
    height: 100px;
    width: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: opacity 0.2s;
}

.image-grid img:hover {
    opacity: 0.8;
}

.product-info h1 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.location-large {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.specs-large {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.spec-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-main);
    font-weight: 500;
}

.spec-item i {
    font-size: 1.2rem;
    color: var(--primary);
}

.features h3,
.host-section h3,
.description h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.description {
    margin-bottom: 2rem;
    color: var(--text-light);
    line-height: 1.6;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--surface);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    text-align: center;
    font-size: 0.9rem;
}

.feature-item i {
    font-size: 1.5rem;
    color: var(--text-main);
}

.host-section {
    margin-bottom: 2rem;
}

.host-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--surface);
    padding: 1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.host-avatar {
    font-size: 3rem;
    color: var(--text-light);
}

.host-details {
    flex: 1;
}

.host-details h4 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.host-details p {
    color: var(--text-light);
    font-size: 0.9rem;
}

.host-actions {
    display: flex;
    gap: 0.5rem;
}

.icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: background 0.2s;
}

.icon-btn:hover {
    background: var(--background);
}

.book-btn {
    width: 100%;
    background: var(--primary);
    color: white;
    padding: 1rem;
    border-radius: var(--radius-lg);
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 1rem;
}

/* Mobile Product Page */
@media (max-width: 768px) {
    .product-layout {
        grid-template-columns: 1fr;
    }

    .main-image {
        height: 250px;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Footer Styles */
footer {
    background-color: #1f2937;
    color: white;
    padding: 3rem 0;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* Enforce 4 columns */
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        /* Stack on mobile */
        text-align: center;
    }

    .footer-column[style*="text-align: right"] {
        text-align: center !important;
        justify-content: center !important;
    }
}

.footer-column h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.footer-column p {
    color: #9ca3af;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.footer-column a {
    color: #9ca3af;
    display: block;
    margin-bottom: 0.5rem;
    transition: color 0.2s;
    text-decoration: none;
}

.footer-column a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 2rem;
    text-align: center;
    color: #9ca3af;
    font-size: 0.9rem;
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 20px;
    right: 20px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    color: #fff;
}