:root {
    --primary: #ffd400;
    --primary-dark: #f4c400;
    --secondary: #1f2937;
    --dark: #111827;
    --text: #2b2b2b;
    --muted: #6b7280;
    --bg: #f7f7f5;
    --white: #ffffff;
    --border: #ececec;
    --success: #18a957;
    --danger: #e23d3d;
    --shadow: 0 10px 30px rgba(17, 24, 39, 0.08);
    --radius: 16px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Segoe UI", Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
}

/* HEADER */
.site-header {
    background: #ffffff;
    border-bottom: 1px solid #ececec;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
}

.navbar {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #111827;
}

.logo-badge {
    width: 50px;
    height: 50px;
    border-radius: 16px;
    background: #ffd400;
    color: #111827;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 18px;
    box-shadow: 0 10px 24px rgba(255, 212, 0, 0.28);
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-text strong {
    font-size: 20px;
    color: #111827;
}

.logo-text small {
    font-size: 12px;
    color: #6b7280;
    margin-top: 4px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.nav-links a {
    padding: 11px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    color: #374151;
    transition: 0.25s ease;
}

.nav-links a:hover {
    background: #fff7cc;
    color: #111827;
}

.nav-admin {
    background: #111827;
    color: #ffffff !important;
}

.nav-admin:hover {
    background: #000000 !important;
    color: #ffffff !important;
}

.site-main {
    min-height: calc(100vh - 180px);
    padding: 28px 0 40px;
}

/* HERO */
.hero {
    padding: 10px 0 18px;
}

.hero-box {
    background: linear-gradient(135deg, rgba(255, 212, 0, 0.94), rgba(255, 235, 118, 0.95));
    border-radius: 22px;
    padding: 38px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.hero-box::after {
    content: "";
    position: absolute;
    right: -60px;
    top: -50px;
    width: 220px;
    height: 220px;
    background: rgba(255,255,255,0.18);
    border-radius: 50%;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    margin: 0 0 14px;
    font-size: 42px;
    line-height: 1.15;
    color: var(--dark);
}

.hero p {
    margin: 0 0 28px;
    font-size: 17px;
    color: #3f3a20;
    max-width: 760px;
}

.search-panel {
    background: rgba(255,255,255,0.95);
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 14px 24px rgba(0,0,0,0.08);
}

.search-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
}

.search-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--secondary);
}

.search-group input,
.search-group select {
    width: 100%;
    height: 48px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 0 14px;
    background: var(--white);
    font-size: 14px;
    outline: none;
}

.search-group input:focus,
.search-group select:focus,
.form-group input:focus,
.form-group select:focus,
.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #f4c400;
    box-shadow: 0 0 0 4px rgba(255, 212, 0, 0.18);
}

.search-submit {
    align-self: end;
    border: none;
    height: 48px;
    border-radius: 14px;
    background: var(--dark);
    color: var(--white);
    font-weight: 800;
    cursor: pointer;
    transition: 0.25s ease;
}

.search-submit:hover {
    transform: translateY(-2px);
    background: #000;
}

/* SECTION */
.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

.section-head h2 {
    margin: 0;
    font-size: 30px;
    color: var(--dark);
}

.section-head p {
    margin: 6px 0 0;
    color: var(--muted);
}

/* HOME CARDS */
.featured-properties {
    padding: 26px 0 70px;
}

.property-showcase {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.property-card {
    background: var(--white);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid #f0f0f0;
    transition: 0.28s ease;
}

.property-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 32px rgba(17, 24, 39, 0.14);
}

.property-image {
    position: relative;
    height: 240px;
    overflow: hidden;
    background: #e5e7eb;
}

.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.35s ease;
}

.property-card:hover .property-image img {
    transform: scale(1.06);
}

.badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    z-index: 3;
}

.badge.status {
    background: var(--success);
    color: #ffffff;
}

.property-content {
    padding: 20px;
}

.property-content h3 {
    margin: 0 0 10px;
    font-size: 22px;
    line-height: 1.3;
    color: var(--dark);
}

.location {
    margin: 0 0 16px;
    color: var(--muted);
    font-size: 14px;
}

.meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.meta span {
    background: #f8f8f8;
    border: 1px solid #ececec;
    border-radius: 999px;
    padding: 9px 12px;
    font-size: 13px;
    color: #374151;
    font-weight: 600;
}

.property-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #efefef;
    padding-top: 16px;
}

.property-bottom strong {
    font-size: 24px;
    color: var(--dark);
}

.property-bottom span {
    color: #b88700;
    font-weight: 800;
}

/* LISTING PAGE */
.listing-page {
    padding: 30px 0 70px;
}

.listing-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 24px;
    align-items: start;
}

.filters-card,
.results-bar,
.detail-card,
.detail-sidebar,
.empty-state {
    background: var(--white);
    border-radius: 18px;
    box-shadow: var(--shadow);
    border: 1px solid #f0f0f0;
}

.filters-card {
    padding: 24px;
    position: sticky;
    top: 96px;
}

.filters-card h3 {
    margin: 0 0 18px;
    color: var(--dark);
    font-size: 24px;
}

.form-group {
    margin-bottom: 14px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 700;
    color: var(--secondary);
}

.form-group input,
.form-group select,
.contact-form input,
.contact-form textarea {
    width: 100%;
    border: 1px solid #e5e7eb;
    background: #fff;
    border-radius: 14px;
    padding: 13px 14px;
    font-size: 14px;
    outline: none;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.filter-btn,
.primary-btn {
    width: 100%;
    border: none;
    border-radius: 14px;
    min-height: 50px;
    background: var(--primary);
    color: var(--dark);
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    transition: 0.25s ease;
}

.filter-btn:hover,
.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(255, 212, 0, 0.28);
}

.results-bar {
    padding: 18px 22px;
    margin-bottom: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.results-note {
    color: var(--muted);
    font-size: 14px;
}

.property-list-modern {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.property-row-card {
    display: grid;
    grid-template-columns: 320px 1fr;
    background: var(--white);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid #f0f0f0;
    transition: 0.28s ease;
}

.property-row-card:hover {
    transform: translateY(-4px);
}

.property-thumb {
    position: relative;
    min-height: 188px;
    background: #e5e7eb;
}

.property-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tag {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 8px 12px;
    border-radius: 999px;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
}

.tag.sale {
    background: var(--success);
}

.tag.rent {
    background: var(--danger);
}

.property-main {
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 12px;
}

.property-main-top {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: start;
}

.property-main h3 {
    margin: 0 0 8px;
    font-size: 22px;
    color: var(--dark);
}

.property-location {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
}

.property-price {
    font-size: 28px;
    font-weight: 900;
    color: #b88700;
    white-space: nowrap;
}

.property-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.property-meta-row span {
    background: #fff8d8;
    color: #534300;
    border-radius: 999px;
    padding: 9px 14px;
    font-size: 13px;
    font-weight: 700;
}

.property-desc {
    margin: 0;
    color: #4b5563;
    line-height: 1.5;
    font-size: 14px;
}

.property-bottom-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #efefef;
    padding-top: 10px;
}

.detail-link {
    font-weight: 800;
    color: #b88700;
}

.date-text {
    color: #9ca3af;
    font-size: 14px;
}

.empty-state {
    padding: 40px;
    text-align: center;
}

/* DETAIL PAGE */
.detail-page {
    padding: 34px 0 70px;
}

.detail-layout {
    display: grid;
    grid-template-columns: 1.4fr 380px;
    gap: 24px;
    align-items: start;
}

.detail-card {
    padding: 22px;
}

.detail-gallery {
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 24px;
    background: #e5e7eb;
}

.detail-gallery img {
    width: 100%;
    height: 480px;
    object-fit: cover;
}

.detail-head {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: start;
    margin-bottom: 18px;
}

.detail-head h1 {
    margin: 0 0 10px;
    font-size: 34px;
    color: var(--dark);
}

.detail-location {
    color: var(--muted);
    margin: 0;
    font-size: 15px;
}

.detail-price {
    font-size: 34px;
    font-weight: 900;
    color: #b88700;
    white-space: nowrap;
}

.detail-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.detail-badges span {
    background: #fff8d8;
    color: #5a4900;
    border-radius: 999px;
    padding: 10px 14px;
    font-weight: 700;
    font-size: 14px;
}

.detail-section {
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px solid #efefef;
}

.detail-section h3 {
    margin: 0 0 16px;
    font-size: 22px;
    color: var(--dark);
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.info-item {
    background: #fafafa;
    border: 1px solid #efefef;
    border-radius: 12px;
    padding: 14px;
}

.info-item strong {
    display: block;
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 13px;
}

.info-item span {
    color: var(--dark);
    font-weight: 700;
}

.detail-description {
    line-height: 1.8;
    color: #374151;
    font-size: 15px;
}

.detail-sidebar {
    padding: 24px;
    position: sticky;
    top: 96px;
}

.agent-card h3 {
    margin: 0 0 8px;
    font-size: 22px;
    color: var(--dark);
}

.agent-card p {
    margin: 0 0 18px;
    color: var(--muted);
}

.quick-contact {
    background: #fff8d8;
    border: 1px solid #ffe680;
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 18px;
}

.quick-contact strong {
    display: block;
    margin-bottom: 6px;
    color: var(--dark);
}

.quick-contact span {
    color: #7a6200;
    font-weight: 700;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-form textarea {
    min-height: 120px;
    resize: vertical;
}

/* FOOTER */
.site-footer {
    background: #111827;
    color: #d1d5db;
    margin-top: 50px;
    padding-top: 40px;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 28px;
    flex-wrap: wrap;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand h3 {
    margin: 0 0 10px;
    color: #ffd400;
    font-size: 22px;
}

.footer-brand p {
    margin: 0;
    max-width: 420px;
    line-height: 1.7;
    color: #cbd5e1;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #e5e7eb;
    font-weight: 600;
    transition: 0.2s ease;
}

.footer-links a:hover {
    color: #ffd400;
}

.footer-bottom {
    padding: 18px 0 26px;
}

.footer-bottom p {
    margin: 0;
    color: #9ca3af;
    font-size: 14px;
}

/* RESPONSIVE */
@media (max-width: 1100px) {
    .search-grid {
        grid-template-columns: 1fr 1fr;
    }

    .property-showcase {
        grid-template-columns: 1fr 1fr;
    }

    .listing-layout,
    .detail-layout {
        grid-template-columns: 1fr;
    }

    .filters-card,
    .detail-sidebar {
        position: static;
    }

    .property-row-card {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero-box {
        padding: 24px;
    }

    .hero h1 {
        font-size: 30px;
    }

    .search-grid,
    .form-row,
    .detail-grid,
    .property-showcase {
        grid-template-columns: 1fr;
    }

    .detail-head,
    .property-main-top,
    .results-bar,
    .navbar,
    .footer-inner {
        flex-direction: column;
        align-items: start;
    }

    .detail-gallery img {
        height: 280px;
    }

    .property-image {
        height: 220px;
    }

    .property-price,
    .detail-price {
        font-size: 26px;
    }
}

/* =========================
   ADMIN PANEL
========================= */

.admin-body {
    margin: 0;
    background: #f6f7fb;
    color: #1f2937;
    font-family: "Segoe UI", Arial, sans-serif;
}

.admin-auth-body {
    margin: 0;
    min-height: 100vh;
    background: linear-gradient(135deg, #111827 0%, #1f2937 55%, #3b4252 100%);
    font-family: "Segoe UI", Arial, sans-serif;
}

.admin-login-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.admin-login-card {
    width: 100%;
    max-width: 460px;
    background: #ffffff;
    border-radius: 21px;
    padding: 34px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.22);
}

.admin-login-brand {
    text-align: center;
    margin-bottom: 24px;
}

.admin-login-badge {
    width: 68px;
    height: 68px;
    margin: 0 auto 16px;
    border-radius: 15px;
    background: #ffd400;
    color: #111827;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 24px;
    box-shadow: 0 12px 26px rgba(255, 212, 0, 0.28);
}

.admin-login-brand h1 {
    margin: 0 0 8px;
    color: #111827;
    font-size: 30px;
}

.admin-login-brand p {
    margin: 0;
    color: #6b7280;
    line-height: 1.6;
}

.admin-alert {
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 18px;
    font-size: 14px;
    font-weight: 600;
}

.admin-alert.error {
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.admin-form .form-group {
    margin-bottom: 16px;
}

.admin-form label,
.admin-form-grid label {
    display: block;
    margin-bottom: 8px;
    color: #374151;
    font-size: 14px;
    font-weight: 700;
}

.admin-form input,
.admin-form select,
.admin-form textarea,
.admin-form-grid input,
.admin-form-grid select,
.admin-form-grid textarea {
    width: 100%;
    border: 1px solid #dbe1ea;
    background: #fff;
    border-radius: 14px;
    padding: 13px 14px;
    font-size: 14px;
    outline: none;
    transition: 0.2s ease;
    box-sizing: border-box;
}

.admin-form input:focus,
.admin-form select:focus,
.admin-form textarea:focus,
.admin-form-grid input:focus,
.admin-form-grid select:focus,
.admin-form-grid textarea:focus {
    border-color: #f4c400;
    box-shadow: 0 0 0 4px rgba(255, 212, 0, 0.18);
}

.admin-login-footer {
    margin-top: 20px;
    text-align: center;
}

.admin-login-footer a {
    color: #6b7280;
    font-weight: 600;
}

.admin-login-footer a:hover {
    color: #111827;
}

.admin-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 280px 1fr;
}

.admin-sidebar {
    background: #111827;
    color: #e5e7eb;
    padding: 28px 20px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.admin-sidebar-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.admin-sidebar-badge {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: #ffd400;
    color: #111827;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 18px;
}

.admin-sidebar-brand strong {
    display: block;
    font-size: 18px;
    color: #fff;
}

.admin-sidebar-brand small {
    color: #9ca3af;
}

.admin-sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.admin-sidebar-nav a {
    padding: 13px 14px;
    border-radius: 14px;
    color: #d1d5db;
    font-weight: 700;
    transition: 0.2s ease;
}

.admin-sidebar-nav a:hover,
.admin-sidebar-nav a.active {
    background: rgba(255, 212, 0, 0.14);
    color: #ffd400;
}

.admin-sidebar-nav a.danger:hover {
    background: rgba(239, 68, 68, 0.14);
    color: #fca5a5;
}

.admin-main {
    padding: 28px;
}

.admin-topbar-modern {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 18px;
    margin-bottom: 24px;
}

.admin-topbar-modern h1 {
    margin: 0 0 8px;
    font-size: 32px;
    color: #111827;
}

.admin-topbar-modern p {
    margin: 0;
    color: #6b7280;
}

.admin-topbar-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.admin-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border: none;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    text-decoration: none;
    transition: 0.24s ease;
}

.admin-btn:hover {
    transform: translateY(-2px);
}

.admin-btn-primary {
    background: #ffd400;
    color: #111827;
    box-shadow: 0 12px 24px rgba(255, 212, 0, 0.28);
}

.admin-btn-dark {
    background: #111827;
    color: #ffffff;
}

.admin-btn-soft {
    background: #ffffff;
    color: #111827;
    border: 1px solid #e5e7eb;
}

.admin-btn-danger {
    background: #dc2626;
    color: #ffffff;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 24px;
}

.admin-stat-card {
    background: #ffffff;
    border: 1px solid #edf1f7;
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.admin-stat-card span {
    display: block;
    margin-bottom: 10px;
    color: #6b7280;
    font-weight: 700;
}

.admin-stat-card strong {
    font-size: 34px;
    color: #111827;
}

.admin-table-card,
.admin-form-card {
    background: #ffffff;
    border: 1px solid #edf1f7;
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.admin-section-head {
    margin-bottom: 18px;
}

.admin-section-head h2 {
    margin: 0 0 6px;
    color: #111827;
    font-size: 24px;
}

.admin-section-head p {
    margin: 0;
    color: #6b7280;
}

.admin-table-wrap {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 16px 14px;
    text-align: left;
    border-bottom: 1px solid #eef2f7;
    vertical-align: middle;
}

.admin-table th {
    color: #6b7280;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.admin-property-cell {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 220px;
}

.admin-property-cell strong {
    display: block;
    margin-bottom: 6px;
    color: #111827;
}

.admin-property-cell small {
    color: #9ca3af;
}

.admin-property-thumb {
    width: 72px;
    height: 56px;
    border-radius: 14px;
    overflow: hidden;
    background: #e5e7eb;
    flex-shrink: 0;
}

.admin-property-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.admin-no-image {
    width: 100%;
    height: 100%;
    font-size: 11px;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    text-align: center;
    padding: 4px;
}

.admin-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.admin-status-badge.sale {
    background: #dcfce7;
    color: #166534;
}

.admin-status-badge.rent {
    background: #fee2e2;
    color: #991b1b;
}

.admin-action-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.admin-empty-state {
    padding: 50px 20px;
    text-align: center;
}

.admin-empty-state h3 {
    margin: 0 0 10px;
    font-size: 24px;
    color: #111827;
}

.admin-empty-state p {
    margin: 0 0 20px;
    color: #6b7280;
}

.admin-form-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 28px;
}

.admin-form-top {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 18px;
    margin-bottom: 24px;
}

.admin-form-top h1 {
    margin: 0 0 8px;
    font-size: 32px;
    color: #111827;
}

.admin-form-top p {
    margin: 0;
    color: #6b7280;
}

.admin-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.admin-form-grid .full {
    grid-column: 1 / -1;
}

.admin-form-grid textarea {
    min-height: 160px;
    resize: vertical;
}

.admin-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.admin-current-image {
    width: 260px;
    max-width: 100%;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #ececec;
    background: #f9fafb;
}

.admin-current-image img {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 1100px) {
    .admin-shell {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        padding: 18px;
    }

    .admin-main {
        padding: 18px;
    }

    .admin-stats {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .admin-form-grid {
        grid-template-columns: 1fr;
    }

    .admin-topbar-modern,
    .admin-form-top {
        flex-direction: column;
        align-items: start;
    }

    .admin-topbar-actions,
    .admin-form-actions {
        width: 100%;
    }

    .admin-btn {
        width: 100%;
    }

    .admin-login-card {
        padding: 24px;
    }
}

.detail-main-image {
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 14px;
    background: #e5e7eb;
}

.detail-main-image img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    display: block;
}

.detail-thumb-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.detail-thumb-grid img {
    width: 100%;
    height: 110px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid #ececec;
    background: #f3f4f6;
}

@media (max-width: 768px) {
    .detail-thumb-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .detail-main-image img {
        height: 280px;
    }
}

.property-image-slider {
    position: relative;
    height: 240px;
    overflow: hidden;
    background: #e5e7eb;
}

.slider-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.slider-image.active {
    opacity: 1;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 8px;
    background: rgba(17, 24, 39, 0.72);
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-btn.prev {
    left: 10px;
}

.slider-btn.next {
    right: 10px;
}

.slider-btn:hover {
    background: rgba(0, 0, 0, 0.88);
}

.slider-dots {
    position: absolute;
    left: 50%;
    bottom: 12px;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 5;
}

.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.55);
}

.slider-dot.active {
    background: #ffffff;
}

.admin-image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}

.admin-image-item {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 9px;
    padding: 10px;
}

.admin-image-item img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 10px;
    display: block;
    margin-bottom: 10px;
}

.admin-image-delete {
    width: 100%;
}

.detail-slider {
    position: relative;
}

.detail-slide {
    display: none;
    width: 100%;
    height: 480px;
    object-fit: cover;
    border-radius: 14px;
    background: #e5e7eb;
}

.detail-slide.active {
    display: block;
}

.detail-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 8px;
    background: rgba(17, 24, 39, 0.7);
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    z-index: 5;
}

.detail-slider-btn.prev {
    left: 14px;
}

.detail-slider-btn.next {
    right: 14px;
}

.detail-slider-btn:hover {
    background: rgba(0, 0, 0, 0.9);
}

.detail-thumb-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 14px;
}

.detail-thumb {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid transparent;
    cursor: pointer;
    background: #f3f4f6;
}

.detail-thumb.active {
    border-color: #ffd400;
}

@media (max-width: 768px) {
    .detail-slide {
        height: 280px;
    }

    .detail-thumb-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.admin-image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}

.admin-image-item {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 9px;
    padding: 10px;
}

.admin-image-item img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 10px;
    display: block;
    margin-bottom: 10px;
}

.admin-image-delete {
    width: 100%;
}

.form-success-message {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
    padding: 12px 14px;
    border-radius: 10px;
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 600;
}

.form-error-message {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
    padding: 12px 14px;
    border-radius: 10px;
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 600;
}

.admin-messages-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.admin-message-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 18px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.admin-message-top {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 12px;
    margin-bottom: 12px;
}

.admin-message-top h3 {
    margin: 0;
    font-size: 20px;
    color: #111827;
}

.admin-message-top span {
    font-size: 13px;
    color: #6b7280;
    white-space: nowrap;
}

.admin-message-property {
    margin: 0 0 10px;
    color: #374151;
}

.admin-message-card p {
    margin: 0 0 10px;
    color: #374151;
}

.admin-message-box {
    background: #f9fafb;
    border: 1px solid #ececec;
    border-radius: 10px;
    padding: 14px;
    color: #1f2937;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .admin-messages-grid {
        grid-template-columns: 1fr;
    }
}

.admin-message-date {
    display: inline-block;
    margin-top: 4px;
    font-size: 13px;
    color: #6b7280;
}

.admin-message-delete {
    min-height: 40px;
    padding: 0 14px;
    flex-shrink: 0;
}