/* ============================================================
   Apartments Veronika — Base Styles
   Fonts: Playfair Display (display) + DM Sans (body)
   ============================================================ */

/* ── FONT IMPORTS ────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,300;1,9..40,400&display=swap');

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Banner height variable — updated by JS when banner is visible */
  --banner-h: 0px;
  --navbar-h: 72px;
}

body {
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ── TYPOGRAPHY ──────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  line-height: 1.22;
  color: var(--text);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.35rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; font-family: 'DM Sans', sans-serif; font-weight: 600; }
h6 { font-size: 0.95rem; font-family: 'DM Sans', sans-serif; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; }

p {
  color: var(--text2);
  line-height: 1.75;
  max-width: 68ch;
}

p + p { margin-top: 1em; }

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.20s ease, opacity 0.20s ease;
}

a:hover { color: var(--accent-hover); }

strong, b { font-weight: 600; color: var(--text); }
em, i { font-style: italic; }

small { font-size: 0.8125rem; color: var(--text3); }

/* Display text — Playfair italic hero lines */
.display {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-weight: 400;
}

/* Eyebrow label above headings */
.eyebrow {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ── LISTS ───────────────────────────────────────────────── */
ul, ol { padding-left: 1.5em; color: var(--text2); }
li { margin-bottom: 0.35em; }
ul.bare, ol.bare { list-style: none; padding-left: 0; }
ul.bare li, ol.bare li { margin-bottom: 0; }

/* ── IMAGES ──────────────────────────────────────────────── */
img, video, picture {
  display: block;
  max-width: 100%;
  height: auto;
}

/* ── FORMS BASE ──────────────────────────────────────────── */
input, select, textarea, button {
  font-family: inherit;
  font-size: inherit;
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ── HORIZONTAL RULE ─────────────────────────────────────── */
hr {
  border: none;
  border-top: 1px solid var(--divider);
  margin: 2rem 0;
}

/* ── LAYOUT CONTAINERS ───────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(16px, 4vw, 48px);
  padding-right: clamp(16px, 4vw, 48px);
}

.container--narrow {
  max-width: 780px;
}

.container--wide {
  max-width: 1440px;
}

/* ── PAGE OFFSET (for fixed navbar + banner) ─────────────── */
.page-body {
  padding-top: calc(var(--banner-h) + var(--navbar-h) + 20px);
}

/* ── SECTION SPACING ─────────────────────────────────────── */
.section {
  padding-top: clamp(4rem, 8vw, 7rem);
  padding-bottom: clamp(4rem, 8vw, 7rem);
}

.section--sm {
  padding-top: clamp(2rem, 4vw, 3.5rem);
  padding-bottom: clamp(2rem, 4vw, 3.5rem);
}

/* ── FLEX & GRID HELPERS ─────────────────────────────────── */
.flex        { display: flex; }
.flex-col    { display: flex; flex-direction: column; }
.items-center{ align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-sm      { gap: 0.5rem; }
.gap-md      { gap: 1rem; }
.gap-lg      { gap: 1.5rem; }
.gap-xl      { gap: 2.5rem; }

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ── CARD BASE ───────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.card__body { padding: 1.75rem; }

/* ── GLASS CARD ──────────────────────────────────────────── */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
}

/* ── BADGE ───────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  padding: 0.25em 0.75em;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 500;
  background: var(--accent-light);
  color: var(--accent);
  border: 1px solid var(--accent-mid);
}

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.7em 1.6em;
  border-radius: var(--radius-md);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.22s ease;
  white-space: nowrap;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

/* Primary — filled accent */
.btn--primary {
  background: var(--accent);
  color: #FFFFFF;
  border-color: var(--accent);
  box-shadow: 0 2px 12px rgba(128, 104, 254, 0.28);
}
.btn--primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #FFFFFF;
  box-shadow: 0 4px 20px rgba(128, 104, 254, 0.40);
  transform: translateY(-1px);
}
.btn--primary:active { transform: translateY(0); }

/* Ghost — liquid glass */
.btn--ghost {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  color: var(--accent);
  border-color: var(--border);
}
.btn--ghost:hover {
  background: var(--accent-light);
  border-color: var(--accent);
  color: var(--accent-hover);
  transform: translateY(-1px);
}

/* Outline */
.btn--outline {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}
.btn--outline:hover {
  background: var(--accent);
  color: #FFFFFF;
}

/* Danger */
.btn--danger {
  background: var(--error);
  color: #FFFFFF;
  border-color: var(--error);
}
.btn--danger:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

/* Sizes */
.btn--sm { padding: 0.5em 1.1em; font-size: 0.8125rem; border-radius: var(--radius-sm); }
.btn--lg { padding: 0.9em 2.2em; font-size: 1.0625rem; border-radius: var(--radius-lg); }
.btn--xl { padding: 1.05em 2.8em; font-size: 1.125rem; border-radius: var(--radius-lg); }
.btn--pill { border-radius: var(--radius-pill); }

/* Full width */
.btn--full { width: 100%; }

/* Icon-only */
.btn--icon {
  padding: 0.6em;
  border-radius: var(--radius-md);
  aspect-ratio: 1;
}

/* ── DIVIDER ORNAMENT ────────────────────────────────────── */
.divider-ornament {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 2.5rem 0;
  color: var(--text3);
  font-size: 0.875rem;
}
.divider-ornament::before,
.divider-ornament::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--divider);
}

/* ── SECTION HEADER ──────────────────────────────────────── */
.section-header {
  text-align: center;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section-header .eyebrow { margin-bottom: 0.75rem; }
.section-header h2 { margin-bottom: 0.75rem; }
.section-header p {
  margin: 0 auto;
  font-size: 1.0625rem;
  max-width: 56ch;
  color: var(--text2);
}

/* ── SCROLL REVEAL ───────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.60s ease, transform 0.60s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal--delay-1 { transition-delay: 0.10s; }
.reveal--delay-2 { transition-delay: 0.20s; }
.reveal--delay-3 { transition-delay: 0.30s; }
.reveal--delay-4 { transition-delay: 0.40s; }

/* ── SCREEN READER ONLY ──────────────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ── UTILS ───────────────────────────────────────────────── */
.text-center  { text-align: center; }
.text-accent  { color: var(--accent); }
.text-muted   { color: var(--text2); }
.text-faint   { color: var(--text3); }
.text-sm      { font-size: 0.875rem; }
.text-lg      { font-size: 1.125rem; }
.fw-medium    { font-weight: 500; }
.fw-semibold  { font-weight: 600; }
.mt-auto      { margin-top: auto; }
.mb-0         { margin-bottom: 0; }
.w-full       { width: 100%; }
.hidden       { display: none !important; }
.invisible    { visibility: hidden; }

/* ── SELECTION ───────────────────────────────────────────── */
::selection {
  background: var(--accent-mid);
  color: var(--text);
}

/* ── SCROLLBAR (webkit) ──────────────────────────────────── */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-alt); }
::-webkit-scrollbar-thumb { background: var(--surface3); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text3); }

/* ── MOBILE ONLY ─────────────────────────────────────────── */
@media (max-width: 600px) {
  html { font-size: 15px; }
  .hide-mobile { display: none !important; }
}
@media (min-width: 601px) {
  .hide-desktop { display: none !important; }
}

/* ── PRINT STYLES ────────────────────────────────────────── */
@media print {
  /* Hide interactive elements */
  .av-navbar,
  .av-footer,
  .av-cookie-banner,
  .av-cookie-modal,
  .btn,
  .hero__scroll-hint,
  .hero__actions,
  .booking-nav,
  [data-booking-next],
  [data-booking-back],
  #admin-sidebar,
  .admin-topbar,
  .admin-pagination,
  .approval-form__actions,
  .contact-info-card .contact-map { display: none !important; }

  /* Page setup */
  body {
    font-size: 11pt;
    line-height: 1.5;
    color: #000 !important;
    background: #fff !important;
  }

  /* URLs after links */
  a[href]::after {
    content: ' (' attr(href) ')';
    font-size: 9pt;
    color: #555;
  }

  a[href^="#"]::after,
  a[href^="javascript"]::after { content: ''; }

  /* Booking summary — make print-friendly */
  .booking-review-card,
  .admin-panel,
  .card {
    border: 1px solid #ccc !important;
    box-shadow: none !important;
    page-break-inside: avoid;
  }

  /* Property page */
  .prop-layout { display: block !important; }
  .prop-sidebar { display: none !important; }

  /* Ensure good contrast */
  .eyebrow { color: #555 !important; }
  h1, h2, h3 { color: #000 !important; }

  /* Page breaks */
  .page-hero,
  .about-story__grid { page-break-after: avoid; }

  /* Remove backgrounds */
  .page-hero::before,
  .cta-section::before,
  .hero__overlay { display: none !important; }
}

/* ── REDUCED MOTION ──────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }

  .hero__image {
    transform: none !important;
  }
}

/* ── FOCUS VISIBLE (keyboard nav) ────────────────────────── */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

:focus:not(:focus-visible) {
  outline: none;
}

/* ── SELECTION COLOUR ────────────────────────────────────── */
::selection {
  background: var(--accent);
  color: #FFFFFF;
}
