/* ============================================
   EDEN MANAGEMENT - PAGE STYLES
   ============================================ */

/* Import Global Styles */
@import url('../assets/css/global.css');

/* Navbar Override for Eden Living (Transparent) */
.navbar, .navbar-solid {
    background-color: transparent !important;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: none;
}

/* Reset Body Padding so Navbar overlays Hero */
body.living-page {
    padding-top: 0 !important;
}

/* ===================== HERO SECTION ===================== */
.sub-hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('./images/Eden-living-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 0 24px;
    margin-top: calc(var(--navbar-height) * -1);
}

.sub-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(0,0,0,0.1), rgba(0,0,0,0.3));
    z-index: 1;
}

.sub-hero-card {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1000px;
}

.sub-hero-title {
    font-family: "Playfair Display", Georgia, serif;
    font-style: italic;
    font-size: 3.8rem;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.35);
    margin-bottom: 48px;
    letter-spacing: -0.5px;
}

.hero-eden {
    font-weight: 700;
    font-style: normal;
}

/* ===== SEARCH BOX ===== */
.search-box {
    background: white;
    border-radius: 60px;
    box-shadow: var(--shadow-xl);
    padding: 12px 12px 12px 40px;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.search-form {
    display: flex;
    align-items: center;
    gap: 0;
}

.search-field {
    position: relative;
    flex: 1;
    padding: 16px 24px 16px 0;
    text-align: left;
}

.search-field label {
    display: block;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--airbnb-dark);
    letter-spacing: 1px;
    margin-bottom: 6px;
}

/* CUSTOM SELECT (PREMIUM) */
.custom-select {
    position: relative;
    width: 100%;
}

.select-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-family: "Inter", sans-serif;
    font-size: 1rem;
    color: var(--airbnb-dark);
    padding-right: 12px;
}

.select-arrow {
    width: 12px;
    height: 12px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23484848' d='M6 8.825L1.175 4 2.59 2.585 6 6l3.415-3.415L10.825 4z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    transition: transform 0.3s;
}

.custom-select.active .select-arrow {
    transform: rotate(180deg);
}

.select-options {
    position: absolute;
    top: calc(100% + 12px);
    left: -40px; /* Aligner with padding of search-box */
    width: calc(100% + 40px);
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    z-index: 100;
    display: none;
    overflow: hidden;
}

.custom-select.active .select-options {
    display: block;
}

.select-option {
    padding: 16px 24px;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 0.95rem;
}

.select-option:hover {
    background: #f7f7f7;
}

.select-option.selected {
    font-weight: 600;
    color: #000;
    background: #f7f7f7;
}

.search-warning {
    position: absolute;
    bottom: -30px;
    left: 40px;
    color: #ff5a5f;
    font-size: 0.85rem;
    font-weight: 600;
    animation: fadeIn 0.3s;
}


@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== SEARCH RESULTS SECTION ===== */
.results-section {
    padding: 100px 0;
    background-color: #f7f7f7;
    animation: fadeIn 0.8s ease-out;
}

.results-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.booked-out-msg {
    font-size: 1.25rem;
    line-height: 1.8;
    color: #484848;
    margin-top: 24px;
}

.results-form-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 60px;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
}

.results-form-container h3 {
    font-family: "Playfair Display", serif;
    font-size: 2rem;
    font-style: italic;
    margin-bottom: 32px;
    text-align: center;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #484848;
    letter-spacing: 0.5px;
}

.form-group input, 
.form-group textarea {
    padding: 16px;
    border: 1px solid #dddddd;
    border-radius: 12px;
    font-family: "Inter", sans-serif;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s;
}

.form-group input:focus, 
.form-group textarea:focus {
    border-color: #222222;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.contact-btn {
    background: #222222;
    color: white;
    padding: 18px;
    border-radius: 12px;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 12px;
}

.contact-btn:hover {
    background: #000000;
}

.form-success-msg {
    margin-top: 24px;
    padding: 20px;
    background: #e1f5fe;
    color: #01579b;
    border-radius: 12px;
    text-align: center;
    font-weight: 500;
}

.search-input::placeholder {
    color: var(--airbnb-gray);
    opacity: 0.6;
}

/* Separation Line */
.search-field-dates {
    border-left: 1px solid var(--airbnb-border);
    padding-left: 32px;
}

.search-date-display {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 1rem;
    color: var(--airbnb-dark);
    font-weight: 500;
    min-width: 200px;
}

.search-date-icon {
    font-size: 1.2rem;
    opacity: 0.6;
}

.search-button {
    background: var(--airbnb-red);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 18px 40px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    flex-shrink: 0;
}

.search-button:hover {
    background: var(--airbnb-red-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 56, 92, 0.3);
}

/* ===== CALENDAR POPUP ===== */
.calendar-popup {
    display: none;
    position: absolute;
    top: calc(100% + 16px);
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    padding: 32px;
    z-index: 200;
    width: 680px;
}

.calendar-popup.active {
    display: block;
}

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.calendar-nav {
    background: none;
    border: 1px solid var(--airbnb-border);
    border-radius: 50%;
    width: 38px;
    height: 38px;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--airbnb-dark);
    transition: background 0.2s;
}

.calendar-nav:hover {
    background: #f7f7f7;
    border-color: var(--airbnb-dark);
}

.calendar-month-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--airbnb-dark);
}

.calendar-grid-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

.calendar-month-block .month-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--airbnb-dark);
    margin-bottom: 20px;
    text-align: center;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: 12px;
}

.calendar-weekdays span {
    text-align: center;
    font-size: 0.85rem;
    color: var(--airbnb-gray);
    font-weight: 700;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.calendar-day {
    text-align: center;
    padding: 12px 4px;
    font-size: 0.95rem;
    color: var(--airbnb-dark);
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.2s;
    border: none;
    background: none;
    font-weight: 500;
}

.calendar-day:hover { background: #f7f7f7; }
.calendar-month-block:hover .calendar-day:not(.disabled):not(.other-month) {
    background: #f0f0f0;
}
.calendar-day.disabled { color: #d0d0d0; cursor: not-allowed; }
.calendar-day.selected { background: var(--airbnb-dark); color: white; }
.calendar-month-block.selected-month .calendar-day:not(.disabled):not(.other-month) {
    background: #484848;
    color: white;
}
.calendar-day.in-range { background: #f5f5f5; }
.calendar-day.today { text-decoration: underline; font-weight: 700; }
.calendar-day.other-month { visibility: hidden; }

/* ===================== CONTENT SECTIONS (BLOG/INFO) ===================== */
.sub-content {
    background: #f9f9f9; /* Light, elegant background */
    padding-bottom: 80px;
}

.blog {
    max-width: 800px;
    margin: -60px auto 0; /* Overlap hero slightly */
    position: relative;
    z-index: 5;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.post {
    background: white;
    padding: 60px;
    border-radius: 4px; /* Minimal radius */
    box-shadow: 0 10px 40px rgba(0,0,0,0.05); /* Soft premium shadow */
    transition: transform 0.3s ease;
}

/* Hover effect for sections */
.post:hover {
    transform: translateY(-5px);
}

.post-title {
    font-family: "Cormorant Garamond", serif;
    font-size: 2.2rem;
    color: var(--airbnb-dark);
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.post-content {
    font-family: "Inter", sans-serif;
    font-size: 1.05rem;
    line-height: 1.8;
    color: #4a4a4a;
}

.post-content p {
    margin-bottom: 1.5rem;
}

.post-content p:last-child {
    margin-bottom: 0;
}

/* ===================== CONTACT / FOOTER AREA ===================== */
/* If there's a specific contact section styled in HTML, style it here.
   Otherwise, the global footer typically handles the bottom. 
*/


/* ===================== RESPONSIVE ===================== */
@media (max-width: 768px) {
    .sub-hero {
        height: auto;
        padding: 120px 20px 40px; /* Adjust padding for navbar */
        min-height: 80vh;
    }

    .sub-hero-title {
        font-size: 2.5rem;
        margin-bottom: 32px;
    }

    /* Search Box Mobile */
    .search-box {
        padding: 16px;
        border-radius: 20px;
        width: 100%;
        box-sizing: border-box;
    }

    .search-form {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .search-field {
        border: 1px solid var(--airbnb-border);
        border-radius: 12px;
        padding: 12px 16px;
        width: 100%;
        box-sizing: border-box;
    }

    .search-field-dates {
        border-left: 1px solid var(--airbnb-border); /* Add full border */
        padding-left: 16px; 
    }

    .search-date-display {
        min-width: unset;
        width: 100%;
        justify-content: space-between;
    }

    .search-button {
        width: 100%;
        border-radius: 12px;
        justify-content: center;
        margin-top: 8px;
    }

    /* Calendar Popup Mobile */
    .calendar-popup {
        width: 90vw;
        max-width: 350px;
        padding: 16px;
        top: 100%;
    }
    
    .calendar-grid-wrapper {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .calendar-month-block:nth-child(2) {
        display: none; /* Show only 1 month or stack */
        display: block;
    }

    /* Blog Mobile */
    .blog {
        margin-top: -30px;
        gap: 40px;
    }

    .post {
        padding: 32px 24px;
    }

    /* Fix Custom Select Dropdown on Mobile */
    .select-options {
        left: 0;
        width: 100%;
        top: 100%;
    }

    /* Contact Form Mobile */
    .results-section {
        padding: 60px 0;
    }

    .results-form-container {
        padding: 24px;
        border-radius: 16px;
    }

    .results-form-container h3 {
        font-size: 1.5rem;
        margin-bottom: 24px;
    }

    .form-row {
        grid-template-columns: 1fr; /* Stack inputs */
        gap: 12px;
    }

    .contact-form {
        gap: 16px;
    }
}

/* Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
