:root {
    --gold: #B8972A;
    --gold-light: #F5EDD5;
    --gold-dark: #9A7D22;
    --black: #111111;
    --white: #FFFFFF;
    --gray-50: #FAFAFA;
    --gray-100: #F5F5F5;
    --gray-200: #E5E5E5;
    --gray-400: #9CA3AF;
    --gray-600: #6B7280;
    --gray-800: #1F2937;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --radius: 8px;
    --radius-lg: 12px;
    --shadow: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.10);
}

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

body {
    font-family: var(--font);
    color: var(--black);
    background: var(--white);
    line-height: 1.6;
    font-size: 15px;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* NAV */
.nav {
    position: sticky; top: 0; z-index: 100;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    padding: 0 2rem;
    display: flex; align-items: center; justify-content: space-between;
    height: 64px;
}
.nav-logo { font-size: 18px; font-weight: 600; letter-spacing: 0.02em; }
.nav-logo span { color: var(--gold); }
.nav-links { display: flex; gap: 1.5rem; align-items: center; }
.nav-links a { font-size: 14px; color: var(--gray-600); transition: color 0.2s; }
.nav-links a:hover { color: var(--black); }
.nav-lang { font-size: 12px; border: 1px solid var(--gray-200); padding: 4px 10px; border-radius: var(--radius); color: var(--gray-600); cursor: pointer; }
.nav-lang:hover { border-color: var(--gray-400); }

/* BUTTONS */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 20px; border-radius: var(--radius); font-size: 14px; font-weight: 500; cursor: pointer; transition: all 0.2s; border: none; }
.btn-primary { background: var(--gold); color: var(--white); }
.btn-primary:hover { background: var(--gold-dark); }
.btn-outline { background: transparent; color: var(--black); border: 1px solid var(--gray-200); }
.btn-outline:hover { border-color: var(--gray-400); background: var(--gray-50); }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-lg { padding: 14px 28px; font-size: 15px; }
.btn-block { width: 100%; }
.btn-danger { background: #DC2626; color: white; }
.btn-danger:hover { background: #B91C1C; }

/* HERO */
.hero {
    position: relative;
    min-height: 520px;
    display: flex; align-items: center; justify-content: center;
    text-align: center;
    background: var(--gray-50);
    overflow: hidden;
}
.hero-bg {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2510 100%);
}
.hero-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.45); }
.hero-img { position: absolute; inset: 0; object-fit: cover; width: 100%; height: 100%; opacity: 0.6; }
.hero-content { position: relative; z-index: 2; max-width: 700px; padding: 2rem; }
.hero-tag { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; }
.hero h1 { font-size: 42px; font-weight: 600; color: var(--white); line-height: 1.15; margin-bottom: 1rem; }
.hero p { font-size: 16px; color: rgba(255,255,255,0.8); margin-bottom: 2rem; }

/* SEARCH BOX */
.search-box {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.5rem;
    display: flex; gap: 1rem; align-items: flex-end;
    box-shadow: var(--shadow-md);
    flex-wrap: wrap;
}
.search-field { display: flex; flex-direction: column; gap: 4px; }
.search-field label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gray-600); }
.search-field input, .search-field select {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 8px 12px;
    font-size: 14px;
    font-family: var(--font);
    background: var(--white);
    color: var(--black);
    outline: none;
    min-width: 130px;
}
.search-field input:focus, .search-field select:focus { border-color: var(--gold); }
.search-divider { width: 1px; height: 40px; background: var(--gray-200); align-self: flex-end; margin-bottom: 1px; }

/* SECTIONS */
.section { padding: 4rem 2rem; max-width: 1100px; margin: 0 auto; }
.section-sm { padding: 2rem; max-width: 1100px; margin: 0 auto; }
.section-title { font-size: 26px; font-weight: 600; margin-bottom: 0.5rem; }
.section-sub { font-size: 15px; color: var(--gray-600); margin-bottom: 2rem; }
.section-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 2rem; }

/* APARTMENT CARD */
.apt-card {
    display: grid; grid-template-columns: 1fr 1fr; gap: 3rem;
    align-items: start;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.apt-gallery { position: relative; }
.apt-gallery img { width: 100%; height: 400px; object-fit: cover; }
.apt-gallery-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.apt-gallery-grid img { height: 130px; object-fit: cover; }
.apt-info { padding: 2rem 2rem 2rem 0; }
.apt-info h2 { font-size: 22px; font-weight: 600; margin-bottom: 0.5rem; }
.apt-location { font-size: 14px; color: var(--gray-600); margin-bottom: 1.5rem; display: flex; align-items: center; gap: 6px; }
.apt-features { display: flex; gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.apt-feat { display: flex; align-items: center; gap: 6px; font-size: 13px; background: var(--gray-50); padding: 6px 12px; border-radius: 20px; border: 1px solid var(--gray-200); }
.apt-desc { font-size: 14px; color: var(--gray-600); line-height: 1.7; margin-bottom: 1.5rem; }
.apt-price { font-size: 28px; font-weight: 600; color: var(--gold); margin-bottom: 0.25rem; }
.apt-price span { font-size: 14px; font-weight: 400; color: var(--gray-600); }

/* AMENITIES */
.amenities-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.amenity { display: flex; align-items: center; gap: 10px; font-size: 13px; padding: 10px 14px; border: 1px solid var(--gray-200); border-radius: var(--radius); }
.amenity-icon { font-size: 18px; }

/* CALENDAR */
.calendar-wrap { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); overflow: hidden; }
.cal-header { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.5rem; border-bottom: 1px solid var(--gray-200); }
.cal-title { font-size: 15px; font-weight: 600; }
.cal-nav { display: flex; gap: 8px; }
.cal-nav button { width: 32px; height: 32px; border: 1px solid var(--gray-200); border-radius: var(--radius); background: var(--white); cursor: pointer; font-size: 14px; display: flex; align-items: center; justify-content: center; }
.cal-nav button:hover { background: var(--gray-50); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.cal-day-name { text-align: center; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--gray-600); padding: 0.75rem 0; border-bottom: 1px solid var(--gray-200); }
.cal-day { text-align: center; padding: 0.6rem; font-size: 13px; cursor: pointer; transition: all 0.15s; position: relative; }
.cal-day:hover:not(.blocked):not(.past) { background: var(--gold-light); }
.cal-day.today { font-weight: 700; }
.cal-day.blocked { background: var(--gray-100); color: var(--gray-400); cursor: not-allowed; text-decoration: line-through; }
.cal-day.past { color: var(--gray-300); cursor: not-allowed; }
.cal-day.selected { background: var(--gold); color: var(--white); border-radius: var(--radius); font-weight: 600; }
.cal-day.in-range { background: var(--gold-light); }
.cal-day.empty { background: transparent; cursor: default; }
.cal-legend { display: flex; gap: 1rem; padding: 0.75rem 1.5rem; font-size: 12px; color: var(--gray-600); border-top: 1px solid var(--gray-200); }
.cal-legend span { display: flex; align-items: center; gap: 6px; }
.cal-legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }

/* BOOKING FORM */
.booking-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    position: sticky; top: 80px;
    box-shadow: var(--shadow-md);
}
.booking-price { font-size: 24px; font-weight: 600; margin-bottom: 1rem; }
.booking-price span { font-size: 14px; font-weight: 400; color: var(--gray-600); }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--gray-600); margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: 10px 12px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    font-size: 14px; font-family: var(--font);
    color: var(--black); background: var(--white);
    outline: none; transition: border-color 0.2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--gold); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.booking-summary { border-top: 1px solid var(--gray-200); margin: 1rem 0; padding-top: 1rem; }
.summary-line { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 8px; }
.summary-line.total { font-weight: 600; font-size: 15px; border-top: 1px solid var(--gray-200); margin-top: 8px; padding-top: 8px; }

/* FEATURES */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; }
.feature { text-align: center; padding: 2rem 1rem; }
.feature-icon { width: 48px; height: 48px; border-radius: 50%; background: var(--gold-light); margin: 0 auto 1rem; display: flex; align-items: center; justify-content: center; font-size: 20px; }
.feature h3 { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.feature p { font-size: 13px; color: var(--gray-600); line-height: 1.6; }

/* FORMS (auth) */
.form-container { max-width: 480px; margin: 4rem auto; padding: 0 1.5rem; }
.form-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 2rem; }
.form-card h1 { font-size: 22px; font-weight: 600; margin-bottom: 0.5rem; }
.form-card p { font-size: 14px; color: var(--gray-600); margin-bottom: 1.5rem; }

/* ALERTS */
.alert { padding: 12px 16px; border-radius: var(--radius); font-size: 14px; margin-bottom: 1rem; }
.alert-success { background: #F0FDF4; color: #166534; border: 1px solid #BBF7D0; }
.alert-error { background: #FEF2F2; color: #991B1B; border: 1px solid #FECACA; }
.alert-info { background: #EFF6FF; color: #1E40AF; border: 1px solid #BFDBFE; }

/* DASHBOARD */
.dashboard { display: grid; grid-template-columns: 240px 1fr; min-height: calc(100vh - 64px); }
.sidebar { background: var(--black); color: var(--white); padding: 1.5rem; }
.sidebar-logo { font-size: 16px; font-weight: 600; margin-bottom: 2rem; padding-bottom: 1rem; border-bottom: 1px solid rgba(255,255,255,0.1); }
.sidebar-logo span { color: var(--gold); }
.sidebar-nav { display: flex; flex-direction: column; gap: 4px; }
.sidebar-nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--radius); font-size: 14px; color: rgba(255,255,255,0.7); transition: all 0.2s; }
.sidebar-nav a:hover, .sidebar-nav a.active { background: rgba(255,255,255,0.08); color: var(--white); }
.sidebar-nav a.active { color: var(--gold); }
.main-content { padding: 2rem; background: var(--gray-50); }
.page-title { font-size: 22px; font-weight: 600; margin-bottom: 2rem; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 2rem; }
.stat-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 1.25rem; }
.stat-label { font-size: 12px; color: var(--gray-600); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 8px; }
.stat-value { font-size: 28px; font-weight: 600; }
.stat-sub { font-size: 12px; color: var(--gray-600); margin-top: 4px; }

/* TABLES */
.table-wrap { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); overflow: hidden; }
.table-head { padding: 1rem 1.5rem; border-bottom: 1px solid var(--gray-200); font-size: 15px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; }
table { width: 100%; border-collapse: collapse; }
thead th { padding: 12px 16px; text-align: left; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--gray-600); background: var(--gray-50); }
tbody td { padding: 14px 16px; font-size: 14px; border-top: 1px solid var(--gray-100); }
tbody tr:hover { background: var(--gray-50); }

/* BADGES */
.badge { display: inline-block; font-size: 11px; font-weight: 500; padding: 3px 10px; border-radius: 20px; }
.badge-success { background: #DCFCE7; color: #166534; }
.badge-warning { background: #FEF9C3; color: #854D0E; }
.badge-danger { background: #FEE2E2; color: #991B1B; }
.badge-info { background: #DBEAFE; color: #1E40AF; }
.badge-gray { background: var(--gray-100); color: var(--gray-600); }

/* FOOTER */
footer { border-top: 1px solid var(--gray-200); padding: 2rem; background: var(--gray-50); }
.footer-inner { max-width: 1100px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer-logo { font-size: 16px; font-weight: 600; }
.footer-logo span { color: var(--gold); }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { font-size: 13px; color: var(--gray-600); }
.footer-links a:hover { color: var(--black); }
.footer-copy { font-size: 13px; color: var(--gray-400); }

/* HAMBURGER BUTTON */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
    background: none;
    border: none;
    z-index: 200;
}
.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--black);
    border-radius: 2px;
    transition: all 0.3s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* MOBILE MENU */
.mobile-menu {
    display: none;
    position: fixed;
    top: 64px;
    left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    padding: 1rem 1.5rem 1.5rem;
    z-index: 150;
    box-shadow: 0 4px 16px rgba(0,0,0,0.10);
    flex-direction: column;
    gap: 4px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
    font-size: 15px;
    color: var(--gray-600);
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-100);
    display: flex;
    align-items: center;
    gap: 10px;
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover { color: var(--black); }

/* HOME GRID */
.home-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 3rem;
    align-items: start;
}

/* ADMIN HAMBURGER FLOTTANT */
.admin-hamburger {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--black);
    color: var(--white);
    border: none;
    cursor: pointer;
    font-size: 20px;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
    z-index: 300;
}
.admin-mobile-nav {
    display: none;
    position: fixed;
    bottom: 84px;
    right: 16px;
    background: var(--black);
    border-radius: 12px;
    padding: 8px;
    z-index: 299;
    flex-direction: column;
    gap: 2px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    min-width: 200px;
}
.admin-mobile-nav.open { display: flex; }
.admin-mobile-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 14px;
    color: rgba(255,255,255,0.8);
    transition: all 0.15s;
}
.admin-mobile-nav a:hover,
.admin-mobile-nav a.active { background: rgba(255,255,255,0.1); color: var(--gold); }

/* RESPONSIVE 768px */
@media (max-width: 768px) {
    .nav { padding: 0 1rem; }
    .nav-links { display: none !important; }
    .hamburger { display: flex; }

    .home-grid { grid-template-columns: 1fr !important; gap: 1.5rem; }

    .hero { min-height: 420px; }
    .hero h1 { font-size: 28px; }
    .hero p { font-size: 14px; }
    .hero-content { padding: 1.25rem; }

    .search-box { flex-direction: column; padding: 1rem; gap: 0.75rem; }
    .search-divider { display: none; }
    .search-field { width: 100%; }
    .search-field input, .search-field select { width: 100%; min-width: unset; font-size: 16px; }

    .section { padding: 2rem 1rem; }
    .section-header { flex-direction: column; align-items: flex-start; gap: 8px; }
    .section-title { font-size: 20px; }
    h1 { font-size: 24px !important; }

    .apt-card { grid-template-columns: 1fr; }
    .apt-gallery img { height: 260px; }
    .apt-info { padding: 1.25rem; }

    .gallery-grid { grid-template-columns: 1fr; grid-template-rows: 220px 110px 110px; }
    .gallery-grid .main-photo { grid-row: 1; }

    .features-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
    .amenities-grid { grid-template-columns: 1fr 1fr; }
    .apt-features { gap: 0.5rem; }
    .apt-feat { font-size: 12px; padding: 4px 10px; }

    .booking-card { position: static; }
    .booking-price { font-size: 20px; }

    .form-row { grid-template-columns: 1fr; }
    .form-group input, .form-group select, .form-group textarea { font-size: 16px; }
    .form-container { margin: 2rem auto; padding: 0 1rem; }

    .dashboard { grid-template-columns: 1fr !important; }
    .sidebar { display: none !important; }
    .admin-hamburger { display: flex; }
    .main-content { padding: 1rem; }

    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .stat-card { padding: 1rem; }
    .stat-value { font-size: 24px; }

    .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    table { min-width: 580px; }
    .table-head { flex-wrap: wrap; gap: 8px; padding: 0.75rem 1rem; }

    footer { padding: 1.5rem 1rem; }
    .footer-inner { flex-direction: column; text-align: center; }
    .footer-links { flex-wrap: wrap; justify-content: center; gap: 0.75rem; }
}

/* RESPONSIVE 480px */
@media (max-width: 480px) {
    .hero { min-height: 360px; }
    .hero h1 { font-size: 22px; }
    .features-grid { grid-template-columns: 1fr; }
    .amenities-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .stat-value { font-size: 20px; }
    table { font-size: 12px; }
    thead th, tbody td { padding: 8px 10px; }
    .btn-lg { width: 100%; text-align: center; }
    .apt-gallery img { height: 200px; }
}
