*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:            #ffffff;
  --surface:       #f4f3f0;
  --surface-2:     #eae9e4;
  --border:        #d6d4cd;
  --border-strong: #aeada5;
  --text:          #1a2332;
  --text-dim:      #4a5568;
  --text-mute:     #5a6675;
  --accent:        #1d6a44;
  --accent-text:   #1d6a44;
  --accent-hover:  #14523a;
  --accent-soft:   rgba(29,106,68,.08);
  --accent-border: rgba(29,106,68,.22);
  --radius-sm:  4px;
  --radius-md:  6px;
  --radius-lg:  10px;
  --radius-xl:  14px;
  --radius-pill:999px;
}

/* ── Dark theme ── */
[data-theme="dark"] {
  --bg:            #0e0e0f;
  --surface:       #161618;
  --surface-2:     #1c1c1f;
  --border:        #26262a;
  --border-strong: #34343a;
  --text:          #eeeae4;
  --text-dim:      #a6a29c;
  --text-mute:     #8a857e;
  --accent:        #217a4b;
  --accent-text:   #63cf97;
  --accent-hover:  #2c8f5c;
  --accent-soft:   rgba(46,158,102,.12);
  --accent-border: rgba(46,158,102,.35);
}

[data-theme="dark"] .nav {
  background: rgba(14,14,15,.88);
  backdrop-filter: blur(12px);
  border-bottom-color: #26262a;
}

[data-theme="dark"] footer { background: #1c1c1f; border-top-color: #26262a; }
[data-theme="dark"] .service-card { background: #161618; border-color: #26262a; }
[data-theme="dark"] .rental-card { background: #161618; border-color: #26262a; }
[data-theme="dark"] .app-card { background: #161618; border-color: #26262a; }
[data-theme="dark"] .app-card img { box-shadow: 0 4px 20px rgba(0,0,0,.5); }
[data-theme="dark"] .amenities { background: #161618; border-color: #26262a; }
[data-theme="dark"] .map { border-color: #26262a; }
[data-theme="dark"] .house-rules { background: #161618; border-top-color: #26262a; }
[data-theme="dark"] .rules-grid div { background: #1c1c1f; border-color: #26262a; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

/* In-content links are underlined so they are distinguishable from body text
   without relying on color alone (WCAG 1.4.1). */
.content p a, .content li a { text-decoration: underline; }

/* ── Skip link ── */
.skip-link {
  position: absolute; top: -100%; left: 16px;
  background: var(--accent); color: #fff;
  padding: 8px 16px; border-radius: var(--radius-md);
  font-size: 14px; font-weight: 600; z-index: 1000;
}
.skip-link:focus { top: 16px; }

/* ── Nav ── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: #ffffff;
  border-bottom: 2px solid var(--border);
}
.nav-inner {
  max-width: 1120px; margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Lora', Georgia, serif;
  font-weight: 700; font-size: 18px; letter-spacing: -0.01em;
  color: var(--text);
}
.nav-brand .logo {
  width: 30px; height: 30px; border-radius: 6px;
  object-fit: contain; margin-bottom: 0;
}
.nav-links {
  display: flex; align-items: center; gap: 24px;
  list-style: none;
}
.nav-links a {
  font-size: 14px; color: var(--text-dim);
  transition: color .15s;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--accent-text); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-dim);
  width: 32px; height: 32px;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 16px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: border-color .15s, color .15s;
  flex-shrink: 0;
}
.theme-toggle:hover { border-color: var(--accent-text); color: var(--accent-text); }

/* ── Footer ── */
footer {
  border-top: 2px solid var(--border);
  padding: 32px 0;
  background: var(--surface-2);
  margin-top: auto;
}
.footer-inner {
  max-width: 1120px; margin: 0 auto;
  padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
}
.footer-brand {
  font-size: 14px; font-weight: 600; color: var(--text-dim);
  display: inline-flex; align-items: center;
}
.footer-brand a { color: var(--accent-text); transition: color .15s; }
.footer-brand a:hover { color: var(--accent-hover); text-decoration: underline; }
.footer-links { display: flex; gap: 24px; list-style: none; }
.footer-links a { font-size: 13px; color: var(--text-mute); transition: color .15s; }
.footer-links a:hover { color: var(--accent-text); text-decoration: underline; }

/* ── Content Areas ── */
.content {
  padding: 48px 24px 64px;
  max-width: 960px;
  margin: 0 auto;
  flex-grow: 1;
  width: 100%;
}
.main-content {
  display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  flex-grow: 1;
  padding: 48px 24px 64px;
  text-align: center;
  max-width: 960px;
  margin: 0 auto;
  width: 100%;
}
.page-intro {
  max-width: 960px;
  margin: 0 auto;
  padding: 48px 24px 32px;
}

/* ── Typography ── */
h1 {
  font-family: 'Lora', Georgia, serif;
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 24px;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
h2 {
  font-family: 'Lora', Georgia, serif;
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 600;
  color: var(--text);
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}
h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-top: 20px;
  margin-bottom: 8px;
}
p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-dim);
  margin-bottom: 18px;
}
p:last-child { margin-bottom: 0; }

.content p a,
.main-content p a,
.page-intro p a {
  color: var(--accent-text);
  transition: color .15s;
}
.content p a:hover,
.main-content p a:hover,
.page-intro p a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

/* ── Buttons ── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: #fff;
  font-size: 14px; font-weight: 700;
  padding: 12px 22px; border-radius: var(--radius-md);
  transition: background .15s;
}
.btn-primary:hover { background: var(--accent-hover); }

/* ── Logo (large home logo) ── */
.logo {
  max-width: 450px;
  height: auto;
  margin-bottom: 30px;
  border-radius: 0;
  box-shadow: none;
}

/* ── Services Grid ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
  margin-top: 36px;
  text-align: left;
}
.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color .2s, box-shadow .2s;
}
.service-card:hover {
  border-color: var(--accent-text);
  box-shadow: 0 4px 16px var(--accent-soft);
}
.service-icon { font-size: 2.5rem; margin-bottom: 14px; }
.service-card h2 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}
.service-card p { font-size: 15px; margin-bottom: 12px; }
.app-list {
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  padding: 14px 16px;
  border-radius: var(--radius-md);
  margin: 12px 0;
}
.app-list p { margin-bottom: 8px; font-weight: 600; color: var(--text); font-size: 14px; }
.app-list ul { list-style: none; padding: 0; margin: 0; }
.app-list li { padding: 5px 0; color: var(--text-dim); font-size: 14px; }
.service-btn {
  display: inline-block;
  background: var(--accent); color: white;
  padding: 10px 20px; border-radius: var(--radius-md);
  font-weight: 600; font-size: 14px;
  transition: background .15s;
}
.service-btn:hover { background: var(--accent-hover); }

/* ── Rentals Grid ── */
.rentals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
  margin-top: 36px;
  text-align: left;
}
.rental-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}
.rental-card:hover {
  border-color: var(--accent-text);
  box-shadow: 0 4px 16px var(--accent-soft);
}
.rental-image { width: 100%; height: 250px; overflow: hidden; background: var(--surface-2); }
.rental-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rental-info { padding: 20px; }
.rental-info h3 { font-size: 1.25rem; color: var(--text); margin-bottom: 6px; margin-top: 0; }
.rental-details { font-size: 13px; color: var(--text-mute); font-weight: 500; margin-bottom: 10px; }
.rental-description { font-size: 15px; color: var(--text-dim); line-height: 1.55; margin-bottom: 14px; }
.rental-btn {
  display: inline-block;
  background: var(--accent); color: white;
  padding: 10px 20px; border-radius: var(--radius-md);
  font-weight: 600; font-size: 14px;
  transition: background .15s;
}
.rental-btn:hover { background: var(--accent-hover); }

/* ── Booking Buttons ── */
.booking-buttons {
  margin: 32px 24px;
  text-align: center;
  display: flex; gap: 12px;
  justify-content: center; flex-wrap: wrap;
}
.booking-buttons a {
  display: inline-block;
  padding: 12px 28px;
  background: var(--accent); color: white;
  border-radius: var(--radius-md);
  font-size: 15px; font-weight: 600;
  transition: background .15s;
}
.booking-buttons a:hover { background: var(--accent-hover); }

/* ── Apps Grid ── */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 36px;
}
.app-card {
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  padding: 32px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  color: var(--text);
  transition: border-color .2s, box-shadow .2s;
}
.app-card:hover {
  border-color: var(--accent-text);
  box-shadow: 0 4px 16px var(--accent-soft);
  color: var(--text);
}
.app-card img {
  width: 110px; height: 110px;
  border-radius: 24px;
  box-shadow: 0 4px 16px rgba(0,0,0,.14);
  margin-bottom: 18px;
  object-fit: cover;
}
.app-card h2 { font-size: 1.35rem; margin-bottom: 8px; color: var(--text); }
.app-card p { font-size: 14px; color: var(--text-dim); margin-bottom: 16px; line-height: 1.55; }
.app-card .app-cta {
  display: inline-block;
  padding: 9px 20px;
  background: var(--accent); color: white;
  border-radius: var(--radius-md);
  font-weight: 600; font-size: 13px;
  transition: background .15s;
}
.app-card:hover .app-cta { background: var(--accent-hover); }

/* ── Airbnb Two-Column Layout ── */
.airbnb-container {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 28px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 48px;
}
.airbnb-left-column { display: flex; flex-direction: column; gap: 24px; }
.airbnb-right-column { display: flex; flex-direction: column; }

/* ── Gallery ── */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.gallery img {
  width: 100%; height: 220px;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
  transition: transform .2s, box-shadow .2s;
  cursor: pointer;
}
.gallery img:hover { transform: translateY(-3px); box-shadow: 0 6px 16px rgba(0,0,0,.18); }
.gallery img:first-child { grid-column: 1 / -1; height: 300px; }

/* ── Lightbox ── */
.lightbox {
  display: none;
  position: fixed; z-index: 9999;
  top: 0; left: 0; width: 100%; height: 100%;
  background-color: rgba(0,0,0,.9);
  justify-content: center; align-items: center;
}
.lightbox.active { display: flex; }
.lightbox img { max-width: 90%; max-height: 90%; object-fit: contain; border-radius: 8px; }
.lightbox-close {
  position: absolute; top: 28px; right: 36px;
  font-size: 36px; color: white; cursor: pointer;
  background: none; border: none; opacity: .8;
  transition: opacity .2s;
}
.lightbox-close:hover { opacity: 1; }
.lightbox-prev, .lightbox-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  font-size: 36px; color: white; cursor: pointer;
  background: rgba(0,0,0,.4); border: none;
  padding: 18px; border-radius: 4px;
  transition: background .2s;
}
.lightbox-prev:hover, .lightbox-next:hover { background: rgba(0,0,0,.7); }
.lightbox-prev { left: 28px; }
.lightbox-next { right: 28px; }

/* ── Amenities ── */
.amenities {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.amenities h2 { font-size: 1.5rem; margin-bottom: 20px; }
.amenities-grid { display: flex; flex-direction: column; gap: 20px; }
.amenities h3 {
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  margin-top: 0; margin-bottom: 10px;
  color: var(--accent-text);
  border-bottom: 1px solid var(--border);
  padding-bottom: 6px;
}
.amenities ul { list-style: none; padding: 0; }
.amenities ul li {
  font-size: 14px; margin-bottom: 6px;
  padding-left: 22px; position: relative;
  color: var(--text-dim);
}
.amenities ul li:before { content: "✓"; position: absolute; left: 0; color: var(--accent-text); font-weight: bold; }

/* ── Map ── */
.map { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); }
.map iframe { width: 100%; height: 380px; border: 0; display: block; }

/* ── House Rules ── */
.house-rules {
  padding: 40px 24px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  margin-top: 8px;
}
.house-rules .container { max-width: 1100px; margin: 0 auto; }
.house-rules h2 { font-size: 1.5rem; margin-bottom: 24px; text-align: center; }
.rules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.rules-grid div {
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 22px;
  border-radius: var(--radius-md);
}
.house-rules h3 {
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  margin-top: 0; margin-bottom: 12px;
  color: var(--accent-text);
  border-bottom: 1px solid var(--border);
  padding-bottom: 6px;
}
.house-rules ul { list-style: none; padding: 0; }
.house-rules ul li {
  font-size: 14px; margin-bottom: 7px;
  padding-left: 18px; position: relative;
  color: var(--text-dim);
}
.house-rules ul li:before { content: "•"; position: absolute; left: 0; color: var(--accent-text); }

/* ── Error Pages ── */
.error-page {
  flex: 1;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  padding: 80px 24px;
}
.error-code {
  font-family: 'Lora', Georgia, serif;
  font-size: clamp(80px, 15vw, 140px);
  font-weight: 700;
  letter-spacing: -0.05em;
  color: var(--border-strong);
  line-height: 1;
  margin-bottom: 20px;
}
.error-title {
  font-family: 'Lora', Georgia, serif;
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  color: var(--text);
}
.error-sub {
  font-size: 16px; color: var(--text-dim);
  max-width: 380px; margin: 0 auto 32px;
  line-height: 1.65;
}

/* ── Animations ── */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Accessibility: keyboard focus + reduced motion ── */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}
:focus:not(:focus-visible) { outline: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ── Tablet (768px) ── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .footer-inner { justify-content: center; text-align: center; }
  .footer-links { justify-content: center; }
  footer { padding: 24px 0; }

  h1 { font-size: clamp(24px, 5vw, 36px); margin-bottom: 18px; }
  h2 { font-size: clamp(18px, 3vw, 24px); }
  p { font-size: 15px; }

  .content { padding: 32px 20px 48px; }
  .main-content { padding: 32px 20px 48px; }
  .page-intro { padding: 32px 20px 24px; }

  .services-grid { grid-template-columns: 1fr; gap: 16px; margin-top: 28px; }
  .service-card { padding: 20px; }
  .service-icon { font-size: 2rem; }

  .rentals-grid { grid-template-columns: 1fr; gap: 16px; margin-top: 28px; }
  .rental-image { height: 200px; }

  .airbnb-container { grid-template-columns: 1fr; padding: 0 16px 40px; }
  .airbnb-left-column { order: 2; }
  .airbnb-right-column { order: 1; }

  .gallery { grid-template-columns: 1fr; gap: 10px; }
  .gallery img { height: 180px; }
  .gallery img:first-child { height: 220px; }

  .amenities { padding: 18px; }
  .map iframe { height: 280px; }

  .house-rules { padding: 32px 20px; }
  .rules-grid { grid-template-columns: 1fr; }

  .apps-grid { gap: 16px; margin-top: 28px; }
  .app-card { padding: 24px 20px; }
  .app-card img { width: 90px; height: 90px; border-radius: 20px; margin-bottom: 14px; }
  .app-card h2 { font-size: 1.2rem; }

  .booking-buttons { flex-direction: column; align-items: center; margin: 24px 20px; }

  .error-page { padding: 60px 20px; }
}

/* ── Mobile (480px) ── */
@media (max-width: 480px) {
  .nav-inner { padding: 0 16px; height: 52px; }
  .nav-brand { font-size: 15px; gap: 8px; }
  .nav-brand .logo { width: 26px; height: 26px; }

  .content { padding: 24px 16px 40px; }
  .main-content { padding: 24px 16px 40px; }
  .page-intro { padding: 24px 16px 20px; }

  h1 { font-size: clamp(22px, 4vw, 32px); margin-bottom: 14px; }
  h2 { font-size: clamp(16px, 2.5vw, 22px); }
  p { font-size: 14px; line-height: 1.6; }

  .logo { max-width: 80%; margin-bottom: 20px; }

  footer { padding: 18px 16px; }
  .footer-links { gap: 16px; }
  .footer-links a { font-size: 12px; }

  .booking-buttons a { width: 100%; text-align: center; }

  .lightbox-close { top: 12px; right: 12px; font-size: 28px; }
  .lightbox-prev, .lightbox-next { font-size: 28px; padding: 12px; }
  .lightbox-prev { left: 6px; }
  .lightbox-next { right: 6px; }

  .map iframe { height: 240px; }

  .apps-grid { gap: 12px; }
  .app-card { padding: 20px 14px; }
  .app-card img { width: 80px; height: 80px; border-radius: 18px; margin-bottom: 12px; }
  .app-card h2 { font-size: 1.1rem; margin-bottom: 6px; }
  .app-card p { font-size: 13px; }

  .error-page { padding: 48px 16px; }
}
