/* ==========================================================================
   Little Artist Art Studio — stylesheet
   ========================================================================== */

:root {
  --cream: #eef4fb;
  --cream-alt: #dbe7f5;
  --ink: #1d2a3d;
  --ink-soft: #4c5a6e;
  --primary: #2d5c9c;
  --primary-dark: #1f4578;
  --gold: #cf9d43;
  --border: #c8d8ec;
  --white: #ffffff;
  --radius: 10px;
  --shadow: 0 6px 20px rgba(29, 42, 61, 0.08);
  --shadow-lg: 0 16px 40px rgba(29, 42, 61, 0.16);
  --max-width: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', Arial, sans-serif;
  color: var(--ink);
  /* Pale sky-blue base with a soft blue and gold watercolor glow at the edges */
  background:
    radial-gradient(ellipse 60% 45% at 0% 0%, rgba(86, 140, 214, 0.22), transparent 70%),
    radial-gradient(ellipse 50% 40% at 100% 18%, rgba(207, 157, 67, 0.14), transparent 70%),
    var(--cream);
  background-repeat: no-repeat;
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.5em;
}

p { margin: 0 0 1em; }
a { color: inherit; }
img { max-width: 100%; display: block; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  font-size: 1rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn[hidden] { display: none; }
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: var(--shadow);
}
.btn-primary:hover { background: var(--primary-dark); }

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-secondary:hover { background: var(--ink); color: var(--white); }

.btn-small {
  padding: 9px 18px;
  font-size: 0.9rem;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(238, 244, 251, 0.93);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.brand {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.4rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--ink);
  letter-spacing: 0.01em;
}
.brand span { color: var(--primary); }

.nav-links {
  display: flex;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  color: var(--ink-soft);
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  background: var(--cream-alt);
  color: var(--primary-dark);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

@media (max-width: 1060px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--cream);
    border-bottom: 1px solid var(--border);
    padding: 12px 24px 20px;
    gap: 4px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: 12px 14px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
  padding: 64px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.hero-copy .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 14px;
  display: block;
}

.hero-copy h1 {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  margin-bottom: 18px;
}

.hero-copy p {
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 46ch;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.hero-actions .btn { padding: 12px 22px; }

.hero-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.hero-image img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 40px; }
  .hero-image { order: -1; }
}

/* ---------- Sections ---------- */
.section {
  padding: 72px 0;
}
.section-alt { background: var(--cream-alt); }
.container.section { padding-left: 24px; padding-right: 24px; }

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 44px;
}
.section-head h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.section-head p { color: var(--ink-soft); }

/* ---------- Home: classes teaser ---------- */
.classes-teaser-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.teaser-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 26px;
  text-align: center;
  box-shadow: var(--shadow);
}
.teaser-card .icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--cream-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}
.teaser-card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.teaser-card p { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 0; }

.teaser-cta { text-align: center; margin-top: 36px; }

/* ---------- Home: class cards (first card spans two columns) ---------- */
.home-section-head { max-width: 640px; margin-bottom: 40px; }
.home-section-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); }
.home-section-head p { color: var(--ink-soft); font-size: 1.1rem; margin: 0; }

.home-class-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.home-class-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  padding: 24px;
  border-radius: 24px;
  background: var(--white);
  box-shadow: var(--shadow);
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.home-class-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.home-class-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: var(--accent-soft);
  transform: translate(30%, -30%);
  pointer-events: none;
}
.home-class-card > div { position: relative; }
.home-class-card--wide { grid-column: span 2; }
.home-class-card .age-badge { color: var(--accent); margin-bottom: 12px; }
.home-class-card h3 { font-size: 1.35rem; margin: 0 0 6px; }
.home-class-card--wide h3 { font-size: 1.8rem; }
.home-class-card p { color: var(--ink-soft); font-size: 0.95rem; margin: 0; }
.home-class-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 16px;
}

@media (max-width: 900px) {
  .home-class-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .home-class-grid { grid-template-columns: 1fr; }
  .home-class-card--wide { grid-column: auto; }
}

/* ---------- Home: testimonials ---------- */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
@media (max-width: 900px) { .testimonial-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .testimonial-grid { grid-template-columns: 1fr; } }
.testimonial {
  position: relative;
  margin: 0;
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.stars { color: var(--gold); letter-spacing: 0.12em; font-size: 1.1rem; }
.testimonial blockquote { margin: 0 0 auto; font-size: 1.02rem; }
.testimonial figcaption { margin-top: 10px; }
.testimonial figcaption { display: flex; align-items: center; gap: 12px; }
.testimonial figcaption strong { display: block; }
.testimonial figcaption span span { font-size: 0.88rem; color: var(--ink-soft); }
.testimonial .avatar {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

/* ---------- Home: call to action band ---------- */
.cta-band {
  text-align: center;
  padding: 56px 28px;
  border-radius: 28px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  box-shadow: var(--shadow-lg);
}
.cta-band h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.cta-band p { opacity: 0.9; max-width: 52ch; margin-left: auto; margin-right: auto; }
.cta-band-btn {
  margin-top: 12px;
  background: var(--gold);
  color: var(--ink);
  box-shadow: var(--shadow);
}
.cta-band-btn:hover { background: #e0b25a; }
.cta-band .cta-band-note { margin: 16px auto 0; font-weight: 700; font-size: 0.95rem; }

/* ---------- Classes page ---------- */

/* Sticky age filter bar (top is set in main.js to sit just under the header) */
.class-filter-bar {
  position: sticky;
  top: 66px;
  z-index: 50;
  background: rgba(238, 244, 251, 0.93);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}
.class-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.class-filter-label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-right: 6px;
}
.filter-chip {
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 999px;
  border: 2px solid var(--border);
  background: var(--white);
  color: var(--ink-soft);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.filter-chip:hover { border-color: var(--primary); color: var(--primary-dark); }
.filter-chip.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

/* Class cards — every class shown open, with photo, badges, highlights, and pricing */
.class-list { display: grid; gap: 32px; }

.class-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
/* Soft colored blob in the corner */
.class-card::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: var(--accent-soft);
  transform: translate(35%, -35%);
  pointer-events: none;
}
.class-card[hidden] { display: none; }

.class-card-media { padding: 20px 0 20px 20px; }
.class-card-media a { display: block; height: 100%; cursor: zoom-in; }
.class-card-media img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  border-radius: 18px;
}

.class-card-body {
  position: relative;
  z-index: 1;
  padding: 32px 34px;
}
.class-card-body h2 { font-size: 1.9rem; margin-bottom: 10px; }

.age-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.age-badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.class-desc { color: var(--ink-soft); }

.class-facts {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  font-weight: 600;
}
.class-facts span {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ink-soft);
}

.class-highlights { list-style: none; padding: 0; margin: 0 0 18px; }
.class-highlights li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 6px;
}
.class-highlights li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: inset 0 0 0 4px var(--accent-soft);
}

.class-book {
  margin-top: 22px;
  background: var(--accent);
  color: var(--white);
  box-shadow: var(--shadow);
}
.class-book:hover { background: var(--accent-dark); }

@media (max-width: 860px) {
  .class-card { grid-template-columns: 1fr; }
  .class-card-media { padding: 16px 16px 0; }
  .class-card-media img { min-height: 0; aspect-ratio: 3 / 2; }
  .class-card-body { padding: 22px 20px 26px; }
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
}
.price-table th, .price-table td {
  text-align: left;
  padding: 12px 10px;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}
.price-table th {
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.75rem;
  color: var(--ink-soft);
}
.price-table td.price { font-weight: 700; color: var(--primary-dark); }
.price-table td.price.tbd { color: var(--ink-soft); font-weight: 600; font-style: italic; }
/* Row for the age group picked in the filter */
.price-table tr.is-match td { background: var(--accent-soft, var(--cream-alt)); }
.price-table tr.is-match td:first-child { font-weight: 700; }

.pricing-note {
  background: #fff5e6;
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-bottom: 36px;
  font-size: 0.95rem;
}
.pricing-note strong { color: var(--primary-dark); }

/* ---------- Galleries (paintings / wine bottle) ---------- */
a.filter-chip { text-decoration: none; }

/* Paintings page groups; scroll margin keeps headings clear of the sticky header + bar */
.gallery-section { margin-bottom: 64px; scroll-margin-top: 150px; }
.gallery-section h2 { font-size: clamp(1.6rem, 2.6vw, 2rem); margin-bottom: 20px; }
.gallery-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 32px;
  margin-bottom: 24px;
}
.gallery-section-head h2 { margin-bottom: 8px; }
.gallery-section-head p { color: var(--ink-soft); max-width: 60ch; margin: 0; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 26px;
}

.gallery-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  text-align: left;
  padding: 0;
  font: inherit;
  color: inherit;
}
.gallery-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.gallery-thumb { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--cream-alt); }

/* Available / Sold labels on paintings */
.status-badge {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  font-family: 'Inter', Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--white);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}
.status-badge.is-available { background: #1e8a4c; }
.status-badge.is-sold { background: #c62828; }
.gallery-thumb .status-badge { position: absolute; top: 12px; left: 12px; z-index: 1; }
.price-tag .status-badge { margin-left: 12px; vertical-align: middle; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

.gallery-info { padding: 16px 18px; }
.gallery-info h3 { font-size: 1.05rem; margin-bottom: 4px; }
.gallery-info .meta { font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 6px; }
.gallery-info .price { font-weight: 700; color: var(--primary-dark); }

.gallery-empty {
  grid-column: 1 / -1;
  padding: 36px 20px;
  text-align: center;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.7);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}

/* ---------- Admin / product management (shared form styles) ---------- */
.admin-panel-section { margin-top: 32px; }
.admin-panel {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
}
.admin-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.admin-panel-head h2 { margin: 0; }
.admin-login-form,
.admin-form {
  display: grid;
  gap: 16px;
}
.admin-login-form label,
.admin-form label {
  display: grid;
  gap: 8px;
  font-weight: 600;
  color: var(--ink-soft);
}
.admin-login-form input,
.admin-form input,
.admin-form select,
.admin-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
  background: var(--cream);
}
.admin-login-message {
  min-height: 20px;
  margin: 0;
  color: #b42318;
  font-size: 0.9rem;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}
.admin-form-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.photo-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.photo-preview img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--cream-alt);
}
.admin-list-card {
  margin-top: 28px;
  border-top: 1px solid var(--border);
  padding-top: 20px;
}
.admin-list-card h3 { margin-bottom: 14px; }
.admin-painting-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.admin-painting-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--white);
}
.admin-painting-item div {
  display: grid;
  gap: 4px;
}
.admin-painting-item strong {
  color: var(--ink);
  font-size: 1rem;
}
.admin-painting-item span {
  color: var(--ink-soft);
  font-size: 0.9rem;
}
.admin-list-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.btn-danger {
  border-color: #b42318;
  color: #b42318;
}
.admin-empty {
  color: var(--ink-soft);
  padding: 14px 0;
}
.admin-login-message.is-ok { color: #1e8a4c; }

/* ---------- /ProductManagement page ---------- */
.pm-main { padding-top: 40px; padding-bottom: 60px; }
.pm-header-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pm-user { font-size: 0.9rem; color: var(--ink-soft); }
.pm-title { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 6px; }
.pm-subtitle { color: var(--ink-soft); margin: 0; }
.pm-auth { max-width: 460px; margin: 40px auto; }
.pm-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}
.pm-toolbar-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.pm-password-form { margin-bottom: 24px; }
.pm-password-form h2 { font-size: 1.3rem; margin-bottom: 6px; }
.pm-editor { margin-bottom: 28px; }
.pm-editor h3 { font-size: 1.1rem; margin: 0 0 12px; }
.pm-editor h3 small,
.admin-form label small { font-weight: 400; color: var(--ink-soft); font-size: 0.82rem; }
.pm-span-2 { grid-column: span 2; }
.pm-checks { display: flex; flex-wrap: wrap; gap: 10px 28px; }
.pm-check { display: flex !important; align-items: center; gap: 10px; }
.pm-check input { width: auto !important; }
.pm-images-block { border-top: 1px solid var(--border); padding-top: 18px; }
.pm-images { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
.pm-image {
  position: relative;
  margin: 0;
  width: 132px;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--white);
}
.pm-image img { width: 100%; height: 132px; object-fit: cover; }
.pm-image figcaption { display: flex; }
.pm-image figcaption button {
  flex: 1;
  border: none;
  border-top: 1px solid var(--border);
  background: var(--cream);
  padding: 7px 0;
  cursor: pointer;
  font: inherit;
  color: var(--ink);
}
.pm-image figcaption button + button { border-left: 1px solid var(--border); }
.pm-image figcaption button:disabled { opacity: 0.35; cursor: default; }
.pm-image figcaption button:hover:not(:disabled) { background: var(--cream-alt); }
.pm-image .pm-img-delete { color: #b42318; font-weight: 700; }
.pm-cover {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--primary);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.pm-upload input { padding: 10px !important; background: var(--white) !important; }
.pm-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 16px; }
.pm-count { margin-left: auto; color: var(--ink-soft); font-size: 0.9rem; }
.pm-list { display: grid; gap: 14px; }
.pm-card {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 14px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  cursor: pointer;
}
.pm-card:hover { border-color: var(--primary); }
.pm-card-thumb {
  position: relative;
  width: 110px;
  height: 110px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--cream-alt);
  display: flex;
  align-items: center;
  justify-content: center;
}
.pm-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pm-no-photo { font-size: 0.8rem; color: var(--ink-soft); }
.pm-photo-count {
  position: absolute;
  bottom: 6px;
  right: 6px;
  background: rgba(29, 42, 61, 0.75);
  color: var(--white);
  font-size: 0.7rem;
  padding: 2px 7px;
  border-radius: 999px;
}
.pm-card-cat { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--primary-dark); font-weight: 700; }
.pm-card-body h3 { font-size: 1.15rem; margin: 2px 0 4px; }
.pm-card-meta { font-size: 0.9rem; color: var(--ink-soft); }
.pm-card-money { display: flex; gap: 22px; margin: 8px 0; font-weight: 700; }
.pm-card-money small { display: block; font-weight: 600; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-soft); }
.pm-card-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.pm-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--white);
  background: var(--ink-soft);
}
.pm-badge-available { background: #1e8a4c; }
.pm-badge-sold { background: #c62828; }
.pm-badge-not_for_sale { background: #6b7280; }
.pm-badge-featured { background: var(--gold); color: var(--ink); }
.pm-badge-hidden { background: #111827; }
@media (max-width: 640px) {
  .pm-card { grid-template-columns: 84px 1fr; }
  .pm-card-thumb { width: 84px; height: 84px; }
  .pm-card-actions { grid-column: 1 / -1; }
  .pm-span-2 { grid-column: auto; }
}

/* ---------- Modal / lightbox detail view ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(30, 26, 22, 0.6);
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 20px;
  overflow-y: auto;
  z-index: 200;
}
.modal-overlay.open { display: flex; }

.modal {
  background: var(--white);
  border-radius: var(--radius);
  max-width: 920px;
  width: 100%;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--white);
  border: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.modal-gallery { position: relative; background: var(--cream-alt); }
.modal-gallery-main { aspect-ratio: 4 / 5; }
.modal-gallery-main img { width: 100%; height: 100%; object-fit: cover; }

.modal-thumbs {
  display: flex;
  gap: 8px;
  padding: 10px;
  overflow-x: auto;
}
.modal-thumbs img {
  width: 62px;
  height: 62px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  border: 2px solid transparent;
  opacity: 0.7;
}
.modal-thumbs img.active { border-color: var(--primary); opacity: 1; }

.modal-body {
  padding: 32px;
  display: flex;
  flex-direction: column;
}
.modal-body h3 { font-size: 1.6rem; margin-bottom: 10px; }
.modal-body dl { margin: 0 0 20px; }
.modal-body dt {
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  margin-top: 12px;
}
.modal-body dd { margin: 2px 0 0; font-size: 1rem; }
.modal-body .price-tag {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-top: auto;
  padding-top: 16px;
}

@media (max-width: 720px) {
  .modal { grid-template-columns: 1fr; }
}

/* ---------- About / Contact ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: start;
}
.about-photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.about-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }


.teaser-link { text-decoration: none; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.teaser-link:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 32px;
  align-items: start;
}
.contact-grid .contact-card:first-child { margin-top: 0; }

.contact-logo {
  display: block;
  margin-top: 24px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.contact-logo:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.contact-logo img { width: 100%; height: auto; }

.hours-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.98rem;
}
.hours-row:last-child { border-bottom: none; padding-bottom: 0; }
.hours-row span:first-child { font-weight: 700; color: var(--ink-soft); }

.contact-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  margin-top: 24px;
}
.contact-card h3 { font-size: 1.1rem; margin-bottom: 14px; }
.contact-item { display: flex; gap: 12px; margin-bottom: 12px; font-size: 0.98rem; }
.contact-item .label { font-weight: 700; min-width: 72px; color: var(--ink-soft); }

.contact-form { display: grid; gap: 16px; margin-top: 8px; }
.contact-form label { font-weight: 600; font-size: 0.9rem; display: block; margin-bottom: 6px; }
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
  background: var(--cream);
}
.contact-form textarea { min-height: 120px; resize: vertical; }
.contact-form .form-note { font-size: 0.85rem; color: var(--ink-soft); }

@media (max-width: 860px) {
  .about-grid,
  .contact-grid { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */
/* Dark footer with soft gold and blue paint blobs in the corners */
.site-footer {
  position: relative;
  overflow: hidden;
  margin-top: 40px;
  padding: 64px 0 0;
  background: #0f1622;
  color: #c9d2de;
  font-size: 0.95rem;
}
.site-footer::before,
.site-footer::after {
  content: "";
  position: absolute;
  border-radius: 46% 54% 60% 40% / 50% 42% 58% 50%;
  pointer-events: none;
}
.site-footer::before {
  width: 180px;
  height: 200px;
  top: 10px;
  left: -60px;
  background: rgba(207, 157, 67, 0.16);
}
.site-footer::after {
  width: 240px;
  height: 240px;
  bottom: -70px;
  right: -40px;
  background: rgba(45, 92, 156, 0.28);
}

.footer-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.2fr;
  gap: 40px;
}
.site-footer a { color: inherit; text-decoration: none; transition: color 0.15s ease; }
.site-footer a:hover { color: var(--gold); }

.footer-logo img {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(207, 157, 67, 0.45);
}
.footer-brand p { margin: 18px 0 20px; max-width: 38ch; line-height: 1.7; }

.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gold);
  color: #0f1622;
}
.footer-social a:hover { background: #e0b25a; color: #0f1622; }
.footer-social a.social-facebook { background: #1877f2; color: var(--white); }
.footer-social a.social-facebook:hover { background: #3b8cf5; color: var(--white); }

.footer-col h3 {
  font-size: 1.15rem;
  color: var(--gold);
  margin-bottom: 18px;
}
nav.footer-col { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.footer-item { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; }
.footer-item svg { flex-shrink: 0; margin-top: 3px; color: var(--gold); }

.footer-bottom {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 20px;
  margin-top: 48px;
  padding-top: 22px;
  padding-bottom: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.85rem;
  color: #8e9aab;
}

@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Page header (non-home pages) ---------- */
.page-header {
  padding: 56px 0 20px;
  text-align: center;
}
.page-header h1 { font-size: clamp(2rem, 3.6vw, 2.8rem); }
.page-header p { color: var(--ink-soft); max-width: 620px; margin: 0 auto; }
