* { box-sizing: border-box; }
body { margin: 0; font-family: Arial, Helvetica, sans-serif; color: var(--text); background: #f7f8fb; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.section { padding: 56px 0; }
.section-light { background: #ffffff; }
.narrow-container { width: min(560px, calc(100% - 32px)); }
.center { text-align: center; }
.mt-16 { margin-top: 16px; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); border-bottom: 1px solid #e4e8f2; backdrop-filter: blur(12px); }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 14px 0; }
.brand img { height: 58px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.site-nav a { font-weight: 700; font-size: 14px; color: var(--primary); }
.nav-button, .button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 18px; border-radius: 12px; border: 1px solid transparent; cursor: pointer; font-weight: 700; transition: .2s ease; }
.button.small { padding: 9px 14px; border-radius: 10px; font-size: 14px; }
.button-primary, .nav-button { background: var(--primary); color: #fff; }
.button-primary:hover, .nav-button:hover { opacity: .93; }
.button-outline { border-color: var(--primary); color: var(--primary); background: transparent; }
.button-outline:hover { background: var(--primary); color: #fff; }
.hero { background: linear-gradient(180deg, rgba(14,29,99,0.06), rgba(14,29,99,0)); }
.hero-banner { width: 100%; height: auto; }
.search-section { background: #E9CE7F; color: #333333; padding: 52px 0; }
.section-heading { margin-bottom: 28px; }
.section-heading h2 { margin: 6px 0 10px; font-size: clamp(28px, 4vw, 42px); line-height: 1.1; }
.section-heading p { margin: 0; color: #5f6880; }
.search-section .section-heading p { color: rgba(255,255,255,.82); }
.eyebrow { display: inline-block; padding: 8px 12px; border-radius: 999px; background: rgba(201,164,73,.16); color: var(--secondary); font-weight: 700; font-size: 13px; letter-spacing: .03em; }
.search-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; background: #fff; padding: 18px; border-radius: 20px; box-shadow: 0 24px 50px rgba(13, 25, 79, 0.2); }
.search-grid input, .search-grid select,
.form-grid-admin input, .form-grid-admin select, .form-grid-admin textarea,
.form-stack input, .form-stack select, .form-stack textarea { width: 100%; padding: 13px 14px; border: 1px solid #d9deea; border-radius: 12px; font: inherit; background: #fff; }
.form-grid-admin textarea, .form-stack textarea { min-height: 110px; resize: vertical; }
.features-strip { padding: 20px 0 8px; }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feature-box { background: #fff; border-radius: 18px; padding: 18px; border: 1px solid #e4e8f2; box-shadow: 0 10px 24px rgba(10,15,35,0.05); }
.feature-box strong { display: block; margin-bottom: 6px; color: var(--primary); }
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.property-card { background: #fff; border-radius: 22px; overflow: hidden; border: 1px solid #e4e8f2; box-shadow: 0 14px 32px rgba(10,15,35,0.06); }
.property-thumb { position: relative; aspect-ratio: 16 / 10; background: #dfe4ef; }
.property-thumb img { width: 100%; height: 100%; object-fit: cover; }
.tag, .small-pill, .pill, .badge { display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; font-size: 12px; font-weight: 700; padding: 7px 11px; }
.tag { position: absolute; top: 14px; left: 14px; background: rgba(255,255,255,.92); color: var(--primary); }
.tag-dark { background: rgba(14,29,99,.86); color: #fff; }
.small-pill { background: #f2f5fb; color: #47506b; }
.property-content { padding: 20px; }
.property-content h3 { margin: 8px 0; font-size: 22px; }
.property-content p { margin: 8px 0; color: #5f6880; }
.meta-row { display: flex; gap: 8px; flex-wrap: wrap; }
.price-line { display: flex; flex-direction: column; gap: 4px; margin: 16px 0 20px; }
.price-line strong { color: var(--primary); font-size: 22px; }
.card-specs { font-size: 14px; }
.empty-state { background: #fff8e8; border: 1px dashed var(--secondary); padding: 20px; border-radius: 16px; color: #6f5830; }
.two-col { display: grid; grid-template-columns: 1.4fr .9fr; gap: 28px; align-items: start; }
.info-card, .content-box, .side-contact-card, .login-card, .admin-card, .kpi-card { background: #fff; border-radius: 22px; border: 1px solid #e4e8f2; box-shadow: 0 16px 30px rgba(10,15,35,0.05); }
.info-card, .side-contact-card, .login-card, .admin-card { padding: 26px; }
.check-list { padding-left: 18px; color: #415067; }
.check-list li { margin-bottom: 10px; }
.site-footer { background: #0b153f; color: #fff; padding-top: 42px; }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer-grid p { color: rgba(255,255,255,.74); line-height: 1.6; }
.footer-logo { height: 52px; margin-bottom: 12px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 28px; padding: 18px; text-align: center; color: rgba(255,255,255,.7); font-size: 14px; }
.login-section { min-height: calc(100vh - 230px); display: flex; align-items: center; }
.form-stack { display: grid; gap: 16px; }
.form-stack label span, .form-grid-admin label span { display: block; margin-bottom: 8px; font-weight: 700; color: #32405d; }
.helper-note { margin-top: 16px; padding: 14px 16px; border-radius: 16px; background: #f4f7fb; color: #55627d; font-size: 14px; }
.property-detail-grid { display: grid; grid-template-columns: minmax(0,1.4fr) 360px; gap: 28px; align-items: start; }
.detail-hero-image { border-radius: 24px; overflow: hidden; box-shadow: 0 18px 40px rgba(10,15,35,0.08); }
.price-block { display: flex; gap: 14px; flex-wrap: wrap; margin: 20px 0; }
.price-block div { background: #fff; border: 1px solid #e4e8f2; padding: 18px; border-radius: 18px; min-width: 180px; }
.price-block span { display: block; color: #60708c; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }
.price-block strong { font-size: 28px; color: var(--primary); }
.detail-specs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 22px 0; }
.detail-specs div { background: #fff; border: 1px solid #e4e8f2; padding: 18px; border-radius: 18px; text-align: center; }
.detail-specs strong { display: block; font-size: 28px; color: var(--primary); }
.subtitle { color: #5f6880; margin: 6px 0 10px; }
.content-box { padding: 22px; margin: 20px 0; }
.content-box h3 { margin-top: 0; }
.side-contact-card { position: sticky; top: 88px; }
.side-contact-card hr { border: 0; border-top: 1px solid #edf1f7; margin: 18px 0; }
.flash { padding: 14px 16px; border-radius: 14px; margin-bottom: 18px; font-weight: 700; }
.flash-success { background: #e8f7ef; color: #196a3b; border: 1px solid #c6e8d5; }
.flash-error { background: #fdeeee; color: #8d1b1b; border: 1px solid #f0caca; }
.admin-body { background: #eef2f8; }
.admin-shell { display: grid; grid-template-columns: 290px minmax(0,1fr); min-height: 100vh; }
.admin-sidebar { background: linear-gradient(180deg, var(--primary), #111d52); color: #fff; padding: 24px; }
.admin-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.admin-brand img { width: 72px; height: auto; }
.admin-brand strong, .admin-brand span { display: block; }
.admin-brand span { color: rgba(255,255,255,.72); font-size: 14px; margin-top: 4px; }
.admin-menu { display: grid; gap: 10px; }
.admin-menu a { padding: 12px 14px; border-radius: 14px; color: rgba(255,255,255,.84); font-weight: 700; }
.admin-menu a.active, .admin-menu a:hover { background: rgba(255,255,255,.14); color: #fff; }
.admin-main { padding: 26px; }
.admin-topbar { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; margin-bottom: 20px; }
.admin-topbar h1 { margin: 0 0 4px; font-size: clamp(28px, 4vw, 36px); }
.admin-topbar p { margin: 0; color: #61708a; }
.pill { background: rgba(201,164,73,.18); color: #886519; }
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 22px; }
.kpi-card { padding: 22px; }
.kpi-card span { display: block; color: #62718c; font-weight: 700; margin-bottom: 10px; }
.kpi-card strong { font-size: 30px; color: var(--primary); }
.admin-grid-two { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-bottom: 18px; }
.card-header-inline { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.card-header-inline h2 { margin: 0; font-size: 22px; }
.timeline-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.timeline-step { padding: 16px; border-radius: 16px; background: #f6f8fd; }
.timeline-step strong { display: inline-flex; width: 34px; height: 34px; align-items: center; justify-content: center; border-radius: 999px; background: var(--primary); color: #fff; margin-bottom: 10px; }
.timeline-step span { display: block; color: #495775; font-weight: 700; }
.quick-links { display: grid; gap: 12px; }
.quick-links a { padding: 16px; border-radius: 16px; background: #f6f8fd; font-weight: 700; color: var(--primary); }
.table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th, .admin-table td { padding: 14px 12px; text-align: left; border-bottom: 1px solid #edf1f7; vertical-align: top; }
.admin-table th { color: #60708b; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }
.badge-success { background: #e7f7ee; color: #196a3b; }
.badge-warning { background: #fff3d9; color: #8f6516; }
.badge-danger { background: #fdeeee; color: #8d1b1b; }
.badge-info { background: #e9f0ff; color: #264b9b; }
.badge-neutral { background: #edf1f7; color: #48546a; }
.actions-cell { display: flex; gap: 10px; flex-wrap: wrap; }
.actions-cell a, .actions-cell button { border: 0; background: none; padding: 0; color: var(--primary); cursor: pointer; font: inherit; font-weight: 700; }
.form-grid-admin { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.col-span-2 { grid-column: span 2; }
.form-actions { display: flex; justify-content: flex-end; gap: 12px; }
.checkbox-inline { display: flex; align-items: center; gap: 10px; }
.checkbox-inline input { width: auto; }
@media (max-width: 1080px) {
  .cards-grid, .feature-grid, .kpi-grid, .detail-specs, .timeline-grid { grid-template-columns: repeat(2, 1fr); }
  .two-col, .property-detail-grid, .admin-grid-two, .footer-grid, .admin-shell { grid-template-columns: 1fr; }
  .admin-sidebar { padding-bottom: 12px; }
}
@media (max-width: 760px) {
  .site-nav { display: none; }
  .search-grid, .cards-grid, .feature-grid, .detail-specs, .kpi-grid, .timeline-grid, .form-grid-admin { grid-template-columns: 1fr; }
  .col-span-2 { grid-column: span 1; }
  .container { width: min(100% - 22px, 1180px); }
  .admin-main { padding: 18px; }
  .admin-topbar, .card-header-inline, .form-actions { flex-direction: column; align-items: stretch; }
}
