:root {
    --primary: #0A7EEA;
    --primary-dark: #0866c1;
    --dark: #1a1a1a;
    --bg: #f5f7fa;
    --white: #ffffff;
    --gray: #6b7280;
    --light-gray: #e5e7eb;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
}

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

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--dark);
    line-height: 1.6;
}

/* NAV */
nav {
    background: var(--dark);
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
    position: sticky;
    top: 0;
    z-index: 100;
}
nav .brand {
    color: var(--white);
    font-size: 1.2rem;
    font-weight: 800;
    text-decoration: none;
}
nav .brand span { color: var(--primary); }
nav ul { list-style: none; display: flex; gap: 0.25rem; }
nav a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.2s;
}
nav a:hover, nav a.active { color: var(--white); background: rgba(255,255,255,0.1); }
.burger { display: none; background: none; border: none; color: white; font-size: 1.5rem; cursor: pointer; }

/* LAYOUT */
.container { max-width: 1100px; margin: 0 auto; padding: 1.5rem; }
.section { padding: 1rem 0; }
.section-heading { font-size: 1.3rem; font-weight: 700; margin: 2rem 0 1rem; }

/* HERO */
.hero {
    text-align: center;
    padding: 3rem 1rem;
    background: linear-gradient(135deg, var(--dark) 0%, #2a2a3a 100%);
    border-radius: 16px;
    color: var(--white);
    margin-bottom: 2rem;
}
.hero h1 { font-size: 2rem; font-weight: 800; margin-bottom: 0.5rem; }
.hero p { color: rgba(255,255,255,0.7); margin-bottom: 1.5rem; }

/* PAGE HEADER */
.page-header {
    background: linear-gradient(135deg, var(--dark) 0%, #2a2a3a 100%);
    padding: 2rem 0;
    color: var(--white);
    margin: -1.5rem -1.5rem 1.5rem;
    padding: 2rem 1.5rem;
    border-radius: 0 0 16px 16px;
}
.page-header h1 { font-size: 1.5rem; font-weight: 700; }
.page-header p { color: rgba(255,255,255,0.6); }

/* KPI CARDS */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}
.kpi-card {
    background: var(--white);
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    text-align: center;
}
.kpi-card:hover { transform: translateY(-2px); transition: 0.2s; }
.kpi-label { font-size: 0.8rem; color: var(--gray); text-transform: uppercase; letter-spacing: 0.5px; }
.kpi-value { font-size: 1.75rem; font-weight: 800; color: var(--dark); }
.kpi-value.accent { color: var(--primary); }
.kpi-accent { border-left: 4px solid var(--primary); }

/* VILLA GRID */
.villa-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}
.villa-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    text-decoration: none;
    color: var(--dark);
    transition: transform 0.2s, box-shadow 0.2s;
}
.villa-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.12); }
.villa-card-image { position: relative; height: 180px; overflow: hidden; }
.villa-placeholder-img {
    width: 100%; height: 100%;
    background: linear-gradient(135deg, #e8f4fd 0%, #d0e8f7 100%);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
}
.villa-placeholder-lg { height: 300px; border-radius: 12px; }
.placeholder-icon { font-size: 3rem; }
.placeholder-text { font-size: 0.85rem; color: var(--gray); margin-top: 0.25rem; }
.villa-badge {
    position: absolute; top: 12px; left: 12px;
    background: var(--primary); color: white;
    padding: 0.2rem 0.7rem; border-radius: 20px;
    font-size: 0.75rem; font-weight: 600;
}
.villa-card-body { padding: 1rem; }
.villa-card-body h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem; }
.villa-address { font-size: 0.85rem; color: var(--gray); margin-bottom: 0.5rem; }
.villa-meta { display: flex; gap: 0.75rem; font-size: 0.8rem; color: var(--gray); margin-bottom: 0.75rem; flex-wrap: wrap; }
.villa-rating { color: var(--warning); font-weight: 600; }
.villa-price { font-size: 1.1rem; }
.villa-price strong { color: var(--dark); }
.villa-price span { color: var(--gray); font-size: 0.85rem; }

/* FILTERS */
.filters-bar { background: var(--white); border-radius: 12px; padding: 1.25rem; margin-bottom: 1.5rem; box-shadow: 0 1px 3px rgba(0,0,0,0.06); }
.filters-form { display: flex; gap: 0.75rem; align-items: end; flex-wrap: wrap; }
.filter-group { display: flex; flex-direction: column; gap: 0.25rem; }
.filter-group label { font-size: 0.75rem; color: var(--gray); font-weight: 600; }
.filter-group input, .filter-group select { padding: 0.5rem; border: 1px solid var(--light-gray); border-radius: 8px; font-size: 0.85rem; }

/* VILLA DETAIL */
.breadcrumb { font-size: 0.85rem; color: var(--gray); margin-bottom: 1.5rem; }
.breadcrumb a { color: var(--primary); text-decoration: none; }
.villa-detail-grid { display: grid; grid-template-columns: 1fr 350px; gap: 2rem; }
.villa-detail-main h1 { font-size: 1.5rem; margin: 1rem 0 0.5rem; }
.villa-detail-address { color: var(--gray); margin-bottom: 1rem; }
.villa-detail-stats { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.stat-pill { background: var(--bg); padding: 0.4rem 0.8rem; border-radius: 20px; font-size: 0.85rem; }
.villa-detail-section { margin-bottom: 2rem; }
.villa-detail-section h2 { font-size: 1.1rem; margin-bottom: 0.75rem; }
.amenities-grid { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.amenity-tag { background: #e8f4fd; color: var(--primary); padding: 0.3rem 0.8rem; border-radius: 20px; font-size: 0.85rem; }

/* HOST */
.host-card { display: flex; align-items: center; gap: 1rem; }
.host-avatar, .review-avatar {
    width: 48px; height: 48px; border-radius: 50%;
    background: var(--primary); color: white;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 1.1rem;
}

/* REVIEWS */
.reviews-list { display: flex; flex-direction: column; gap: 1rem; }
.review-card { background: var(--bg); border-radius: 12px; padding: 1rem; }
.review-header { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.5rem; }
.review-stars { font-size: 0.85rem; }

/* BOOKING SIDEBAR */
.villa-detail-sidebar { position: sticky; top: 72px; }
.booking-card {
    background: var(--white); border-radius: 12px; padding: 1.5rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1); border: 1px solid var(--light-gray);
}
.booking-price { font-size: 1.3rem; margin-bottom: 1rem; }
.booking-price strong { color: var(--dark); }
.booking-summary { background: var(--bg); border-radius: 8px; padding: 0.75rem; margin: 0.75rem 0; }
.summary-row { display: flex; justify-content: space-between; font-size: 0.9rem; }
.booking-info { margin-top: 1rem; font-size: 0.85rem; color: var(--gray); }
.booking-info p { margin-bottom: 0.25rem; }

/* AUTH */
.auth-container { max-width: 420px; margin: 2rem auto; background: var(--white); border-radius: 12px; padding: 2rem; box-shadow: 0 1px 3px rgba(0,0,0,0.06); }
.auth-tabs { display: flex; gap: 0; margin-bottom: 1.5rem; border-bottom: 2px solid var(--light-gray); }
.auth-tab { flex: 1; padding: 0.75rem; background: none; border: none; font-size: 0.95rem; font-weight: 600; color: var(--gray); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; }
.auth-tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.auth-hint { margin-top: 1.5rem; padding: 1rem; background: var(--bg); border-radius: 8px; font-size: 0.8rem; color: var(--gray); }
.auth-hint ul { list-style: none; margin-top: 0.5rem; }
.auth-hint li { margin-bottom: 0.25rem; }
.text-center { text-align: center; }

/* DASHBOARD */
.dashboard-section { margin-bottom: 2.5rem; }
.section-title-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.section-title-row h2 { font-size: 1.2rem; }
.charts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.chart-card { background: var(--white); border-radius: 12px; padding: 1.25rem; box-shadow: 0 1px 3px rgba(0,0,0,0.06); }
.chart-card h3 { font-size: 0.9rem; color: var(--gray); margin-bottom: 1rem; }

/* STATUS BADGES */
.status-badge { padding: 0.2rem 0.6rem; border-radius: 20px; font-size: 0.75rem; font-weight: 600; }
.status-pending { background: #fef3c7; color: #92400e; }
.status-confirmed { background: #dbeafe; color: #1e40af; }
.status-completed { background: #d1fae5; color: #065f46; }
.status-cancelled { background: #fee2e2; color: #991b1b; }

/* BOOKING CARDS */
.booking-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1rem; }
.booking-card-item { background: var(--white); border-radius: 12px; padding: 1.25rem; box-shadow: 0 1px 3px rgba(0,0,0,0.06); }
.booking-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.75rem; }
.booking-card-header a { color: var(--dark); text-decoration: none; }
.booking-card-details { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; font-size: 0.85rem; }
.detail-label { display: block; font-size: 0.7rem; color: var(--gray); text-transform: uppercase; }

/* TABLE */
.table-scroll-wrapper { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: 12px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,0.06); }
.data-table th { text-align: left; padding: 0.75rem 1rem; font-size: 0.75rem; text-transform: uppercase; color: var(--gray); border-bottom: 1px solid var(--light-gray); }
.data-table td { padding: 0.75rem 1rem; font-size: 0.9rem; border-bottom: 1px solid var(--light-gray); }
.data-table tr:hover td { background: rgba(10,126,234,0.03); }
.data-table a { color: var(--primary); text-decoration: none; }

/* FORM */
.form-container { max-width: 650px; }
.villa-form { background: var(--white); border-radius: 12px; padding: 2rem; box-shadow: 0 1px 3px rgba(0,0,0,0.06); }
.form-section { margin-bottom: 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--light-gray); }
.form-section h3 { font-size: 1rem; margin-bottom: 1rem; }
.form-group { margin-bottom: 1rem; }
.form-row { display: flex; gap: 1rem; }
.flex-1 { flex: 1; }
.flex-2 { flex: 2; }
label { display: block; font-size: 0.8rem; font-weight: 600; color: var(--gray); margin-bottom: 0.3rem; }
input, select, textarea {
    width: 100%; padding: 0.6rem 0.8rem;
    border: 1px solid var(--light-gray); border-radius: 8px;
    font-size: 0.9rem; font-family: inherit;
    outline: none; transition: border-color 0.2s;
}
input:focus, select:focus, textarea:focus { border-color: var(--primary); }
textarea { resize: vertical; }
.amenities-suggestions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.5rem; }
.suggestion-tag { background: var(--bg); padding: 0.3rem 0.7rem; border-radius: 20px; font-size: 0.8rem; cursor: pointer; transition: 0.2s; }
.suggestion-tag:hover, .suggestion-tag.selected { background: var(--primary); color: white; }

/* EMPTY STATE */
.empty-state { text-align: center; padding: 3rem 1rem; }
.empty-icon { font-size: 3rem; margin-bottom: 0.5rem; }
.empty-state h3 { margin-bottom: 0.5rem; }
.empty-state p { color: var(--gray); margin-bottom: 1rem; }

/* BUTTONS */
.btn {
    display: inline-flex; align-items: center; gap: 0.4rem;
    padding: 0.5rem 1rem; border-radius: 8px;
    font-size: 0.85rem; font-weight: 600;
    text-decoration: none; border: none; cursor: pointer; transition: all 0.2s;
}
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline { background: transparent; border: 1px solid var(--light-gray); color: var(--dark); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-sm { padding: 0.3rem 0.7rem; font-size: 0.8rem; }
.btn-lg { padding: 0.75rem 2rem; font-size: 1rem; }
.btn-block { width: 100%; justify-content: center; }

/* RESPONSIVE */
@media (max-width: 768px) {
    nav { padding: 0 1rem; }
    nav ul { display: none; position: absolute; top: 56px; left: 0; right: 0; background: var(--dark); flex-direction: column; padding: 1rem; }
    nav ul.open { display: flex; }
    .burger { display: block; }
    .hero h1 { font-size: 1.5rem; }
    .villa-grid { grid-template-columns: 1fr; }
    .villa-detail-grid { grid-template-columns: 1fr; }
    .villa-detail-sidebar { position: static; }
    .charts-grid { grid-template-columns: 1fr; }
    .filters-form { flex-direction: column; }
    .form-row { flex-direction: column; }
    .booking-card-details { grid-template-columns: 1fr; }
    .kpi-grid { grid-template-columns: 1fr 1fr; }
}
