:root {
  --bg: #f3f6fb;
  --panel: #ffffff;
  --muted: #61708a;
  --text: #1b2432;
  --line: #e7ebf3;
  --primary: #0f62fe;
  --primary-dark: #0848bb;
  --success: #0b8f55;
  --warning: #d97706;
  --danger: #b91c1c;
  --light: #f5f8fc;
  --shadow: 0 20px 50px rgba(10, 22, 50, .08);
  --radius: 18px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #f9fbfe 0%, #eef3f8 100%);
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.mt-16{margin-top:16px}
.site-header {
  background: rgba(255,255,255,.94);
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(27,36,50,.08);
  box-shadow: 0 10px 30px rgba(27,36,50,.05);
}
.nav { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; gap: 20px; }
.brand img { height: 44px; width: auto; }
.menu { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.menu a { color: var(--text); opacity: .92; font-weight: 600; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 18px; border-radius: 999px; border: 0; cursor: pointer;
  font-weight: 700; transition: .18s ease; text-decoration: none;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-light { background: #fff; color: var(--text) !important; border: 1px solid var(--line); }
.btn-outline { background: transparent; border: 1px solid rgba(27,36,50,.16); color: var(--text); }
.hero {
  background: linear-gradient(180deg, rgba(255,255,255,.90), rgba(255,255,255,.84)), url('../legacy/img/home/index_main.jpg') center/cover no-repeat;
  color: var(--text); padding: 82px 0 90px;
}
.hero-grid-clean { grid-template-columns: 1.15fr .85fr; }
.hero-card-soft { background: rgba(255,255,255,.92); border: 1px solid rgba(27,36,50,.06); }
.feature-list { display:grid; gap:14px; margin-top:14px; }
.feature-item { padding:14px 16px; border-radius:16px; background: var(--light); }
.feature-item strong { display:block; margin-bottom:4px; }
.feature-item span { color: var(--muted); }
.section-soft { background: rgba(255,255,255,.45); }
.hero-grid { display:grid; grid-template-columns: 1.1fr .9fr; gap: 28px; align-items:center; }
.hero h1 { font-size: clamp(38px, 6vw, 66px); line-height: 1.02; margin: 0 0 18px; }
.hero p { font-size: 18px; max-width: 700px; opacity: .96; color: #344256; }
.hero-bullets { margin: 22px 0 0; padding: 0 0 0 24px; max-width: 760px; color: #344256; font-size: 17px; }
.hero-bullets li { margin-bottom: 10px; }
.hero-outro { margin-top: 20px; font-size: 20px; }
.hero-card, .card, .panel {
  background: var(--panel); border-radius: var(--radius); box-shadow: var(--shadow);
}
.hero-card { padding: 24px; color: var(--text); }
.hero-stats { display:grid; grid-template-columns: repeat(2,1fr); gap:12px; margin-top:16px; }
.stat { background: var(--light); border-radius: 14px; padding: 16px; }
.stat strong { display:block; font-size: 28px; }
.section { padding: 62px 0; }
.section-head { display:flex; justify-content:space-between; align-items:end; gap:16px; margin-bottom:24px; }
.section-head h2 { font-size: 34px; margin:0; }
.section-head p { margin:0; color: var(--muted); max-width: 680px; }
.grid-3 { display:grid; grid-template-columns: repeat(3,1fr); gap:20px; }
.grid-2 { display:grid; grid-template-columns: repeat(2,1fr); gap:24px; }
.car-card { overflow:hidden; }
.car-card .img { aspect-ratio: 16/10; overflow:hidden; background:#d8e1eb; }
.car-card .img img { width:100%; height:100%; object-fit:cover; }
.car-card .body { padding:20px; }
.badges { display:flex; gap:8px; flex-wrap:wrap; margin: 10px 0 14px; }
.badge { padding:7px 10px; border-radius:999px; font-size:13px; font-weight:700; background:var(--light); color: var(--muted); }
.badge.success { background:#ddf7e8; color:#0c7a4c; }
.badge.warn { background:#fff2d6; color:#a66300; }
.badge.dark { background:#e7eaf1; color:#39465c; }
.badge.danger, .badge.long, .badge.longterm, .badge.long-term, .badge.long_term,
.badge.red, .badge.occupied-long, .badge.long-occupied {
  background:#fee2e2;
  color:#b91c1c;
  border:1px solid #fecaca;
}
.grid-3 { align-items: stretch; }
.grid-3 > .car-card { min-width: 0; }
.car-card { display:block; width:100%; }
.price-row { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-top:18px; }
.price { font-size:30px; font-weight:800; }
.text-muted { color: var(--muted); }
.why-card, .panel { padding:24px; }
.why-card h3, .panel h3 { margin-top:0; }
.information-list { margin:0; padding:0; list-style:none; display:grid; gap:10px; }
.information-list li { display:flex; justify-content:space-between; gap:12px; padding:12px 0; border-bottom:1px solid var(--line); }
.information-list li:last-child { border-bottom:0; }
.site-footer { background: #ffffff; color: var(--text); padding: 48px 0 18px; margin-top: 56px; border-top:1px solid var(--line); }
.footer-grid { display:grid; grid-template-columns: 1.1fr .9fr .8fr; gap:24px; }
.footer-logo { height: 48px; margin-bottom: 12px; }
.tiny { padding-top: 16px; font-size: 13px; opacity:.72; }
.notice { padding: 14px 16px; border-radius: 14px; font-weight: 600; }
.notice.success { background:#ddf7e8; color:#0c7a4c; }
.notice.error { background:#ffe4e4; color:#8d1919; }
.list-table { width:100%; border-collapse: collapse; font-size: 14px; }
.list-table th, .list-table td { text-align:left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.list-table th { font-size:13px; text-transform: uppercase; letter-spacing:.04em; color: var(--muted); }
.form-grid { display:grid; grid-template-columns: repeat(2,1fr); gap:16px; }
label { display:block; font-size:14px; font-weight:700; margin-bottom:6px; }
input, textarea, select {
  width:100%; padding: 12px 14px; border:1px solid #d4ddea; border-radius: 12px; font: inherit; background:#fff;
}
textarea { min-height: 140px; resize: vertical; }
.actions { display:flex; gap:12px; align-items:center; flex-wrap:wrap; }
.kpis { display:grid; grid-template-columns: repeat(5,1fr); gap:16px; }
.kpi { padding:20px; }
.kpi strong { font-size:32px; display:block; }
.admin-shell { display:grid; grid-template-columns: 250px 1fr; min-height:100vh; }
.admin-nav { background: #ffffff; color: var(--text); padding: 28px 18px; border-right:1px solid var(--line); }
.admin-nav a { display:block; padding:10px 12px; border-radius:12px; color:var(--text); }
.admin-nav a:hover, .admin-nav a.active { background: var(--light); color:var(--text); }
.admin-main { padding: 26px; }
.admin-top { display:flex; justify-content:space-between; align-items:center; gap:16px; margin-bottom:22px; }
.hero-cta { display:flex; gap:12px; flex-wrap:wrap; margin-top:24px; }
.page-head { padding: 40px 0 16px; }
.page-head h1 { margin:0 0 8px; font-size: 44px; }
.filters { display:flex; gap:10px; flex-wrap:wrap; margin-bottom:16px; }
.pill { background: #fff; border:1px solid var(--line); border-radius:999px; padding: 9px 14px; }
.gallery { display:grid; grid-template-columns: repeat(3,1fr); gap:14px; }
.gallery img { width:100%; aspect-ratio: 16/11; object-fit:cover; border-radius:16px; }
.detail-grid { display:grid; grid-template-columns: 1.15fr .85fr; gap:28px; align-items:start; }
.tagline { color: var(--muted); }
.login-box { width:min(460px, calc(100% - 32px)); margin: 80px auto; padding: 28px; }
.empty { padding: 24px; text-align:center; color:var(--muted); background:#fff; border-radius: var(--radius); }
.status-dot { display:inline-block; width:10px; height:10px; border-radius:50%; background:#0c7a4c; margin-right:6px; }
.status-dot.busy { background:#c67800; }
.codebox { font-family: ui-monospace, Menlo, monospace; background: var(--light); padding: 12px 14px; border-radius: 12px; }
@media (max-width: 980px) {
  .hero-grid, .detail-grid, .grid-3, .grid-2, .footer-grid, .admin-shell, .kpis, .form-grid, .gallery { grid-template-columns: 1fr; }
  .menu { display:none; }
  .site-header { position: static; }
}

.hero .badge { background: #fff; color: var(--text); border: 1px solid rgba(27,36,50,.08); }
.gallery-main { aspect-ratio: 16/10; overflow: hidden; border-radius: 22px; background:#d8e1eb; box-shadow: var(--shadow); }
.gallery-main img { width:100%; height:100%; object-fit: cover; }
.gallery-thumbs { display:grid; grid-template-columns: repeat(4,1fr); gap:12px; margin-top:14px; }
.gallery-thumb { border:0; padding:0; border-radius:16px; overflow:hidden; background:#fff; cursor:pointer; box-shadow: var(--shadow); border:2px solid transparent; }
.gallery-thumb.active { border-color: var(--primary); }
.gallery-thumb img { width:100%; aspect-ratio: 16/11; object-fit:cover; }
.gallery-thumb:focus-visible { outline: 3px solid rgba(15,98,254,.25); }
.gallery-note { font-size:13px; color: var(--muted); margin-top:8px; }
.gallery-editor { margin-top:12px; }
.gallery-editor .row { display:grid; grid-template-columns: 1fr auto; gap:10px; margin-bottom:10px; }
.gallery-editor button[type='button'] { white-space: nowrap; }
.gallery-preview { display:grid; grid-template-columns: repeat(3, 1fr); gap:10px; margin-top:12px; }
.gallery-preview img { width:100%; aspect-ratio: 16/11; object-fit:cover; border-radius:14px; border:1px solid var(--line); background:#fff; }
@media (max-width: 980px) { .gallery-thumbs, .gallery-preview { grid-template-columns: repeat(2,1fr); } }

.footer-title{margin:0 0 12px;font-size:1rem;}

.img-link { display:block; }


body.gallery-open { overflow: hidden; }

.gallery-main-button {
  position: relative;
  width: 100%;
  border: 0;
  padding: 0;
  cursor: zoom-in;
  text-align: left;
  background: transparent;
  overflow: hidden;
}

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

.gallery-main-button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,.26) 100%);
  pointer-events: none;
}

.gallery-zoom-hint {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 2;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.94);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(0,0,0,.14);
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
}

.gallery-lightbox.open { display: block; }

.gallery-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 16, 26, .86);
  backdrop-filter: blur(6px);
}

.gallery-lightbox-dialog {
  position: relative;
  z-index: 1;
  width: min(1280px, calc(100% - 32px));
  height: min(92vh, 920px);
  margin: 4vh auto;
  display: grid;
  grid-template-columns: 70px 1fr 70px;
  align-items: center;
}

.gallery-lightbox-figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
}

.gallery-lightbox-figure img {
  max-width: 100%;
  max-height: calc(92vh - 90px);
  width: auto;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 30px 60px rgba(0,0,0,.35);
  background: #111827;
}

.gallery-lightbox-caption {
  width: min(100%, 900px);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: #fff;
  font-size: 14px;
  opacity: .95;
}

.gallery-lightbox-nav,
.gallery-lightbox-close {
  border: 0;
  cursor: pointer;
  color: #fff;
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 30px rgba(0,0,0,.18);
}

.gallery-lightbox-nav {
  width: 54px;
  height: 54px;
  border-radius: 999px;
  font-size: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .15s ease, background .15s ease;
}

.gallery-lightbox-nav:hover,
.gallery-lightbox-close:hover {
  background: rgba(255,255,255,.2);
  transform: translateY(-1px);
}

.gallery-lightbox-close {
  position: absolute;
  top: 0;
  right: 0;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  font-size: 32px;
  line-height: 1;
  z-index: 2;
}

@media (max-width: 980px) {
  .gallery-zoom-hint {
    right: 12px;
    bottom: 12px;
    padding: 8px 12px;
    font-size: 12px;
  }

  .gallery-lightbox-dialog {
    width: calc(100% - 16px);
    height: calc(100vh - 16px);
    margin: 8px auto;
    grid-template-columns: 48px 1fr 48px;
  }

  .gallery-lightbox-nav {
    width: 42px;
    height: 42px;
    font-size: 22px;
  }

  .gallery-lightbox-close {
    top: 8px;
    right: 8px;
    width: 42px;
    height: 42px;
    font-size: 26px;
  }

  .gallery-lightbox-caption {
    width: 100%;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
    font-size: 13px;
  }
}


.services-grid { align-items: start; }
.service-panel h2 { margin-top: 0; margin-bottom: 18px; font-size: 1.35rem; }
.service-list { display: grid; gap: 14px; }
.service-list.compact { gap: 12px; }
.service-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: start;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.service-row:first-child { padding-top: 0; }
.service-row:last-child { border-bottom: 0; padding-bottom: 0; }
.service-price {
  white-space: nowrap;
  font-weight: 800;
  color: var(--text);
}
@media (max-width: 780px) {
  .service-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}


.gallery-preview-single { grid-template-columns: minmax(0, 1fr); margin-top:10px; }
.gallery-preview-item {
  display:block;
  text-decoration:none;
  color:var(--text);
  background:#fff;
  border:1px solid var(--line);
  border-radius:14px;
  overflow:hidden;
  box-shadow: var(--shadow);
}
.gallery-preview-item img {
  width:100%;
  aspect-ratio:16/11;
  object-fit:cover;
  display:block;
  background:#fff;
}
.gallery-preview-item span {
  display:block;
  padding:10px 12px;
  font-size:12px;
  color:var(--muted);
  word-break:break-all;
}


input[type="file"] {
  padding: 10px 12px;
  background: #fff;
  border: 1px dashed #c8d3e2;
}


.custom-request-panel {
  background: linear-gradient(180deg, rgba(15,98,254,.05), rgba(15,98,254,.02));
  border: 1px solid rgba(15,98,254,.12);
}
.custom-request-panel p {
  margin-bottom: 0;
}


.hero-box-cta {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.hero-box-cta p {
  margin: 0 0 12px;
  font-size: 15px;
  color: #344256;
}
.btn-sm {
  padding: 10px 14px;
  font-size: 14px;
}


.sticky-inquiry-btn {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1100;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border: 0;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  box-shadow: 0 18px 40px rgba(15,98,254,.28);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.sticky-inquiry-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}
.sticky-inquiry-btn__dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 0 0 6px rgba(255,255,255,.18);
}
.sticky-inquiry-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
}
.sticky-inquiry-modal.open {
  display: block;
}
.sticky-inquiry-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10,16,26,.56);
  backdrop-filter: blur(4px);
}
.sticky-inquiry-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100% - 24px));
  margin: 5vh auto;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 24px 70px rgba(10,22,50,.18);
  padding: 28px;
  max-height: 90vh;
  overflow: auto;
}
.sticky-inquiry-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: var(--light);
  color: var(--text);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
body.sticky-inquiry-open {
  overflow: hidden;
}
.sticky-inquiry-form textarea {
  min-height: 120px;
}
@media (max-width: 980px) {
  .sticky-inquiry-btn {
    right: 12px;
    bottom: 12px;
    left: 12px;
    justify-content: center;
  }
  .sticky-inquiry-modal__dialog {
    width: calc(100% - 16px);
    margin: 8px auto;
    padding: 22px 18px;
    max-height: calc(100vh - 16px);
  }
}


.badge.custom-badge {
  background:#fee2e2;
  color:#b91c1c;
  border:1px solid #fecaca;
}


.no-top { margin-top: 0; }
.card-title {
  margin: 0 0 10px;
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--text);
}



/* Responsive improvements for tablet + mobile */
html, body {
  overflow-x: hidden;
}

.wrap {
  width: min(1180px, calc(100% - 24px));
}

.hero-card-soft,
.panel,
.card,
.why-card {
  overflow: hidden;
}

.hero-cta,
.actions,
.price-row {
  flex-wrap: wrap;
}

.price-row .btn,
.hero-cta .btn,
.actions .btn {
  max-width: 100%;
}

.gallery-thumbs {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.list-table {
  display: block;
  width: 100%;
  overflow-x: auto;
}

@media (max-width: 1180px) {
  .hero {
    padding: 64px 0 72px;
  }

  .hero-grid,
  .hero-grid-clean {
    grid-template-columns: 1fr;
    gap: 22px;
    align-items: start;
  }

  .hero h1 {
    font-size: clamp(34px, 6vw, 54px);
  }

  .hero-card-soft {
    padding: 22px;
  }

  .detail-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-2,
  .footer-grid,
  .form-grid,
  .kpis {
    grid-template-columns: 1fr;
  }

  .service-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .service-price {
    white-space: normal;
  }
}

@media (max-width: 820px) {
  .site-header {
    position: sticky;
    top: 0;
  }

  .nav {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .brand img {
    height: 40px;
  }

  .menu {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .menu a,
  .menu .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .section {
    padding: 46px 0;
  }

  .section-head {
    align-items: start;
    flex-direction: column;
    gap: 12px;
  }

  .section-head h2 {
    font-size: 28px;
  }

  .page-head h1 {
    font-size: 34px;
    line-height: 1.08;
  }

  .page-head .tagline {
    font-size: 16px;
  }

  .grid-3 {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .car-card .body,
  .panel,
  .why-card {
    padding: 18px;
  }

  .price {
    font-size: 26px;
  }

  .gallery-main {
    aspect-ratio: 16/11;
    border-radius: 18px;
  }

  .gallery-thumbs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .hero-bullets {
    font-size: 16px;
    padding-left: 20px;
  }

  .hero-box-cta .btn,
  .custom-request-panel .btn {
    width: 100%;
  }

  .sticky-inquiry-btn {
    right: 12px;
    left: 12px;
    bottom: 12px;
    justify-content: center;
  }

  .sticky-inquiry-modal__dialog {
    width: calc(100% - 16px);
    margin: 8px auto;
    padding: 22px 16px;
  }
}

@media (max-width: 560px) {
  .wrap {
    width: min(1180px, calc(100% - 16px));
  }

  .menu {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 42px 0 54px;
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero p,
  .hero-outro,
  .text-muted,
  .tagline {
    font-size: 15px;
  }

  .btn {
    padding: 11px 16px;
  }

  .hero-cta .btn,
  .price-row .btn,
  .actions .btn {
    width: 100%;
  }

  .badges {
    gap: 6px;
  }

  .badge {
    font-size: 12px;
    padding: 6px 9px;
  }

  .price {
    font-size: 24px;
  }

  .gallery-lightbox-dialog {
    grid-template-columns: 40px 1fr 40px;
  }

  .gallery-lightbox-nav {
    width: 38px;
    height: 38px;
    font-size: 20px;
  }

  .gallery-lightbox-close {
    width: 38px;
    height: 38px;
    font-size: 24px;
  }

  .card-title {
    font-size: 1.1rem;
  }

  .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-nav {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .admin-nav a {
    text-align: center;
  }

  .admin-main {
    padding: 16px;
  }

  input,
  select,
  textarea {
    font-size: 16px;
  }
}


.home-seo-panel {
  max-width: 980px;
  margin: 0 auto;
}

.admin-main h1{margin-bottom:16px}
