@import url("https://fonts.googleapis.com/css2?family=Sansation:wght@300;400;700&display=swap");

:root {
  --navy: #002f6c;
  --navy-deep: #001b3d;
  --sand: #f4efe8;
  --ink: #1c2331;
  --muted: #667085;
  --line: rgba(255, 255, 255, 0.14);
  --card-line: rgba(0, 47, 108, 0.08);
  --glass: rgba(7, 16, 32, 0.42);
  --shadow: 0 24px 60px rgba(3, 13, 28, 0.18);
  --radius: 22px;
  --container: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Sansation", Arial, sans-serif;
  color: var(--ink);
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(3, 9, 19, 0.22) 0%, rgba(3, 9, 19, 0.46) 100%),
    var(--page-bg-image, url("background/default-morning.jpg")) center/cover fixed no-repeat;
}

body[data-time-slot="morning"] {
  background-image:
    linear-gradient(180deg, rgba(8, 22, 44, 0.16) 0%, rgba(8, 22, 44, 0.34) 100%),
    var(--page-bg-image, url("background/default-morning.jpg"));
}

body[data-time-slot="midday"] {
  background-image:
    linear-gradient(180deg, rgba(7, 17, 31, 0.1) 0%, rgba(7, 17, 31, 0.26) 100%),
    var(--page-bg-image, url("background/default-midday.jpg"));
}

body[data-time-slot="evening"] {
  background-image:
    linear-gradient(180deg, rgba(3, 9, 19, 0.28) 0%, rgba(3, 9, 19, 0.58) 100%),
    var(--page-bg-image, url("background/default-evening.jpg"));
}

body[data-page="home"] {
  height: 100vh;
  overflow: hidden;
}

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

a {
  color: inherit;
}

.hero-shell {
  position: relative;
  min-height: 100vh;
  background: transparent;
  overflow: hidden;
}

.hero-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(4, 11, 24, 0.18) 0%, rgba(4, 11, 24, 0.34) 100%);
}

.hero-shell.compact {
  min-height: 100vh;
}

.hero-shell.compact.content-only-shell {
  min-height: 0;
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(6, 13, 26, 0.28);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.nav-inner {
  max-width: var(--container);
  margin: auto;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo img {
  height: 62px;
}

.nav-toggle {
  display: none;
  width: 52px;
  height: 52px;
  border-radius: 18px;
  padding: 0;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.08) 100%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.nav-toggle-lines {
  position: relative;
  width: 20px;
  height: 14px;
}

.nav-toggle-lines span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: #fff;
  transition: transform 0.24s ease, opacity 0.24s ease, top 0.24s ease;
}

.nav-toggle-lines span:nth-child(1) {
  top: 0;
}

.nav-toggle-lines span:nth-child(2) {
  top: 6px;
}

.nav-toggle-lines span:nth-child(3) {
  top: 12px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-lines span:nth-child(1) {
  top: 6px;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-lines span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-lines span:nth-child(3) {
  top: 6px;
  transform: rotate(-45deg);
}

.nav-panel {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 1;
}

.menu {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: flex-end;
}

.menu a {
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.08em;
}

.menu a:hover,
.menu a[aria-current="page"] {
  opacity: 0.78;
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(0, 47, 108, 0.26), transparent 28%),
    rgba(4, 10, 20, 0.62);
  backdrop-filter: blur(12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
  z-index: 980;
}

body.nav-open {
  overflow: hidden;
}

body.nav-open .nav-backdrop {
  opacity: 1;
  pointer-events: auto;
}

.hero-panel,
.page-panel {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  margin: 0 auto;
  padding: 148px 20px 48px;
}

.content-only-shell .page-panel,
.content-only-shell .hero-panel {
  padding: 92px 20px 0;
}

.hero-copy {
  max-width: 820px;
  margin: auto;
  text-align: center;
  color: #fff;
}

.eyebrow {
  margin: 0 0 18px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.72);
}

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

.display-title {
  font-size: clamp(2.6rem, 4vw, 4.8rem);
  line-height: 0.96;
  margin-bottom: 20px;
}

.hero-copy p,
.lead {
  font-size: 18px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.button,
button {
  appearance: none;
  border: none;
  cursor: pointer;
  border-radius: 999px;
  padding: 15px 24px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.button:hover,
button:hover {
  transform: translateY(-1px);
}

.button-primary,
button,
.btn-primary {
  background: linear-gradient(135deg, #0a417f 0%, #002f6c 100%);
  color: #fff;
  box-shadow: 0 16px 32px rgba(0, 47, 108, 0.25);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.spotlight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 42px;
}

.spotlight-card,
.card,
.content-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.spotlight-card {
  padding: 24px;
  text-align: left;
}

.spotlight-card strong {
  color: var(--navy);
  display: block;
  margin-bottom: 10px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.page-shell {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px 64px;
  position: relative;
  z-index: 3;
}

.page-shell-wide {
  max-width: none;
  width: 100%;
  padding-left: 24px;
  padding-right: 24px;
}

.section-card {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 30px;
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

.section-title {
  font-size: clamp(2rem, 3vw, 2.8rem);
  margin-bottom: 10px;
  color: var(--navy-deep);
}

.section-intro {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

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

.card {
  padding: 28px;
}

.hours p {
  margin: 8px 0;
}

form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(0, 47, 108, 0.14);
  background: #fff;
  border-radius: 16px;
  padding: 14px 16px;
  font: inherit;
  color: var(--ink);
}

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

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(0, 47, 108, 0.18);
  border-color: rgba(0, 47, 108, 0.34);
}

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

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

#msg {
  min-height: 24px;
  margin: 4px 0 0;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
  margin-top: 34px;
}

.price {
  font-size: 34px;
  color: var(--navy);
  margin: 14px 0 10px;
  font-weight: 700;
}

.location-box {
  margin-top: 28px;
  background: rgba(255, 255, 255, 0.96);
  border-radius: var(--radius);
  border: 1px solid var(--card-line);
  padding: 26px;
  box-shadow: var(--shadow);
}

.row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(0, 47, 108, 0.08);
}

.row:last-child {
  border-bottom: none;
}

.annonce-toolbar {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 0.9fr;
  gap: 14px;
  margin: 28px 0 18px;
}

.annonce-meta {
  color: #111827;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.annonce-count {
  color: var(--muted);
  margin-bottom: 22px;
}

.annonce-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: 24px;
}

.annonce-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow);
  backdrop-filter: blur(6px);
}

.annonce-visual {
  position: relative;
  min-height: 250px;
  background: linear-gradient(145deg, #dce6f4 0%, #eef3f8 100%);
}

.annonce-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.annonce-badge {
  position: absolute;
  top: 18px;
  left: 18px;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--navy);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.annonce-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  background: rgba(255, 255, 255, 0.1);
}

.annonce-body h3 {
  margin: 0;
  font-size: 24px;
  line-height: 1.1;
  color: var(--navy-deep);
}

.annonce-price {
  font-size: 32px;
  font-weight: 700;
  color: var(--navy);
}

.annonce-excerpt {
  color: var(--muted);
  line-height: 1.65;
}

.annonce-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid rgba(0, 47, 108, 0.08);
}

.annonce-tags span {
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(28, 35, 49, 0.82);
  font-size: 15px;
}

.annonce-tags span + span::before {
  content: "•";
  display: inline-block;
  margin-right: 10px;
}

.annonce-link {
  margin-top: auto;
  display: block;
  text-align: center;
  padding: 16px 18px;
  border-radius: 10px;
  background: rgba(223, 236, 226, 0.62);
  border: 1px solid rgba(202, 219, 206, 0.42);
  color: #2b415c;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.status-note {
  padding: 20px;
  text-align: center;
  background: rgba(255, 255, 255, 0.84);
  border-radius: 18px;
  color: var(--muted);
  backdrop-filter: blur(18px);
}

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

.detail-gallery {
  display: grid;
  gap: 14px;
}

.detail-hero-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 0;
  overflow: hidden;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.08);
}

.detail-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(88px, 1fr));
  gap: 12px;
}

.thumb-button {
  border: 2px solid transparent;
  border-radius: 16px;
  overflow: hidden;
  padding: 0;
  background: #fff;
  cursor: pointer;
}

.thumb-button.active {
  border-color: rgba(0, 47, 108, 0.42);
}

.thumb-button img {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.08);
}

.detail-panel {
  padding: 30px;
  width: 100%;
}

.detail-title {
  margin-bottom: 14px;
  font-size: clamp(2rem, 3vw, 3rem);
  color: var(--navy-deep);
  line-height: 1.02;
}

.detail-price {
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 18px;
}

.energy-badges {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.energy-badge {
  min-width: 0;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(0, 47, 108, 0.08);
  box-shadow: 0 10px 24px rgba(5, 13, 25, 0.08);
}

.energy-label {
  display: block;
  margin-bottom: 10px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #64748b;
}

.energy-grade {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.energy-letter {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
}

.energy-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.energy-copy strong {
  font-size: 15px;
  line-height: 1.2;
  font-weight: 700;
  color: #0f172a;
}

.energy-copy span {
  font-size: 14px;
  color: #475569;
  line-height: 1.35;
}

.energy-badge[data-grade="A"] .energy-letter {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
}

.energy-badge[data-grade="B"] .energy-letter {
  background: linear-gradient(135deg, #65a30d 0%, #4d7c0f 100%);
}

.energy-badge[data-grade="C"] .energy-letter {
  background: linear-gradient(135deg, #84cc16 0%, #65a30d 100%);
}

.energy-badge[data-grade="D"] .energy-letter {
  background: linear-gradient(135deg, #facc15 0%, #eab308 100%);
  color: #1f2937;
}

.energy-badge[data-grade="E"] .energy-letter {
  background: linear-gradient(135deg, #fb923c 0%, #f97316 100%);
}

.energy-badge[data-grade="F"] .energy-letter {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
}

.energy-badge[data-grade="G"] .energy-letter {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.detail-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.meta-card {
  min-width: 0;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(0, 47, 108, 0.08);
  box-shadow: 0 10px 24px rgba(5, 13, 25, 0.08);
}

.meta-label {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #64748b;
}

.meta-value {
  display: block;
  color: #0f172a;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  text-transform: uppercase;
}

.detail-description {
  color: var(--muted);
  line-height: 1.8;
  white-space: pre-wrap;
}

.cta-box {
  margin-top: 26px;
  padding: 24px;
  border-radius: 24px;
  background: linear-gradient(160deg, rgba(0, 47, 108, 0.08) 0%, rgba(212, 228, 242, 0.55) 100%);
}

.cta-box p {
  color: var(--muted);
  line-height: 1.7;
}

.center {
  text-align: center;
}

.home-stage {
  min-height: calc(100vh - 148px);
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  align-items: center;
  gap: 42px;
}

.home-mark {
  position: relative;
  display: flex;
  justify-content: center;
}

.home-mark::before {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.04) 58%, transparent 72%);
  filter: blur(8px);
}

.home-mark img {
  position: relative;
  width: min(380px, 84vw);
  aspect-ratio: 1;
  object-fit: contain;
  filter: drop-shadow(0 24px 44px rgba(0, 0, 0, 0.26));
}

.home-copy-card {
  max-width: 720px;
  margin-left: auto;
  padding: 44px 48px;
  border-radius: 34px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.09) 100%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  text-align: left;
  backdrop-filter: blur(18px);
  box-shadow: 0 30px 80px rgba(5, 13, 25, 0.34);
}

.home-copy-card p {
  margin: 0;
  font-size: clamp(1.1rem, 1.55vw, 1.34rem);
  line-height: 1.95;
}

.page-panel.compact-top {
  padding-bottom: 24px;
}

@media (max-width: 980px) {
  .spotlight-grid,
  .grid-2,
  .home-stage {
    grid-template-columns: 1fr;
  }

  .annonce-toolbar,
  .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .home-mark {
    order: -1;
  }

  .home-copy-card {
    margin: 0 auto;
  }
}

@media (max-width: 720px) {
  .nav-inner {
    position: relative;
    align-items: center;
    flex-direction: row;
  }

  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
    position: relative;
    z-index: 1002;
    transform: translateZ(0);
  }

  .nav-panel {
    position: fixed;
    inset: 0;
    width: 100vw;
    min-height: 100vh;
    padding: 108px 24px 32px;
    border-radius: 0;
    background:
      radial-gradient(circle at top right, rgba(28, 75, 145, 0.24), transparent 26%),
      linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%),
      linear-gradient(180deg, rgba(7, 17, 31, 0.97) 0%, rgba(3, 10, 20, 0.995) 100%);
    border: none;
    box-shadow: none;
    backdrop-filter: blur(28px);
    transform: translateY(-100%);
    transform-origin: top center;
    opacity: 0;
    pointer-events: none;
    overflow: hidden;
    transition: transform 0.34s ease, opacity 0.34s ease;
    z-index: 1001;
  }

  .nav-panel::before {
    content: "";
    position: absolute;
    top: 28px;
    left: 24px;
    right: 24px;
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0));
  }

  .nav-panel::after {
    content: "Navigation";
    position: absolute;
    top: 40px;
    left: 24px;
    color: rgba(255, 255, 255, 0.66);
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
  }

  body.nav-open .nav-panel {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .menu {
    width: 100%;
    gap: 14px;
    flex-direction: column;
    align-items: stretch;
    counter-reset: nav-items;
    max-width: 520px;
    margin: 0 auto;
    padding-top: 18px;
  }

  .hero-panel,
  .page-panel {
    padding-top: 170px;
  }

  .content-only-shell .page-panel,
  .content-only-shell .hero-panel {
    padding-top: 86px;
    padding-bottom: 0;
  }

  .annonce-toolbar,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .section-card,
  .card,
  .detail-panel {
    padding: 22px;
  }

  .page-shell-wide {
    padding-left: 16px;
    padding-right: 16px;
  }

  .detail-hero-image {
    aspect-ratio: 16 / 9;
  }

  .row {
    flex-direction: column;
  }

  .home-stage {
    min-height: auto;
    gap: 24px;
  }

  .home-copy-card {
    padding: 28px 22px;
    border-radius: 24px;
  }

  .logo img {
    height: 56px;
  }

  .menu a {
    display: block;
    position: relative;
    padding: 22px 22px 22px 68px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 17px;
    letter-spacing: 0.11em;
    transition: background 0.24s ease, border-color 0.24s ease, transform 0.24s ease;
  }

  .menu a::before {
    counter-increment: nav-items;
    content: "0" counter(nav-items);
    position: absolute;
    top: 50%;
    left: 22px;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.38);
    font-size: 12px;
    letter-spacing: 0.16em;
  }

  .menu a::after {
    content: "";
    position: absolute;
    right: 22px;
    top: 50%;
    width: 12px;
    height: 12px;
    border-top: 1.5px solid rgba(255, 255, 255, 0.44);
    border-right: 1.5px solid rgba(255, 255, 255, 0.44);
    transform: translateY(-50%) rotate(45deg);
  }

  .menu a:hover {
    transform: translateX(2px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
  }

  .menu a[aria-current="page"] {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.14) 0%, rgba(0, 47, 108, 0.24) 100%);
    border-color: rgba(255, 255, 255, 0.18);
    opacity: 1;
  }

  .menu a[aria-current="page"]::before {
    color: rgba(255, 255, 255, 0.74);
  }

  .menu a[aria-current="page"]::after {
    border-color: rgba(255, 255, 255, 0.86);
  }

  .nav-toggle {
    width: 56px;
    height: 56px;
    border-radius: 20px;
  }
}
