/* Scarlet Horizon — shared stylesheet */

:root {
  --accent: #A6231B;
  --accent-dark: #7E1A14;
  --bg: #F5EFE6;
  --text: #1F1813;
  --text-muted: #5E5047;
  --text-soft: #6A5C52;
  --text-body: #4A3D35;
  --text-list: #2E241E;
  --card-bg: #FFFCF7;
  --border: #E4D9CB;
  --border-soft: #EDE4D8;
  --tag-bg: #F2EADF;
  --pill-bg: #EBE2D5;
  --dark-bg: #1F1813;
  --dark-bg-2: #2B211B;
  --dark-border: #4A3D35;
  --dark-muted: #CFC3B4;
  --highlight: #EFE5D8;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Instrument Sans', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
}

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

.page {
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: 'Instrument Sans', system-ui, sans-serif;
  min-height: 100vh;
}

.serif {
  font-family: 'DM Serif Display', Georgia, serif;
}

/* ---------- NAV ---------- */
.site-header {
  height: 88px;
  box-sizing: border-box;
  padding: 0 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
}

.brand-name {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 26px;
  letter-spacing: 0.2px;
}

.brand-logo-img {
  height: 48px;
  width: auto;
  display: block;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 36px;
  font-size: 16px;
  font-weight: 500;
}

.main-nav a {
  color: var(--text);
  text-decoration: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.btn-accent {
  background: var(--accent);
  color: #FFFFFF;
}

.btn-outline {
  border: 1.5px solid var(--text);
  color: var(--text);
  background: transparent;
}

.btn-dark {
  background: var(--text);
  color: var(--bg);
}

.btn-cream {
  background: var(--bg);
  color: var(--text);
}

.nav-cta {
  height: 44px;
  padding: 0 22px;
}

/* ---------- HERO ---------- */
.hero {
  box-sizing: border-box;
  padding: 72px 80px 64px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 64px;
  align-items: center;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.eyebrow {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
}

.hero h1 {
  margin: 0;
  font-family: 'DM Serif Display', Georgia, serif;
  font-weight: 400;
  font-size: 76px;
  line-height: 1.02;
  letter-spacing: -0.5px;
}

.hero h1 em, .accent-italic {
  font-style: italic;
  color: var(--accent);
}

.hero p, .lede {
  margin: 0;
  max-width: 520px;
  font-size: 19px;
  line-height: 1.6;
  color: var(--text-muted);
}

.hero-actions {
  display: flex;
  gap: 16px;
  align-items: center;
}

.hero-cta {
  height: 56px;
  padding: 0 30px;
  font-size: 17px;
}

.hero-call {
  height: 56px;
  padding: 0 26px;
  font-size: 17px;
}

.hero-visual {
  height: 500px;
  border-radius: 28px;
  overflow: hidden;
  background: var(--dark-bg);
  position: relative;
}

.hero-visual-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------- AVAILABILITY BAR ---------- */
.availability-wrap {
  padding: 0 80px;
}

.availability-form {
  box-sizing: border-box;
  padding: 20px;
  border-radius: 20px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  align-items: end;
}

.availability-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}

.availability-form select,
.availability-form input[type="date"] {
  height: 48px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid #D6C8B6;
  background: var(--bg);
  font: inherit;
  font-size: 16px;
  color: var(--text);
}

.availability-form select { font-weight: 500; }

.availability-form button {
  height: 48px;
  border: 0;
  border-radius: 12px;
  background: var(--text);
  color: var(--bg);
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

/* ---------- LISTINGS SECTION ---------- */
.listings-section {
  box-sizing: border-box;
  padding: 104px 80px 96px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.listings-heading-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}

.listings-heading-row h2,
.section-title {
  margin: 0;
  font-family: 'DM Serif Display', Georgia, serif;
  font-weight: 400;
  font-size: 52px;
  line-height: 1.05;
}

.filter-group {
  display: flex;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  background: var(--pill-bg);
}

.filter-btn {
  height: 44px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  background: transparent;
  color: var(--text);
}

.filter-btn[aria-pressed="true"] {
  background: var(--text);
  color: var(--bg);
}

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

.listing-tile {
  display: flex;
  flex-direction: column;
}

.listing-card {
  display: flex;
  flex-direction: column;
  border-radius: 24px;
  overflow: hidden;
  background: var(--card-bg);
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
}

.listing-airbnb-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
}

.listing-airbnb-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.listing-photo {
  height: 360px;
  position: relative;
  background: #E9DFD1;
}

.listing-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.listing-cat-badge {
  position: absolute;
  top: 18px;
  left: 18px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.listing-rating-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--card-bg);
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
}

.listing-rating-badge .reviews-count {
  font-weight: 500;
  color: var(--text-muted);
}

.listing-body {
  padding: 26px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.listing-title-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.listing-name {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 32px;
  line-height: 1.1;
}

.listing-tag {
  font-size: 16px;
  color: var(--text-muted);
}

.listing-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.chip {
  padding: 6px 12px;
  border-radius: 8px;
  background: var(--tag-bg);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-body);
}

.listing-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  border-top: 1px solid var(--border-soft);
}

.listing-price {
  font-size: 15px;
  color: var(--text-muted);
}

.listing-price strong {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
}

.listing-details-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
}

/* ---------- HOW IT WORKS ---------- */
.how-it-works {
  box-sizing: border-box;
  margin: 0 80px;
  padding: 72px 72px;
  border-radius: 32px;
  background: var(--dark-bg);
  color: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.how-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
}

.how-header h2 {
  margin: 0;
  font-family: 'DM Serif Display', Georgia, serif;
  font-weight: 400;
  font-size: 48px;
  line-height: 1.05;
}

.how-header p {
  margin: 0;
  max-width: 420px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--dark-muted);
}

.how-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
}

.how-step {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 24px;
  border-top: 2px solid var(--accent);
}

.how-step-num {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 44px;
  color: #F08B7F;
}

.how-step-title {
  font-size: 22px;
  font-weight: 600;
}

.how-step p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--dark-muted);
}

/* ---------- CONTACT ---------- */
.contact-section {
  box-sizing: border-box;
  padding: 112px 80px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 64px;
  align-items: center;
}

.contact-copy {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-copy h2 {
  margin: 0;
  font-family: 'DM Serif Display', Georgia, serif;
  font-weight: 400;
  font-size: 52px;
  line-height: 1.05;
}

.contact-copy p {
  margin: 0;
  max-width: 480px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-muted);
}

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

.contact-card {
  padding: 24px;
  border-radius: 20px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-card-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-soft);
}

.contact-card-value {
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}

/* ---------- FOOTER ---------- */
.site-footer {
  margin-top: auto;
  box-sizing: border-box;
  padding: 40px 80px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  color: var(--text-soft);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-brand-name {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 20px;
  color: var(--text);
}

.footer-brand-logo-img {
  height: 34px;
  width: auto;
  display: block;
}

.listing-logo-badge {
  height: 84px;
  width: auto;
  display: block;
  align-self: flex-start;
  flex-shrink: 0;
  margin-bottom: 14px;
}

.footer-nav {
  display: flex;
  gap: 24px;
}

.footer-nav a {
  color: var(--text-soft);
}

/* ---------- DETAIL PAGE ---------- */
.title-section {
  box-sizing: border-box;
  padding: 40px 80px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  min-height: 44px;
  width: fit-content;
}

.title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  flex-wrap: wrap;
}

.title-meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.title-badges {
  display: flex;
  gap: 10px;
  align-items: center;
}

.cat-pill {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.location-text {
  font-size: 15px;
  color: var(--text-muted);
}

.title-section h1 {
  margin: 0;
  font-family: 'DM Serif Display', Georgia, serif;
  font-weight: 400;
  font-size: 68px;
  line-height: 1.02;
}

.title-tag {
  font-size: 19px;
  color: var(--text-muted);
}

.rating-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  color: var(--text);
  flex-wrap: wrap;
}

.rating-row strong { font-weight: 700; }

.rating-row .muted { color: var(--text-muted); }

.badge-outline {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--text);
  font-size: 13px;
  font-weight: 600;
}

.price-block {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.price-block .label {
  font-size: 15px;
  color: var(--text-muted);
}

.price-block .price {
  font-size: 40px;
  font-weight: 700;
}

.price-block .price .per {
  font-size: 18px;
  font-weight: 500;
  color: var(--text-muted);
}

/* GALLERY */
.gallery {
  box-sizing: border-box;
  padding: 0 80px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 16px;
  height: 520px;
}

.gallery-main {
  grid-column: span 2;
  grid-row: span 2;
  border-radius: 24px;
  overflow: hidden;
  background: #E9DFD1;
}

.gallery-item {
  border-radius: 20px;
  overflow: hidden;
  background: #E9DFD1;
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* DETAIL BODY */
.detail-body {
  box-sizing: border-box;
  padding: 64px 80px 96px;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 64px;
}

.detail-left {
  grid-column: span 7;
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.detail-block {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.detail-block h2 {
  margin: 0;
  font-family: 'DM Serif Display', Georgia, serif;
  font-weight: 400;
  font-size: 36px;
}

.detail-block > p {
  margin: 0;
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-body);
}

.specs-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
}

.spec-item {
  padding: 20px 22px;
  background: var(--card-bg);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.spec-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-soft);
}

.spec-value {
  font-size: 20px;
  font-weight: 600;
}

.amenities-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 32px;
  font-size: 17px;
  color: var(--text-list);
}

.amenities-list li {
  display: flex;
  gap: 12px;
  align-items: center;
}

.amenities-list svg {
  flex-shrink: 0;
}

.terms-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border);
}

.terms-row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  font-size: 17px;
}

.terms-row span:first-child { color: var(--text-muted); }
.terms-row span:last-child { font-weight: 600; }

.good-to-know {
  box-sizing: border-box;
  padding: 24px 28px;
  border-radius: 18px;
  background: var(--highlight);
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}

.good-to-know-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.good-to-know ul {
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.good-to-know li {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-body);
}

/* GUEST REVIEWS */
.reviews-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.review-card {
  box-sizing: border-box;
  padding: 22px 24px;
  border-radius: 18px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.review-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.review-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.review-who {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.review-name {
  font-weight: 600;
  font-size: 15px;
}

.review-place {
  font-size: 13px;
  color: var(--text-muted);
}

.review-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
}

.review-stars {
  color: #1F1813;
  letter-spacing: 1px;
}

.review-text {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--text-body);
}

/* RIGHT: pricing + booking */
.detail-right {
  grid-column: span 5;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.pricing-card {
  box-sizing: border-box;
  padding: 32px;
  border-radius: 28px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.pricing-card h2 {
  margin: 0;
  font-family: 'DM Serif Display', Georgia, serif;
  font-weight: 400;
  font-size: 32px;
}

.period-group {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 6px;
  border-radius: 16px;
  background: var(--pill-bg);
}

.period-btn {
  height: 44px;
  border: 0;
  border-radius: 12px;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  background: transparent;
  color: var(--text);
}

.period-btn[aria-pressed="true"] {
  background: var(--card-bg);
}

.rate-line {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.rate-line .amount {
  font-size: 48px;
  font-weight: 700;
  line-height: 1;
}

.rate-line .rate-label {
  font-size: 18px;
  color: var(--text-muted);
}

.price-breakdown {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border-soft);
}

.price-breakdown-row {
  display: flex;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-soft);
  font-size: 16px;
}

.price-breakdown-row:last-child { border-bottom: 0; }

.price-breakdown-row span:first-child { color: var(--text-muted); }
.price-breakdown-row span:last-child { font-weight: 600; }

.book-airbnb-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 56px;
  border-radius: 999px;
  background: var(--accent);
  color: #FFFFFF;
  text-decoration: none;
  font-size: 17px;
  font-weight: 600;
}

.direct-booking-form {
  box-sizing: border-box;
  padding: 32px;
  border-radius: 28px;
  background: var(--dark-bg);
  color: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.direct-booking-form h2 {
  margin: 0;
  font-family: 'DM Serif Display', Georgia, serif;
  font-weight: 400;
  font-size: 32px;
}

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

.direct-booking-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--dark-muted);
}

.direct-booking-form input,
.direct-booking-form select {
  height: 48px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid var(--dark-border);
  background: var(--dark-bg-2);
  color: var(--bg);
  font: inherit;
  font-size: 15px;
}

.direct-booking-form button {
  height: 56px;
  border: 0;
  border-radius: 999px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
}

.direct-booking-form .disclaimer {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--dark-muted);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 960px) {
  .site-header,
  .hero,
  .availability-wrap,
  .listings-section,
  .contact-section,
  .site-footer,
  .title-section,
  .gallery,
  .detail-body {
    padding-left: 24px;
    padding-right: 24px;
  }

  .how-it-works {
    margin: 0 24px;
    padding: 48px 32px;
  }

  .hero,
  .contact-section,
  .listings-grid,
  .availability-form,
  .how-steps,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .detail-body {
    grid-template-columns: 1fr;
  }

  .detail-left,
  .detail-right {
    grid-column: span 1;
  }

  .main-nav {
    display: none;
  }

  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto;
    height: auto;
  }

  .gallery-main {
    grid-column: span 2;
    height: 280px;
  }

  .gallery-item {
    height: 140px;
  }

  .hero h1 { font-size: 48px; }
  .title-section h1 { font-size: 40px; }
}

/* ---------- VIEW ALL PHOTOS LINK (detail pages) ---------- */
.view-all-photos {
  box-sizing: border-box;
  margin: 18px 80px 0;
  display: flex;
  justify-content: flex-end;
}

.view-all-photos a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
}

.view-all-photos a:hover {
  background: var(--accent);
  color: #fff;
}

@media (max-width: 900px) {
  .view-all-photos {
    margin: 14px 20px 0;
    justify-content: center;
  }
}

/* ---------- GALLERY PAGE ---------- */
.gallery-page-header {
  box-sizing: border-box;
  padding: 48px 80px 24px;
}

.gallery-page-header .back-link {
  margin-bottom: 18px;
}

.gallery-page-header h1 {
  margin: 0 0 6px;
  font-family: 'DM Serif Display', Georgia, serif;
  font-weight: 400;
  font-size: 44px;
}

.gallery-page-header .gallery-subtitle {
  color: var(--text-muted);
  font-size: 17px;
  margin: 0 0 24px;
}

.gallery-filters {
  box-sizing: border-box;
  padding: 0 80px 24px;
  display: flex;
  flex-wrap: wrap;
}

.photo-grid {
  box-sizing: border-box;
  padding: 0 80px 80px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.photo-tile {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: #E9DFD1;
  aspect-ratio: 4 / 3;
  cursor: pointer;
  border: 0;
  padding: 0;
  display: block;
}

.photo-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}

.photo-tile:hover img {
  transform: scale(1.05);
}

.photo-tile .photo-tile-cat {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(31, 24, 19, 0.72);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.photo-grid.is-empty::after {
  content: "No photos in this category yet.";
  grid-column: 1 / -1;
  color: var(--text-muted);
  padding: 40px 0;
  text-align: center;
}

/* ---------- LIGHTBOX ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15, 11, 8, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 24px;
}

.lightbox.is-open {
  display: flex;
}

.lightbox-figure {
  max-width: min(1100px, 92vw);
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.lightbox-figure img {
  max-width: 100%;
  max-height: 76vh;
  border-radius: 12px;
  display: block;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.lightbox-caption {
  color: #F5EFE6;
  font-size: 14px;
  opacity: 0.85;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  border: 0;
  background: rgba(255,255,255,0.12);
  color: #fff;
  cursor: pointer;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-close {
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  font-size: 20px;
}

.lightbox-prev,
.lightbox-next {
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  font-size: 22px;
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: var(--accent);
}

@media (max-width: 900px) {
  .gallery-page-header,
  .gallery-filters,
  .photo-grid {
    padding-left: 20px;
    padding-right: 20px;
  }

  .photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
  .lightbox-close { top: 10px; right: 10px; }
}
