/*
Theme Name: Doon Homestays
Theme URI: https://demo.dunhomestays.co.in
Description: Airbnb style homestay theme for Doon Homestays
Version: 1.0
Author: Aman
*/

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Inter', sans-serif;
    color: #222;
    background: #fff;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ===== HEADER ===== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 999;
    background: #fff;
    border-bottom: 1px solid #ebebeb;
    padding: 0 24px;
    height: 72px;
    display: flex;
    align-items: center;
}

.header-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-icon { font-size: 24px; }

.logo-text {
    font-size: 18px;
    font-weight: 700;
    color: #FF5A5F;
}

.main-nav ul {
    display: flex;
    gap: 32px;
}

.main-nav a {
    font-size: 14px;
    font-weight: 500;
    color: #444;
    transition: color 0.2s;
}

.main-nav a:hover { color: #FF5A5F; }

.btn-list {
    background: #FF5A5F;
    color: #fff !important;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.2s;
}

.btn-list:hover { background: #e04e53; }

/* ===== HERO ===== */
.hero {
    position: relative;
    height: 580px;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)),
                url('https://images.unsplash.com/photo-1506905925346-21bda4d32df4?w=1600') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    padding: 0 24px;
    width: 100%;
    max-width: 800px;
}

.hero-content h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 32px;
    opacity: 0.9;
}

/* ===== SEARCH BAR ===== */
.search-bar {
    background: #fff;
    border-radius: 60px;
    padding: 8px 8px 8px 24px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.2);
    max-width: 680px;
    margin: 0 auto;
}

.search-fields {
    display: flex;
    align-items: center;
    gap: 0;
}

.search-field {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 4px 16px;
}

.search-field label {
    font-size: 11px;
    font-weight: 700;
    color: #222;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.search-field input {
    border: none;
    outline: none;
    font-size: 14px;
    color: #444;
    background: transparent;
    padding: 4px 0;
    font-family: 'Inter', sans-serif;
}

.search-divider {
    width: 1px;
    height: 40px;
    background: #ddd;
}

.search-btn {
    background: #FF5A5F;
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s;
    font-family: 'Inter', sans-serif;
    margin-left: 8px;
}

.search-btn:hover { background: #e04e53; }


/* ===== FEATURED SECTION ===== */
.featured-section {
    padding: 60px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.section-header h2 {
    font-size: 26px;
    font-weight: 700;
    color: #222;
}

.view-all {
    font-size: 14px;
    font-weight: 600;
    color: #FF5A5F;
    transition: opacity 0.2s;
}

.view-all:hover { opacity: 0.7; }

/* ===== PROPERTY CARDS ===== */
.properties-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.property-card {
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.property-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.1);
}

.card-image {
    position: relative;
    height: 220px;
    overflow: hidden;
    border-radius: 16px;
    background: #f0f0f0;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.card-image:hover img { transform: scale(1.05); }

.no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    background: #f5f5f5;
}

.wishlist-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: transparent;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: #fff;
    text-shadow: 0 1px 4px rgba(0,0,0,0.4);
    transition: transform 0.2s;
}

.wishlist-btn:hover { transform: scale(1.2); }

.card-body { padding: 12px 4px; }

.card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 4px;
}

.card-top h3 {
    font-size: 15px;
    font-weight: 600;
    color: #222;
}

.card-top h3 a { color: #222; }
.card-top h3 a:hover { color: #FF5A5F; }

.card-rating {
    font-size: 14px;
    font-weight: 600;
    color: #222;
    white-space: nowrap;
}

.card-location {
    font-size: 13px;
    color: #717171;
    margin-bottom: 4px;
}

.card-meta {
    font-size: 13px;
    color: #717171;
    margin-bottom: 8px;
}

.card-price {
    font-size: 15px;
    color: #222;
}

.card-price strong {
    font-weight: 700;
    font-size: 16px;
}

.no-properties {
    color: #717171;
    font-size: 15px;
    grid-column: 1/-1;
    text-align: center;
    padding: 40px;
}







/* ===== SINGLE PROPERTY ===== */
.property-hero {
    width: 100%;
    height: 480px;
    overflow: hidden;
}

.property-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.single-property .container {
    padding-top: 40px;
    padding-bottom: 80px;
}

.property-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 64px;
    align-items: flex-start;
}

.property-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.property-title-row h1 {
    font-size: 28px;
    font-weight: 700;
    color: #222;
    flex: 1;
    padding-right: 24px;
}

.property-rating {
    font-size: 15px;
    font-weight: 600;
    color: #222;
    white-space: nowrap;
}

.property-rating span {
    font-weight: 400;
    color: #717171;
}

.property-location {
    font-size: 15px;
    color: #717171;
    margin-bottom: 16px;
}

.property-meta-row {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
}

.property-meta-row span {
    font-size: 15px;
    color: #444;
    font-weight: 500;
}

.divider {
    border: none;
    border-top: 1px solid #ebebeb;
    margin: 32px 0;
}

.property-description h2,
.property-amenities h2,
.property-map h2 {
    font-size: 22px;
    font-weight: 700;
    color: #222;
    margin-bottom: 16px;
}

.property-description p {
    font-size: 15px;
    line-height: 1.7;
    color: #444;
}

/* AMENITIES */
.amenities-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.amenity-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: #222;
}

.amenity-item span { font-weight: 500; }

/* BOOKING CARD */
.property-sidebar {
    position: sticky;
    top: 100px;
}

.booking-card {
    border: 1px solid #ddd;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 6px 32px rgba(0,0,0,0.1);
}

.booking-price {
    font-size: 22px;
    color: #222;
    margin-bottom: 4px;
}

.booking-price strong {
    font-size: 26px;
    font-weight: 700;
}

.booking-rating {
    font-size: 13px;
    color: #717171;
    margin-bottom: 20px;
}

.date-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border: 1px solid #ddd;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
}

.date-field {
    padding: 12px 16px;
}

.date-field:first-child {
    border-right: 1px solid #ddd;
}

.date-field label,
.guests-field label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #222;
    margin-bottom: 4px;
}

.date-field input,
.guests-field input {
    border: none;
    outline: none;
    font-size: 14px;
    color: #444;
    width: 100%;
    font-family: 'Inter', sans-serif;
}

.guests-field {
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 12px 12px;
    padding: 12px 16px;
    margin-bottom: 16px;
}

.book-btn {
    display: block;
    width: 100%;
    background: #FF5A5F;
    color: #fff;
    text-align: center;
    padding: 16px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    transition: background 0.2s;
}

.book-btn:hover { background: #e04e53; }

.booking-note {
    text-align: center;
    font-size: 13px;
    color: #717171;
    margin-top: 12px;
}

/* INQUIRY FORM */
.inquiry-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #ebebeb;
    max-width: 700px;
}

.inquiry-section h2 {
    font-size: 22px;
    font-weight: 700;
    color: #222;
    margin-bottom: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.inquiry-form input,
.inquiry-form textarea {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 14px 16px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    color: #222;
    outline: none;
    transition: border 0.2s;
}

.inquiry-form input:focus,
.inquiry-form textarea:focus {
    border-color: #FF5A5F;
}

.inquiry-form textarea {
    width: 100%;
    margin-bottom: 16px;
    resize: vertical;
}

.submit-btn {
    background: #FF5A5F;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 16px 40px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: background 0.2s;
}

.submit-btn:hover { background: #e04e53; }






/* ===== ARCHIVE PAGE ===== */
.archive-page {
    padding: 48px 0 80px;
}

.archive-header {
    margin-bottom: 40px;
}

.archive-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: #222;
    margin-bottom: 8px;
}

.archive-header p {
    font-size: 15px;
    color: #717171;
}







/* ===== FOOTER ===== */
.site-footer {
    background: #1a1a2e;
    color: #ccc;
    padding: 60px 24px 24px;
    margin-top: 80px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 40px;
    border-bottom: 1px solid #333;
}

.footer-brand .logo-text { color: #FF5A5F; font-size: 20px; font-weight: 700; }
.footer-brand p { margin-top: 12px; font-size: 14px; line-height: 1.6; color: #999; }

.footer-links h4,
.footer-contact h4 {
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 16px;
}

.footer-links ul { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 14px; color: #999; transition: color 0.2s; }
.footer-links a:hover { color: #FF5A5F; }

.footer-contact p { font-size: 14px; color: #999; margin-bottom: 10px; }

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    font-size: 13px;
    color: #666;
}

/* ===== CONTAINER ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}






/* ===== HAMBURGER & MOBILE MENU ===== */
/* ===== HAMBURGER & MOBILE MENU ===== */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1000;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: #222;
    border-radius: 2px;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    left: auto;
    width: 280px;
    height: 100vh;
    background: #fff;
    z-index: 9999;
    padding: 24px;
    transition: right 0.3s ease;
    box-shadow: -4px 0 24px rgba(0,0,0,0.1);
    overflow-y: auto;
}

.mobile-menu.open { right: 0; }

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.mobile-menu-header .logo-text {
    font-size: 18px;
    font-weight: 700;
    color: #FF5A5F;
}

.close-menu {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #444;
}

.mobile-menu ul {
    display: flex;
    flex-direction: column;
}

.mobile-menu ul li a {
    display: block;
    padding: 16px 0;
    font-size: 16px;
    font-weight: 500;
    color: #222;
    border-bottom: 1px solid #f0f0f0;
}

.mobile-list-btn {
    color: #FF5A5F !important;
    font-weight: 700 !important;
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.menu-overlay.open {
    opacity: 1;
    pointer-events: all;
}

@media (max-width: 768px) {
    .hamburger { display: flex; }
    .header-cta { display: none; }
    .main-nav { display: none; }
}







/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 768px) {

    /* HEADER */
    .main-nav { display: none; }
    .logo-text { font-size: 15px; }

    /* HERO */
    .hero { height: 480px; }
    .hero-content h1 { font-size: 24px; }
    .hero-content p { font-size: 14px; margin-bottom: 20px; }

    /* SEARCH BAR - FIXED */
    .search-bar {
        border-radius: 16px;
        padding: 16px;
        max-width: 100%;
    }
    .search-fields {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }
    .search-divider { display: none; }
    .search-field {
        padding: 8px 0;
        border-bottom: 1px solid #eee;
    }
    .search-field:last-of-type { border-bottom: none; }
    .search-field input {
        width: 100%;
        font-size: 14px;
    }
    .search-btn {
        width: 100%;
        justify-content: center;
        margin-left: 0;
        margin-top: 12px;
        border-radius: 10px;
        padding: 14px;
    }

    /* CARDS GRID */
    .properties-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }
    .card-image {
        height: 220px !important;
    }
    .card-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* FEATURED SECTION */
    .featured-section { padding: 32px 0; }
    .section-header h2 { font-size: 20px; }

    /* ARCHIVE */
    .archive-page { padding: 32px 0 60px; }
    .archive-header h1 { font-size: 22px; }

    /* SINGLE PROPERTY */
    .property-layout {
        grid-template-columns: 1fr !important;
        gap: 24px;
    }
    .property-sidebar { position: static; }
    .property-hero { height: 260px; }
    .property-title-row {
        flex-direction: column;
        gap: 8px;
    }
    .property-title-row h1 { font-size: 22px; }
    .property-meta-row { flex-wrap: wrap; gap: 12px; }
    .amenities-grid { grid-template-columns: 1fr 1fr; }
    .date-fields { grid-template-columns: 1fr; }
    .date-field:first-child {
        border-right: none;
        border-bottom: 1px solid #ddd;
    }

    /* FOOTER */
    .footer-top {
        grid-template-columns: 1fr !important;
        gap: 28px;
    }

    /* INQUIRY FORM */
    .form-row {
        grid-template-columns: 1fr !important;
        gap: 12px;
    }

    /* CONTAINER */
    .container { padding: 0 16px; }

    /* HAMBURGER */
    .hamburger { display: flex; }
    .header-cta { display: none; }
}