:root {
    --bg-color: #fbfbf9;
    --card-bg: #ffffff;
    --primary-green: #143b23;
    --primary-green-hover: #0e2a18;
    --text-main: #1c1c1c;
    --text-muted: #6b6b6b;
    --border-color: #eae9e5;
    --accent-color: #d05d29;
    --star-color: #d19a2e;
    --chart-line: #a97843;
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 24px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    -webkit-font-smoothing: antialiased;
    overflow: hidden; /* Prevent body scroll, handle scroll in inner containers */
}

/* ---------------- LAYOUT ---------------- */
.app-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    max-width: 1600px;
    margin: 0 auto;
    background: var(--bg-color);
}

.app-body {
    display: flex;
    flex: 1;
    overflow: hidden;
    padding: 0 20px 20px 20px;
    gap: 20px;
}

/* ---------------- HEADER ---------------- */
.app-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 30px;
}

@keyframes slideRightHeader {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

.logo, .greeting, .search-bar, .notification-btn, .auth-group {
    opacity: 0;
    transform: translateX(-30px);
    animation: slideRightHeader 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.logo { 
    display: flex;
    align-items: center;
    gap: 12px;
    width: 250px; 
    animation-delay: 0.1s; 
}

.logo-icon {
    font-size: 32px;
    color: var(--primary-green);
}

.logo-text h1 {
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.5px;
    color: var(--primary-green);
}

.logo-text span {
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--text-muted);
}

.header-center {
    flex: 1;
    display: flex;
    padding-left: 20px;
}

.greeting {
    display: flex;
    align-items: center;
    gap: 12px;
    animation-delay: 0.2s;
}

.greeting-icon {
    font-size: 24px;
}

.greeting h2 {
    font-size: 16px;
    font-weight: 600;
}

.greeting p {
    font-size: 12px;
    color: var(--text-muted);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.search-bar {
    display: flex;
    align-items: center;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 30px;
    padding: 10px 16px;
    gap: 8px;
    width: 300px;
    animation-delay: 0.3s;
}

.search-bar input {
    border: none;
    outline: none;
    background: transparent;
    font-family: inherit;
    font-size: 12px;
    width: 100%;
}

.search-bar i {
    color: var(--text-muted);
    font-size: 18px;
}

.notification-btn {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    animation-delay: 0.4s;
}

.notification-btn i {
    font-size: 20px;
}

.notification-btn .badge {
    position: absolute;
    top: 8px;
    right: 10px;
    width: 6px;
    height: 6px;
    background: var(--accent-color);
    border-radius: 50%;
}

.auth-group {
    display: flex;
    align-items: center;
    margin-left: 10px;
    animation-delay: 0.5s;
}

.start-dropdown {
    position: relative;
}

.start-btn {
    background: var(--primary-green);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 500;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.start-btn i {
    font-size: 14px;
}

.start-btn:hover {
    background: var(--primary-green-hover);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 10px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    width: 160px;
    display: none;
    flex-direction: column;
    z-index: 100;
}

.start-dropdown:hover .dropdown-menu {
    display: flex;
    animation: fadeIn 0.2s ease-out forwards;
}

.dropdown-menu a {
    padding: 10px 16px;
    text-decoration: none;
    color: var(--text-main);
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s;
}

.dropdown-menu a:hover {
    background: #f0f0ed;
}

/* ---------------- SIDEBAR ---------------- */
.sidebar {
    width: 250px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.sidebar-search {
    display: flex;
    align-items: center;
    gap: 10px;
    background: white;
    border: 1px solid var(--border-color);
    padding: 10px 14px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
}

.sidebar-search i {
    font-size: 18px;
    color: var(--text-muted);
}

.sidebar-search input {
    border: none;
    outline: none;
    background: transparent;
    font-family: inherit;
    font-size: 13px;
    width: 100%;
    color: var(--text-main);
}

.sidebar-search input::placeholder {
    color: var(--text-muted);
}

.section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 13px;
    padding: 0 10px;
    margin-bottom: 16px;
}

.section-title i {
    font-size: 18px;
}

.places-list {
    list-style: none;
    overflow-y: auto;
    flex: 1;
    padding-right: 10px;
}

/* Hide scrollbar */
.places-list::-webkit-scrollbar {
    display: none;
}

.place-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 10px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 4px;
}

.place-item:hover, .place-item.active {
    background: #f0f0ed;
}

.place-info {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.place-icon {
    font-size: 20px;
    color: var(--text-muted);
}

.place-text h4 {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
}

.place-text p {
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 2px;
}

.place-item i.ph-caret-right {
    font-size: 14px;
    color: var(--text-muted);
}

.sidebar-footer {
    padding-top: 20px;
}

.view-all-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #f0f0ed;
    border: none;
    padding: 12px;
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.2s;
}

.view-all-btn:hover {
    background: #e5e5e1;
}

/* ---------------- MAIN CONTENT ---------------- */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0 10px;
}

.filters {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.filter-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: white;
    border: 1px solid var(--border-color);
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.filter-btn:hover {
    border-color: #ccc;
}

.filter-btn i {
    font-size: 16px;
}

.filter-btn.more-filters {
    margin-left: auto; /* Push to right */
}

.hotels-modal {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
}

.list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-size: 13px;
}

.results-count {
    color: var(--text-muted);
}

.sort-by {
    cursor: pointer;
}

.sort-by strong {
    font-weight: 600;
}

.stays-list {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-right: 10px;
    padding-bottom: 20px;
}

.stays-list::-webkit-scrollbar {
    display: none;
}

.stay-card {
    display: flex;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px;
    gap: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.stay-card:hover, .stay-card.active {
    border-color: var(--primary-green);
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.stay-card img {
    width: 140px;
    height: 100px;
    border-radius: var(--radius-sm);
    object-fit: cover;
}

.stay-card-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.stay-type {
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 4px;
}

.stay-card h3 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.stay-location {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.stay-specs {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: auto;
}

.stay-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: 8px;
}

.stay-area {
    font-size: 12px;
    font-weight: 600;
}

.stay-price {
    font-size: 14px;
    font-weight: 700;
}

.stay-price span {
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 500;
}

.fav-btn {
    position: absolute;
    top: 0;
    right: 0;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    color: var(--text-muted);
}
.fav-btn:hover {
    color: var(--accent-color);
}


/* ---------------- RIGHT PANEL ---------------- */
.details-panel {
    width: 480px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    padding-left: 10px;
}

.details-panel::-webkit-scrollbar {
    display: none;
}

.gallery-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: repeat(3, 110px);
    gap: 12px;
    margin-bottom: 24px;
}

.main-image {
    grid-row: span 3;
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-tag {
    position: absolute;
    top: 16px;
    left: 16px;
    background: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}
.featured-tag i {
    color: var(--star-color);
}

.like-circle {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--accent-color);
}

.sub-image {
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
}
.sub-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.more-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 18px;
}

.details-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.details-title h2 {
    font-size: 20px;
    margin-bottom: 6px;
}

.details-location {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

.book-now-btn {
    background: var(--primary-green);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.2s;
}
.book-now-btn:hover {
    background: var(--primary-green-hover);
}

.specs-grid {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
    overflow-x: auto;
}
.specs-grid::-webkit-scrollbar { display: none; }

.spec-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: white;
    border: 1px solid var(--border-color);
    padding: 10px 14px;
    border-radius: var(--radius-md);
    min-width: 95px;
    flex-shrink: 0;
}

.spec-item i {
    font-size: 18px;
    color: var(--text-main);
}

.spec-text {
    white-space: nowrap;
}

.spec-text span {
    display: block;
    font-size: 10px;
    color: var(--text-muted);
    line-height: 1.2;
    margin-bottom: 2px;
}
.spec-text strong {
    display: block;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
}

.property-details {
    margin-bottom: 24px;
}

.property-details-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.property-details-header h3 {
    font-size: 15px;
}
.read-more {
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
}

.property-details p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}

.bottom-widgets {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

.widget {
    background: white;
    border-radius: var(--radius-lg);
    padding: 20px;
    border: 1px solid var(--border-color);
}

.widget h4 {
    font-size: 14px;
    margin-bottom: 4px;
}

.widget p.sub {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

/* Simple mock chart for Price */
.price-chart {
    height: 100px;
    position: relative;
    display: flex;
    align-items: flex-end;
    gap: 10px;
}

.chart-line-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 80%;
    bottom: 20px;
}
.chart-line-svg path {
    fill: none;
    stroke: var(--chart-line);
    stroke-width: 2;
    stroke-linecap: round;
}

.chart-point {
    width: 8px;
    height: 8px;
    background: var(--chart-line);
    border-radius: 50%;
    position: absolute;
}
.point-label {
    position: absolute;
    background: var(--chart-line);
    color: white;
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 4px;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
}
.point-label::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 4px;
    border-style: solid;
    border-color: var(--chart-line) transparent transparent transparent;
}

.chart-months {
    display: flex;
    justify-content: space-between;
    width: 100%;
    font-size: 11px;
    color: var(--text-muted);
    position: absolute;
    bottom: 0;
}

/* Simple Calendar */
.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-weight: 600;
    font-size: 13px;
}

.calendar-header i {
    cursor: pointer;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    gap: 8px;
    font-size: 12px;
}

.cal-day-name {
    color: var(--text-muted);
    font-size: 10px;
    margin-bottom: 8px;
}

.cal-day {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    border-radius: 50%;
    cursor: pointer;
}

    .cal-day:hover {
        background: #f0f0ed;
    }
    
    .cal-day.active {
        background: var(--primary-green);
        color: white;
    }
    
    /* ---------------- ANIMATIONS ---------------- */
    .fade-in {
        animation: fadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }
    
    @keyframes fadeIn {
        from {
            opacity: 0;
            transform: translateY(10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .reveal-card {
        opacity: 0;
        transform: translateX(-30px);
        animation: revealCard 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }

    @keyframes revealCard {
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }

    .reveal-sidebar {
        opacity: 0;
        transform: translateX(-30px);
        animation: slideRightSidebar 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }

    @keyframes slideRightSidebar {
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }

/* ---------------- MOBILE RESPONSIVENESS ---------------- */
.mobile-back-btn {
    display: none;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 14px;
    font-weight: 600;
    padding: 16px 0;
    margin-bottom: 12px;
    cursor: pointer;
    font-family: inherit;
}

@media (max-width: 1024px) {
    .app-body {
        flex-direction: column;
        overflow-y: auto;
    }
    
    .sidebar {
        width: 100%;
        height: auto;
        padding-bottom: 10px;
        border-bottom: 1px solid var(--border-color);
        margin-bottom: 10px;
    }

    .section-title {
        justify-content: center;
    }

    .places-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        overflow-x: visible;
        padding-bottom: 20px;
    }
    
    .place-item {
        min-width: unset;
        margin-bottom: 0;
        flex-shrink: 0;
    }
    
    .place-item i.ph-caret-right {
        display: none;
    }
    
    .sidebar-footer {
        display: none;
    }
    
    .main-content {
        overflow: visible;
    }

    .filters {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .filter-btn {
        width: 100%;
        justify-content: center;
    }
    
    .filter-btn.more-filters {
        margin-left: 0;
    }
    
    /* Hotels List as Modal */
    .hotels-modal {
        position: fixed;
        top: 100%;
        left: 0;
        width: 100%;
        height: 100%;
        background: var(--bg-color);
        z-index: 900;
        padding: 20px;
        padding-top: 5px;
        transition: top 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        display: flex !important;
        flex-direction: column;
    }
    
    .hotels-modal.show-mobile {
        top: 0;
    }
    
    .hotels-modal .stays-list {
        overflow-y: auto;
        padding-bottom: 20px;
    }

    /* Details Panel as Modal */
    .details-panel {
        position: fixed;
        top: 100%;
        left: 0;
        width: 100%;
        height: 100%;
        background: var(--bg-color);
        z-index: 1000;
        padding: 20px;
        transition: top 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        display: block !important;
    }
    
    .details-panel.show-mobile {
        top: 0;
    }
    
    .mobile-back-btn {
        display: flex;
    }
}

@media (max-width: 768px) {
    .app-header {
        display: grid;
        grid-template-columns: 1fr auto auto;
        grid-template-areas: 
            "logo bell auth"
            "greeting greeting greeting"
            "search search search";
        gap: 16px 12px;
        padding: 16px 20px;
    }

    .header-right, .header-center {
        display: contents;
    }

    .logo {
        grid-area: logo;
        width: auto;
    }

    .notification-btn {
        grid-area: bell;
    }

    .auth-group {
        grid-area: auth;
        margin-left: 0;
    }

    .greeting {
        grid-area: greeting;
    }

    .greeting p {
        display: block; /* Restore subtitle since it's on a new line */
    }

    .greeting h2 {
        font-size: 16px;
    }
    
    .search-bar {
        grid-area: search;
        width: 100%;
        margin-right: 0;
    }

    .sidebar-search {
        display: none;
    }
    
    .stay-card {
        flex-direction: column;
    }
    
    .stay-card img {
        width: 100%;
        height: 160px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    
    .sub-image {
        display: none;
    }
    
    .bottom-widgets {
        grid-template-columns: 1fr;
    }
}
