/* ==========================================================================
   ADDOMU — design tokens (ported 1:1 from the original src/styles.css)
   ========================================================================== */
:root {
  --radius: 0.875rem;
  --background: oklch(0.987 0.005 95);
  --foreground: oklch(0.235 0.018 160);
  --card: oklch(1 0 0);
  --card-foreground: oklch(0.235 0.018 160);
  --primary: oklch(0.265 0.026 165);
  --primary-foreground: oklch(0.985 0.006 95);
  --secondary: oklch(0.955 0.011 90);
  --secondary-foreground: oklch(0.265 0.026 165);
  --muted: oklch(0.955 0.011 90);
  --muted-foreground: oklch(0.52 0.015 140);
  --accent: oklch(0.645 0.128 48);
  --accent-foreground: oklch(0.99 0.005 95);
  --destructive: oklch(0.577 0.245 27.325);
  --destructive-foreground: oklch(0.985 0.003 95);
  --border: oklch(0.905 0.011 90);
  --input: oklch(0.905 0.011 90);
  --ring: oklch(0.645 0.128 48);
  --sand: oklch(0.955 0.017 82);
  --ink: oklch(0.235 0.022 165);
  --ink-foreground: oklch(0.975 0.007 95);
  --sidebar: oklch(0.235 0.022 165);
  --sidebar-foreground: oklch(0.95 0.007 95);
  --sidebar-accent: oklch(0.3 0.024 165);
  --sidebar-accent-foreground: oklch(0.97 0.007 95);
  --sidebar-border: oklch(0.32 0.02 165);
  --shadow-soft: 0 1px 2px oklch(0.235 0.022 165 / 0.04), 0 12px 32px -12px oklch(0.235 0.022 165 / 0.12);
  --shadow-lift: 0 2px 4px oklch(0.235 0.022 165 / 0.05), 0 24px 48px -18px oklch(0.235 0.022 165 / 0.2);
  --gradient-ink: linear-gradient(160deg, oklch(0.26 0.024 165), oklch(0.2 0.02 168));
  --font-display: "Sora", ui-sans-serif, system-ui, sans-serif;
  --font-sans: "Manrope", ui-sans-serif, system-ui, sans-serif;
}

/* ==========================================================================
   Reset / base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  margin: 0;
  font-weight: 600;
}
p { margin: 0; }
button { font-family: inherit; }

.container-page { margin-inline: auto; width: 100%; max-width: 78rem; padding-inline: 1.25rem; }
.eyebrow { font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600; color: var(--muted-foreground); }
.shadow-soft { box-shadow: var(--shadow-soft); }
.shadow-lift { box-shadow: var(--shadow-lift); }
.bg-gradient-ink { background-image: var(--gradient-ink); }
.text-muted { color: var(--muted-foreground); }
.text-accent { color: var(--accent); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

@keyframes rise-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.animate-rise { animation: rise-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) both; }

/* ==========================================================================
   Layout helpers
   ========================================================================== */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.text-center { text-align: center; }

@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4, .grid-5 { grid-template-columns: 1fr; }
}
@media (min-width: 640px) and (max-width: 1023px) {
  .sm-grid-2 { grid-template-columns: repeat(2, 1fr) !important; }
}

/* ==========================================================================
   Buttons (ports buttonVariants from components/ui/button.tsx)
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  white-space: nowrap; border-radius: 0.5rem; font-size: 0.875rem; font-weight: 500;
  cursor: pointer; transition: color .15s, background-color .15s, filter .15s;
  border: 1px solid transparent; padding: 0.5rem 1rem; height: 2.25rem; line-height: 1;
}
.btn:disabled { opacity: .5; pointer-events: none; }
.btn-brand { background: var(--accent); color: var(--accent-foreground); box-shadow: var(--shadow-soft); }
.btn-brand:hover { filter: brightness(1.05); }
.btn-outline { background: var(--background); border-color: var(--input); box-shadow: var(--shadow-soft); }
.btn-outline:hover { background: var(--accent); color: var(--accent-foreground); }
.btn-ghost { background: transparent; }
.btn-ghost:hover { background: var(--secondary); }
.btn-on-ink { background: transparent; border-color: color-mix(in oklch, var(--ink-foreground) 25%, transparent); color: var(--ink-foreground); }
.btn-on-ink:hover { background: color-mix(in oklch, var(--ink-foreground) 10%, transparent); }
.btn-lg { height: 2.75rem; border-radius: 999px; padding-inline: 1.75rem; font-size: 0.95rem; }
.btn-xl { height: 3rem; border-radius: 999px; padding-inline: 2rem; font-size: 1rem; }
.btn-sm { height: 2rem; padding-inline: 0.75rem; font-size: 0.75rem; }
.btn-full { width: 100%; }
.btn svg, .btn .icon { width: 1rem; height: 1rem; flex-shrink: 0; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid color-mix(in oklch, var(--border) 70%, transparent); background: color-mix(in oklch, var(--background) 85%, transparent); backdrop-filter: blur(20px); }
.site-header-inner { display: flex; height: 4rem; align-items: center; justify-content: space-between; gap: 1.5rem; }
.wordmark { font-family: var(--font-display); font-size: 1.125rem; font-weight: 600; letter-spacing: 0.28em; color: var(--foreground); }
.wordmark-light { color: var(--ink-foreground); }
.main-nav { display: none; align-items: center; gap: 1.75rem; }
.main-nav a { font-size: 0.875rem; color: var(--muted-foreground); transition: color .15s; }
.main-nav a:hover, .main-nav a.is-active { color: var(--foreground); font-weight: 500; }
.header-actions { display: none; align-items: center; gap: 0.5rem; }
.menu-toggle { display: inline-flex; width: 2.5rem; height: 2.5rem; align-items: center; justify-content: center; border-radius: 0.375rem; border: none; background: transparent; cursor: pointer; }
.mobile-nav { display: none; border-top: 1px solid var(--border); background: var(--background); }
.mobile-nav.is-open { display: block; }
.mobile-nav-inner { display: flex; flex-direction: column; gap: 0.25rem; padding-block: 1rem; }
.mobile-nav-inner a { border-radius: 0.375rem; padding: 0.625rem 0.5rem; font-size: 0.875rem; color: var(--foreground); }
.mobile-cta { position: fixed; inset-inline: 0; bottom: 0; z-index: 40; padding: 0.75rem; }
.mobile-cta .btn { width: 100%; }

@media (min-width: 1024px) {
  .main-nav { display: flex; }
  .header-actions { display: flex; }
  .menu-toggle { display: none; }
  .mobile-cta { display: none; }
}

/* ==========================================================================
   Sections
   ========================================================================== */
.section { padding-block: 5rem; }
.section-sand { background: color-mix(in oklch, var(--sand) 60%, transparent); }
.section-ink { background-image: var(--gradient-ink); color: var(--ink-foreground); }
.section-head { max-width: 42rem; }
.section-head.is-center { margin-inline: auto; text-align: center; }
.section-head h2 { margin-top: 0.75rem; font-size: 1.875rem; font-weight: 600; }
.section-head p { margin-top: 1rem; font-size: 1rem; line-height: 1.6; color: var(--muted-foreground); }
.section-head.is-ink .eyebrow { color: color-mix(in oklch, var(--ink-foreground) 60%, transparent); }
.section-head.is-ink p { color: color-mix(in oklch, var(--ink-foreground) 75%, transparent); }
@media (min-width: 768px) { .section { padding-block: 7rem; } .section-head h2 { font-size: 2.6rem; line-height: 1.1; } }

.hero-band { border-block: 1px solid var(--border); background: color-mix(in oklch, var(--sand) 50%, transparent); }
.page-hero { border-bottom: 1px solid var(--border); background: color-mix(in oklch, var(--sand) 50%, transparent); padding-block: 4rem; }
.page-hero h1 { margin-top: 1rem; max-width: 48rem; font-size: 2.5rem; line-height: 1.1; font-weight: 600; }
.page-hero p { margin-top: 1.5rem; max-width: 42rem; font-size: 1.125rem; color: var(--muted-foreground); }
@media (min-width: 768px) { .page-hero { padding-block: 6rem; } .page-hero h1 { font-size: 3.75rem; } }

/* ==========================================================================
   Cards / tiles
   ========================================================================== */
.card { border: 1px solid var(--border); background: var(--card); border-radius: 1rem; padding: 2rem; }
.tile-grid { display: grid; gap: 1px; overflow: hidden; border-radius: 1.5rem; border: 1px solid var(--border); background: var(--border); }
.tile { background: var(--background); padding: 2rem; }
.tile h3 { margin-top: 1.25rem; font-size: 1.125rem; }
.tile p { margin-top: 0.625rem; font-size: 0.875rem; line-height: 1.6; color: var(--muted-foreground); }
@media (min-width: 640px) { .tile-grid.cols-2, .tile-grid.cols-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .tile-grid.cols-3 { grid-template-columns: repeat(3, 1fr); } }

/* ==========================================================================
   Forms
   ========================================================================== */
.field { display: grid; gap: 0.5rem; margin-bottom: 1.25rem; }
.field label, .field-label { font-size: 0.875rem; font-weight: 500; }
.field input, .field textarea, .field select,
input.input, textarea.textarea, select.select {
  width: 100%; border-radius: 0.5rem; border: 1px solid var(--input); background: var(--background);
  padding: 0.625rem 0.75rem; font-size: 0.875rem; font-family: inherit; outline: none;
}
.field input:focus, .field textarea:focus, .field select:focus { box-shadow: 0 0 0 1px var(--ring); }
.choice-group { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.choice-btn { border-radius: 999px; border: 1px solid var(--border); background: var(--background); padding: 0.5rem 1rem; font-size: 0.875rem; cursor: pointer; transition: border-color .15s; }
.choice-btn.is-selected { border-color: var(--accent); background: var(--accent); color: var(--accent-foreground); }
.form-card { border-radius: 1.5rem; border: 1px solid var(--border); background: var(--card); padding: 1.5rem; box-shadow: var(--shadow-soft); }
@media (min-width: 768px) { .form-card { padding: 2.5rem; } }
.error-text { color: var(--destructive); font-size: 0.875rem; margin-top: 1rem; }
.notice-text { color: var(--muted-foreground); font-size: 0.875rem; margin-top: 0.5rem; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { border-top: 1px solid var(--border); background: color-mix(in oklch, var(--sand) 60%, transparent); }
.footer-top { display: grid; gap: 3rem; padding-block: 4rem; }
.footer-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.footer-cols h3 { font-size: 0.875rem; font-weight: 600; }
.footer-cols ul { margin-top: 1rem; }
.footer-cols li { margin-top: 0.625rem; }
.footer-cols a { font-size: 0.875rem; color: var(--muted-foreground); }
.footer-cols a:hover { color: var(--foreground); }
.footer-bottom { border-top: 1px solid color-mix(in oklch, var(--border) 70%, transparent); }
.footer-bottom-inner { display: flex; flex-direction: column; gap: 0.75rem; justify-content: space-between; padding-block: 1.5rem; font-size: 0.75rem; color: var(--muted-foreground); }
.footer-bottom-inner .links { display: flex; gap: 1.5rem; }
@media (min-width: 768px) { .footer-top { grid-template-columns: 1.3fr 2fr; } .footer-cols { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 640px) { .footer-bottom-inner { flex-direction: row; } }

/* ==========================================================================
   Homes listing / detail
   ========================================================================== */
.filters-bar { display: grid; gap: 1.25rem; border-radius: 1rem; border: 1px solid var(--border); background: var(--card); padding: 1.5rem; box-shadow: var(--shadow-soft); }
@media (min-width: 1024px) { .filters-bar { grid-template-columns: repeat(6, 1fr); } }
.home-card { overflow: hidden; border-radius: 1rem; border: 1px solid var(--border); background: var(--card); transition: transform .2s, box-shadow .2s; }
.home-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.home-card img { aspect-ratio: 4/3; width: 100%; object-fit: cover; }
.home-card .body { padding: 1.5rem; }
.badge-row { display: flex; flex-wrap: wrap; gap: 0.375rem; }
.badge { border-radius: 999px; background: var(--secondary); padding: 0.25rem 0.625rem; font-size: 0.75rem; }
.gallery-grid { display: grid; gap: 0.75rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } .gallery-grid .main-image { grid-column: span 2; grid-row: span 2; } }
.gallery-grid img { height: 100%; width: 100%; object-fit: cover; border-radius: 1rem; }
.detail-block { margin-top: 2.5rem; border-top: 1px solid var(--border); padding-top: 2rem; }
.commute-list li { display: flex; justify-content: space-between; padding: 0.75rem 1.25rem; font-size: 0.875rem; border-bottom: 1px solid var(--border); }

/* ==========================================================================
   Dashboard (demo)
   ========================================================================== */
.dash-shell { display: flex; min-height: 100vh; background: color-mix(in oklch, var(--sand) 40%, transparent); }
.dash-sidebar { display: none; width: 16rem; flex-shrink: 0; flex-direction: column; background: var(--sidebar); color: var(--sidebar-foreground); padding: 1.5rem; }
.dash-sidebar nav { margin-top: 2.5rem; display: flex; flex-direction: column; gap: 0.25rem; }
.dash-sidebar nav a { display: flex; align-items: center; gap: 0.75rem; border-radius: 0.5rem; padding: 0.625rem 0.75rem; font-size: 0.875rem; color: color-mix(in oklch, var(--sidebar-foreground) 65%, transparent); }
.dash-sidebar nav a.is-active { background: var(--sidebar-accent); color: var(--sidebar-accent-foreground); }
.dash-note { margin-top: auto; border-radius: 0.75rem; border: 1px solid var(--sidebar-border); padding: 1rem; font-size: 0.75rem; color: color-mix(in oklch, var(--sidebar-foreground) 70%, transparent); }
.dash-main { flex: 1; }
.dash-topbar { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--border); background: var(--background); padding: 1rem 1.5rem; }
.dash-stats { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); margin-top: 2rem; }
.dash-stat { border-radius: 1rem; border: 1px solid var(--border); background: var(--card); padding: 1.5rem; }
.dash-stat p:first-child { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted-foreground); }
.dash-stat p:last-child { margin-top: 0.75rem; font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; }
.stay-card { border-radius: 1rem; border: 1px solid var(--border); background: var(--card); padding: 1.5rem; }
.status-pill { border-radius: 999px; padding: 0.25rem 0.75rem; font-size: 0.75rem; }
.status-active { background: var(--secondary); color: var(--secondary-foreground); }
.status-other { background: color-mix(in oklch, var(--accent) 15%, transparent); color: var(--accent); }
@media (min-width: 1024px) { .dash-sidebar { display: flex; } .dash-stats { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1280px) { .stay-grid { grid-template-columns: repeat(2, 1fr); } }

/* ==========================================================================
   Admin submissions (front-end fallback if used outside wp-admin)
   ========================================================================== */
.submission-card { border-radius: 1rem; border: 1px solid var(--border); background: var(--card); padding: 1.5rem; }
.submission-card dl { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; margin-top: 1rem; }
.submission-card dt { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted-foreground); }
.submission-card dd { margin: 0.125rem 0 0; font-size: 0.875rem; }

/* ==========================================================================
   Colors as classes (small helper set used across templates)
   ========================================================================== */
.bg-sand { background: var(--sand); }
.bg-card { background: var(--card); }
.border-t { border-top: 1px solid var(--border); }
.border-b { border-bottom: 1px solid var(--border); }
.rounded-full { border-radius: 999px; }
.pill { border-radius: 999px; background: var(--accent); color: var(--accent-foreground); padding: 0.25rem 0.75rem; font-size: 0.75rem; font-weight: 500; }
.pill-muted { border-radius: 999px; background: var(--secondary); color: var(--muted-foreground); padding: 0.25rem 0.75rem; font-size: 0.75rem; }
.dashed-card { border-radius: 1rem; border: 1px dashed var(--border); background: var(--card); padding: 1.5rem; }
