:root {
  --bg: #ffffff;
  --paper: #f6f8fb;
  --paper-strong: #eef3f8;
  --text: #18202a;
  --muted: #5f6b7a;
  --line: #dfe6ee;
  --accent: #0b4f8a;
  --accent-strong: #07355f;
  --accent-soft: #e8f2fb;
  --ok: #1c7c54;
  --warn: #9a6200;
  --danger: #9c2b2b;
  --shadow: 0 18px 48px rgba(20, 34, 52, 0.12);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: Arial, "Helvetica Neue", sans-serif;
  line-height: 1.55;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  min-height: 72px;
}

.brand {
  display: grid;
  gap: 1px;
}

.brand-name {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-note {
  color: var(--muted);
  font-size: 13px;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: 18px;
  font-size: 14px;
  color: #344154;
}

.main-nav a {
  padding: 8px 0;
  border-bottom: 2px solid transparent;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--accent);
  border-color: var(--accent);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-toggle,
.nav-toggle-label {
  display: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 17px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
  white-space: nowrap;
}

.btn:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
}

.btn-dark {
  background: #17202b;
  border-color: #17202b;
  color: #fff;
}

.btn-soft {
  background: var(--accent-soft);
  border-color: #cfe2f3;
  color: var(--accent-strong);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero {
  position: relative;
  overflow: hidden;
  background: #111a24;
  color: #fff;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(12, 20, 30, 0.92), rgba(12, 20, 30, 0.7) 46%, rgba(12, 20, 30, 0.22));
}

.hero-inner {
  position: relative;
  z-index: 1;
  min-height: calc(100vh - 72px);
  display: grid;
  align-content: center;
  gap: 24px;
  padding: 76px 0 112px;
}

.hero-content {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 14px;
  color: #c9d8e8;
  font-size: 15px;
  font-weight: 700;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: 52px;
  line-height: 1.05;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: 34px;
  line-height: 1.16;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 21px;
  line-height: 1.25;
  letter-spacing: 0;
}

.lead {
  color: var(--muted);
  font-size: 19px;
  max-width: 780px;
}

.hero .lead {
  color: #ecf4fb;
  font-size: 20px;
}

.hero-strip {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 18px 0;
  background: rgba(255, 255, 255, 0.93);
  color: var(--text);
  border-top: 1px solid rgba(255, 255, 255, 0.4);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.metric {
  display: grid;
  gap: 2px;
}

.metric strong {
  color: var(--accent-strong);
  font-size: 19px;
}

.metric span {
  color: var(--muted);
  font-size: 13px;
}

.section {
  padding: 82px 0;
}

.section-muted {
  background: var(--paper);
}

.section-tight {
  padding: 54px 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}

.section-head p {
  margin-bottom: 0;
}

.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: 18px;
}

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

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

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

.panel,
.card,
.property-card,
.form-card,
.review-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.panel,
.card,
.form-card,
.review-card {
  padding: 24px;
}

.panel-strong {
  background: #17202b;
  color: #fff;
  border-color: #17202b;
}

.panel-strong .lead,
.panel-strong p,
.panel-strong li {
  color: #dce7f0;
}

.feature-list,
.plain-list,
.check-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-list li,
.check-list li {
  position: relative;
  padding-left: 22px;
  margin: 10px 0;
}

.feature-list li::before,
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.plain-list li {
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.plain-list li:last-child {
  border-bottom: 0;
}

.property-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.property-card {
  overflow: hidden;
  min-width: 0;
}

.property-image {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--paper-strong);
}

.property-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 18px;
  color: var(--muted);
  text-align: center;
  background: repeating-linear-gradient(135deg, #eef3f8, #eef3f8 12px, #e5ecf4 12px, #e5ecf4 24px);
}

.property-body {
  padding: 18px;
}

.property-title {
  margin-bottom: 8px;
  font-size: 20px;
  line-height: 1.25;
}

.property-meta,
.property-details,
.small-meta {
  color: var(--muted);
  font-size: 14px;
}

.property-price {
  margin: 14px 0;
  font-size: 24px;
  font-weight: 800;
  color: var(--accent-strong);
}

.property-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0;
}

.fact {
  padding: 10px;
  border-radius: 6px;
  background: var(--paper);
  font-size: 14px;
}

.fact span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 4px 9px;
  border-radius: 999px;
  color: var(--accent-strong);
  background: var(--accent-soft);
  font-size: 13px;
  font-weight: 700;
}

.status-reserved {
  color: var(--warn);
  background: #fff4dc;
}

.status-rented {
  color: var(--danger);
  background: #fdecec;
}

.catalog-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 24px;
  align-items: start;
}

.filters {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.field,
.form-row {
  display: grid;
  gap: 7px;
}

label {
  color: #334052;
  font-size: 14px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #ccd6e1;
  border-radius: 6px;
  background: #fff;
  color: var(--text);
}

textarea {
  min-height: 108px;
  resize: vertical;
}

input[type="checkbox"] {
  width: 18px;
  min-height: 18px;
}

.check-field {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 32px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.form-grid .full {
  grid-column: 1 / -1;
}

.hidden-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.form-status {
  margin: 12px 0 0;
  color: var(--accent-strong);
  font-weight: 700;
}

.page-hero {
  padding: 72px 0 46px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.page-hero .container {
  display: grid;
  gap: 16px;
}

.breadcrumbs {
  color: var(--muted);
  font-size: 14px;
}

.breadcrumbs a {
  color: var(--accent);
}

.gallery {
  display: grid;
  gap: 12px;
}

.gallery-main {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--paper-strong);
}

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

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

.gallery-thumb {
  padding: 0;
  border: 2px solid transparent;
  border-radius: 6px;
  background: none;
  cursor: pointer;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

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

.detail-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 28px;
  align-items: start;
}

.sticky-side {
  position: sticky;
  top: 92px;
}

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

.info-cell {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.info-cell span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.review-source {
  color: var(--muted);
  font-size: 14px;
}

.review-quote {
  margin-bottom: 12px;
  color: var(--accent-strong);
  font-size: 21px;
  font-weight: 800;
}

.contact-band {
  background: #17202b;
  color: #fff;
}

.contact-band .lead,
.contact-band p,
.contact-band a {
  color: #edf5fb;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: start;
}

.footer {
  padding: 34px 0;
  color: #d4dde8;
  background: #111820;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer a {
  color: #fff;
}

.admin-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  align-items: start;
}

.admin-nav {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.admin-table th,
.admin-table td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.notice {
  padding: 15px 17px;
  border: 1px solid #cfe2f3;
  border-radius: var(--radius);
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.empty-state {
  padding: 28px;
  border: 1px dashed #b8c7d6;
  border-radius: var(--radius);
  background: #fff;
}

@media (max-width: 1040px) {
  .header-inner {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .nav-toggle-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--accent-strong);
    font-weight: 800;
    cursor: pointer;
  }

  .main-nav,
  .header-actions {
    display: none;
  }

  .nav-toggle:checked ~ .main-nav,
  .nav-toggle:checked ~ .header-actions {
    display: flex;
    grid-column: 1 / -1;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

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

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

  .catalog-layout,
  .detail-layout,
  .contact-grid,
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .filters,
  .sticky-side,
  .admin-nav {
    position: static;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

  .hero-inner {
    min-height: 720px;
    padding: 56px 0 214px;
  }

  .hero::after {
    background: linear-gradient(180deg, rgba(12, 20, 30, 0.9), rgba(12, 20, 30, 0.72));
  }

  h1 {
    font-size: 38px;
  }

  h2 {
    font-size: 28px;
  }

  .lead,
  .hero .lead {
    font-size: 17px;
  }

  .section {
    padding: 56px 0;
  }

  .section-head {
    display: grid;
  }

  .metric-grid,
  .grid-2,
  .grid-3,
  .grid-4,
  .property-grid,
  .form-grid,
  .info-table {
    grid-template-columns: 1fr;
  }

  .hero-strip {
    padding: 14px 0;
  }

  .btn {
    width: 100%;
  }

  .btn-row {
    width: 100%;
  }

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