:root {
    --primary-blue: #3b82f6;
    --dark-text: #333;
    --light-gray: #f9f9f9;
    --border-color: #ddd;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    color: var(--dark-text);
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 50px;
    border-bottom: 1px solid var(--border-color);
}

.logo { 
    font-weight: bold; 
    font-size: 22px; 
}

nav a {
    margin: 0 15px;
    text-decoration: none;
    color: #666;
    font-size: 14px;
}

.btn-login {
    background: black;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
}

/* Property Title */
.property-header h1 { 
    margin-bottom: 5px; 
}
.badge {
    background: #ff7a45;
    color: white;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 4px;
    vertical-align: middle;
}

.rating { color: #fadb14; font-size: 14px; margin-bottom: 5px; }
.rating span { color: #888; margin-left: 5px; }

/* Image Gallery Grid */
.gallery {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 10px;
    margin: 20px 0;
}

.gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.sub-imgs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

/* Booking Bar */
.booking-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
}

.amenities span {
    margin-right: 15px;
    font-size: 13px;
    background: #f0f0f0;
    padding: 5px 10px;
    border-radius: 5px;
}

.price-tag { font-size: 24px; }

.booking-card {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin: 20px 0;
    padding: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.input-group {
    padding: 0 15px;
    border-right: 1px solid var(--border-color);
}

.input-group:last-of-type { border-right: none; }

.input-group label {
    display: block;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.input-group input {
    border: none;
    outline: none;
    width: 100%;
}

.btn-check {
    background: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
}

/* Features Section */
.features {
    margin: 40px 0;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
}

.feature-item i {
    font-size: 20px;
    color: #444;
    margin-top: 5px;
    width: 25px;
    text-align: center;
}

.feature-item strong {
    display: block;
    font-size: 16px;
    color: #222;
}

.feature-item p {
    margin: 0;
    font-size: 14px;
    color: #777;
}

.section-divider {
    border: 0;
    border-top: 1px solid #eee;
    margin: 40px 0;
}

/* Description */
.description p {
    font-size: 15px;
    color: #555;
    line-height: 1.8;
    max-width: 800px;
}

/* Map Section */
.location-map h3 {
    margin-bottom: 20px;
    font-size: 20px;
}

.map-container {
    position: relative;
    width: 100%;
    height: 450px;
    background-color: #e5e3df; /* Map placeholder color */
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
}

.map-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Tooltip Overlay Styling */
.map-tooltip {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.tooltip-box {
    background: #3b82f6;
    color: white;
    padding: 8px 15px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    margin-bottom: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.tooltip-icon {
    background: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    color: #3b82f6;
    border: 2px solid #3b82f6;
    font-size: 18px;
}

.location-text strong {
    display: block;
    font-size: 16px;
    margin-top: 15px;
}

.location-text p {
    color: #777;
    font-size: 14px;
    margin-top: 5px;
}

/* Host Section */
.host-section {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
}

.host-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
}

.host-stats {
    font-size: 14px;
    color: #666;
    margin: 10px 0;
}

.host-stats span { margin-right: 20px; }

.btn-contact {
    background: var(--primary-blue);
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 5px;
    cursor: pointer;
}
.site-footer {
    background: #edf1fa;
    padding: 80px 8% 40px;
    border-top: 1px solid #eee;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 50px;
    margin-bottom: 60px;
}

.footer-brand .logo { 
    font-size: 22px; 
    margin-bottom: 20px; 
    color: #111; 
}
.footer-brand p { 
    font-size: 14px; 
    color: var(--muted); 
    margin-bottom: 20px; 
}
.footer-brand .social-icons {
    color: #1a1a1a;
}

.footer-nav h4, .footer-newsletter h4 {
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 25px;
    letter-spacing: 1px;
}

.footer-nav a {
    display: block;
    text-decoration: none;
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 12px;
}

.footer-input {
    display: flex;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
    margin-top: 15px;
}

.footer-input input {
    flex: 1;
    border: none;
    padding: 10px;
    font-size: 13px;
}

.footer-input button {
    background: #111;
    color: white;
    border: none;
    padding: 0 15px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    padding-top: 30px;
    border-top: 1px solid #eee;
    font-size: 12px;
    color: var(--muted);
}

.legal a {
    margin-left: 20px;
    text-decoration: none;
    color: var(--muted);
}
/* --- Media Queries for Responsiveness --- */

/* For Tablets and smaller screens (992px and below) */
@media (max-width: 992px) {
    .container {
        padding: 15px;
    }

    .booking-card {
        grid-template-columns: 1fr 1fr; /* Two rows of two columns */
        gap: 15px;
    }

    .input-group {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding-bottom: 10px;
    }

    .input-group:nth-child(3), 
    .input-group:nth-child(4) {
        border-bottom: none;
    }
}

/* For Mobile Phones (600px and below) */
@media (max-width: 600px) {
    .navbar {
        padding: 10px 20px;
        flex-direction: column;
        gap: 10px;
    }

    nav {
        display: none; /* Often hidden behind a hamburger menu on mobile */
    }

    /* Stack the Gallery */
    .gallery {
        grid-template-columns: 1fr; /* Everything in one column */
    }

    .sub-imgs {
        grid-template-columns: 1fr 1fr; /* Small images in a 2x2 grid */
    }

    /* Stack the Booking Row */
    .booking-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .booking-card {
        grid-template-columns: 1fr; /* Everything stacks vertically */
    }

    .input-group {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }

    .btn-check {
        padding: 15px;
        margin-top: 10px;
    }

    /* Host section adjustments */
    .host-section {
        flex-direction: column;
        text-align: center;
    }

    .host-stats {
        display: flex;
        flex-direction: column;
        gap: 5px;
    }
}