@import url('/fonts/fonts.css');

:root {
  --header-bg: #FFFFFF;
  --charcoal: #090A0F;
  --ivory: #475569;
  --slate: #64748B;
  --bg-canvas: linear-gradient(135deg, #F0F4F8 0%, #DFE5ED 45%, #ECEFF4 100%);
  --card-glass: rgba(255, 255, 255, 0.96);
  --card-border: rgba(255, 255, 255, 0.95);
  --line: rgba(0, 0, 0, 0.08);
}

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

html {
  background: #ECEFF4;
  scroll-behavior: smooth;
  overscroll-behavior-y: none;
  touch-action: pan-y;
}

body {
  background: #ECEFF4;
  background-image: var(--bg-canvas);
  color: var(--charcoal);
  font-family: 'Work Sans', sans-serif;
  font-weight: 400;
  touch-action: pan-y;
  min-height: 100vh;
  min-height: 100svh;
  overflow-x: hidden;
  position: relative;
}

img { -webkit-user-select:none; user-select:none; -webkit-touch-callout:none; }
::selection { background: #090A0F; color: #FFFFFF; }

h1, h2, h3, .display {
  font-family: 'Fraunces', serif;
  font-optical-sizing: auto;
}

/* ---------- HEADER ---------- */
header {
  position: sticky; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 6vw;
  background: var(--header-bg);
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.95);
  border-left: 1px solid rgba(255, 255, 255, 0.9);
  border-right: 1px solid rgba(255, 255, 255, 0.9);
  border-bottom-left-radius: 28px;
  border-bottom-right-radius: 28px;
  box-shadow: 0 4px 20px rgba(15,23,42,0.06);
  transition: transform 0.35s ease, opacity 0.25s ease;
}

.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Fraunces', serif; font-size: 1.15rem; font-weight: 700;
  letter-spacing: 0.02em; color: #090A0F; text-decoration: none;
}
.brand img {
  height: 36px; width: 36px; border-radius: 50%;
  object-fit: cover; object-position: center;
  border: 1.5px solid #FFFFFF; box-shadow: 0 2px 10px rgba(15,23,42,0.15);
}

nav ul { list-style: none; display: flex; align-items: center; gap: 24px; margin: 0; padding: 0; }
nav a {
  font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: #090A0F; font-weight: 600; opacity: 0.85; text-decoration: none;
  transition: opacity .2s ease;
}
nav a:hover, nav a.active { opacity: 1; color: #090A0F; }

@media(max-width: 700px) {
  header {
    padding: 12px 4vw;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 6px 24px rgba(15,23,42,0.1);
  }
  .brand img { height: 32px; width: 32px; }
  .brand .brand-text { display: none; }
  nav ul { gap: 16px; }
  nav a { font-size: 0.8rem; }
}

/* ---------- GALLERY PAGE WRAPPER ---------- */
.gallery-page-wrap {
  max-width: 1300px;
  margin: 0 auto;
  padding: 32px 6vw 80px;
}

/* ---------- BREADCRUMB BAR ---------- */
.breadcrumb-bar {
  margin-bottom: 24px;
}
.breadcrumb-bar ol {
  display: flex; align-items: center; gap: 8px; list-style: none;
  font-size: 0.85rem; font-weight: 500; color: #64748B;
  flex-wrap: wrap;
}
.breadcrumb-bar a {
  color: #475569; text-decoration: none; transition: color .2s;
}
.breadcrumb-bar a:hover { color: #090A0F; }
.breadcrumb-bar .separator { color: #94A3B8; font-size: 0.95rem; }
.breadcrumb-bar span { color: #090A0F; font-weight: 600; }

/* ---------- GALLERY HERO ---------- */
.gallery-hero {
  margin-bottom: 36px;
  border-bottom: 1.5px solid var(--line);
  padding-bottom: 28px;
}
.gallery-hero h1 {
  font-family: 'Fraunces', serif;
  font-size: clamp(2rem, 5vw, 2.9rem);
  font-weight: 700;
  color: #090A0F;
  line-height: 1.15;
  margin-bottom: 16px;
}
.gallery-intro {
  font-size: 1.02rem;
  line-height: 1.75;
  color: #475569;
  max-width: 78ch;
  margin-bottom: 24px;
  font-weight: 450;
}
.gallery-cta-row {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  margin-bottom: 24px;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: 40px; font-weight: 600; font-size: 0.92rem;
  text-decoration: none; cursor: pointer; transition: all .25s ease;
  border: none;
}
.btn-whatsapp {
  background: #090A0F; color: #FFFFFF !important;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}
.btn-whatsapp:hover {
  background: #1E293B; transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.3);
}
.stat-tag {
  font-size: 0.85rem; font-weight: 600; color: #090A0F;
  background: rgba(255,255,255,0.9); border: 1.5px solid #FFFFFF;
  padding: 8px 16px; border-radius: 30px;
  box-shadow: 0 4px 12px rgba(15,23,42,0.06);
}

/* Category Switcher Pills */
.category-pills-bar {
  display: flex; gap: 10px; overflow-x: auto; padding: 4px 0 12px;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.category-pills-bar::-webkit-scrollbar { display: none; }
.pill {
  white-space: nowrap; font-size: 0.84rem; font-weight: 600;
  padding: 8px 16px; border-radius: 30px; text-decoration: none;
  background: rgba(255,255,255,0.85); color: #475569;
  border: 1.5px solid rgba(255,255,255,0.95);
  box-shadow: 0 2px 8px rgba(15,23,42,0.04);
  transition: all .2s ease;
}
.pill:hover {
  color: #090A0F; background: #FFFFFF; transform: translateY(-1px);
}
.pill.active {
  background: #090A0F; color: #FFFFFF; border-color: #090A0F;
}

/* ---------- PHOTO GRID ---------- */
.photo-grid-wrap { position: relative; }
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media(max-width: 900px) {
  .photo-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}
@media(max-width: 540px) {
  .photo-grid { grid-template-columns: 1fr; gap: 16px; }
}

/* ---------- PHOTO CARD ---------- */
.photo-card {
  position: relative;
  background: rgba(255, 255, 255, 0.96);
  border: 2px solid rgba(255, 255, 255, 0.95);
  border-radius: 0 !important;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12), inset 0 2px 2px #FFFFFF;
  overflow: hidden;
  cursor: pointer;
  padding: 6px;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease;
}
.photo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.16);
}
.photo-card.selected {
  outline: 3px solid #090A0F;
}
.photo-card-inner {
  position: relative; width: 100%; aspect-ratio: 16/10;
  overflow: hidden; background: #E2E8F0;
}
.photo-card-inner picture,
.photo-card-inner img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.shield {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
}
.num-badge {
  position: absolute; top: 10px; left: 10px; z-index: 3;
  background: rgba(9, 10, 15, 0.82); color: #FFFFFF;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05em;
  padding: 4px 8px; border-radius: 6px; backdrop-filter: none;
}
.check {
  position: absolute; top: 8px; right: 8px; z-index: 4;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(9, 10, 15, 0.65); border: 1.5px solid #FFFFFF;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all .2s ease;
}
.photo-card.selected .check {
  background: #090A0F; border-color: #090A0F; transform: scale(1.08);
}
.check svg {
  width: 16px; height: 16px; opacity: 0; transition: opacity .2s;
}
.photo-card.selected .check svg { opacity: 1; }
.cat-card-footer {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 3;
  padding: 8px 10px; display: flex; justify-content: space-between; align-items: center;
  background: linear-gradient(180deg, transparent 0%, rgba(9, 10, 15, 0.75) 100%);
  color: #FFFFFF; font-size: 0.72rem; font-weight: 500;
}
.cat-card-footer span { display: inline-flex; align-items: center; gap: 4px; }
.cat-card-footer svg { width: 13px; height: 13px; }
.shortlist-hint { opacity: 0.85; font-size: 0.7rem; }

.load-more-sentinel { height: 40px; margin-top: 20px; }

/* Highlight animation for Jump To Image */
.photo-card.locate-highlight { animation: locateFlash 1.8s ease; }
@keyframes locateFlash {
  0%, 100% { box-shadow: 0 18px 45px rgba(15,23,42,0.12); }
  25%, 65% { box-shadow: 0 0 0 4px #090A0F, 0 20px 50px rgba(0,0,0,0.3); transform: scale(1.02); }
}

/* ---------- HUB GRID SECTION ---------- */
.hub-grid-section { margin-top: 20px; }
.cat-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
@media(max-width: 900px) {
  .cat-grid { grid-template-columns: 1fr; }
}
.cat-card {
  position: relative; aspect-ratio: 3/4; overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.95);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12), inset 0 2px 2px #fff;
  padding: 8px; display: flex; flex-direction: column; cursor: pointer;
  transition: transform .35s ease, box-shadow .35s ease;
}
.cat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.18);
}
.cat-card picture, .cat-card img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.cat-card .veil {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.05) 30%, rgba(9,10,15,0.85) 100%);
  pointer-events: none;
}
.cat-body {
  position: absolute; bottom: 20px; left: 20px; right: 20px; z-index: 3; color: #FFFFFF;
}
.cat-body h3 {
  font-family: 'Fraunces', serif; font-size: 1.55rem; font-weight: 700; margin-bottom: 4px;
}
.cat-body p {
  font-size: 0.88rem; opacity: 0.9; margin-bottom: 12px;
}
.cat-body .arrow {
  display: inline-flex; align-items: center; gap: 6px; font-size: 0.82rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em; color: #FFFFFF;
}

/* ---------- SHORTLIST FLOATING CAPSULE ---------- */
.shortlist-capsule-wrap {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  z-index: 1500; pointer-events: auto;
}
.shortlist-capsule {
  display: inline-flex; align-items: center; gap: 10px;
  background: #090A0F; color: #FFFFFF;
  padding: 14px 24px; border-radius: 9999px;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 16px 40px rgba(0,0,0,0.45);
  cursor: pointer; font-size: 0.92rem; font-weight: 600;
  transition: transform .25s ease, background .2s ease;
}
.shortlist-capsule:hover {
  background: #1E293B; transform: scale(1.03);
}
.capsule-icon { color: #EAB308; }

/* ---------- SELECTED PANEL MODAL ---------- */
.selected-panel {
  position: fixed; inset: 0; z-index: 2700;
  background: linear-gradient(135deg, rgba(240,244,248,0.98) 0%, rgba(226,232,240,0.98) 50%, rgba(236,239,244,0.98) 100%);
  transform: translateY(100%); transition: transform .42s cubic-bezier(.2,.8,.2,1), visibility .42s;
  visibility: hidden; pointer-events: none;
  display: flex; flex-direction: column;
}
.selected-panel.open {
  transform: translateY(0); visibility: visible; pointer-events: auto;
}
.selected-panel-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 6vw; border-bottom: 1.5px solid rgba(255,255,255,0.95);
  background: rgba(255,255,255,0.96); box-shadow: 0 6px 24px rgba(15,23,42,0.06);
}
.selected-panel-head h2 {
  font-family: 'Fraunces', serif; font-size: clamp(1.4rem, 3.5vw, 2rem); font-weight: 700; color: #090A0F;
}
.selected-panel-head .sub {
  font-size: 0.85rem; color: #64748B; font-weight: 500;
}
.selected-panel-close {
  width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid #FFFFFF;
  background: rgba(255,255,255,0.96); color: #090A0F; font-size: 1.4rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: all .2s;
}
.selected-panel-close:hover { background: #090A0F; color: #FFFFFF; }
.selected-panel-list {
  flex: 1; overflow-y: auto; padding: 24px 6vw;
}
.selected-panel-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px 16px; margin-bottom: 12px;
  background: rgba(255,255,255,0.96); border: 1.5px solid rgba(255,255,255,0.95);
  border-radius: 14px; box-shadow: 0 4px 14px rgba(15,23,42,0.04);
  cursor: pointer; transition: all .2s;
}
.selected-panel-row:hover {
  transform: translateY(-2px); box-shadow: 0 8px 24px rgba(15,23,42,0.08); border-color: #090A0F;
}
.row-left { display: flex; align-items: center; gap: 14px; }
.selected-panel-thumb {
  width: 68px; height: 50px; object-fit: cover; border-radius: 4px;
}
.selected-panel-label {
  font-family: 'Fraunces', serif; font-size: 1.05rem; font-weight: 700; color: #090A0F;
}
.selected-panel-hint {
  font-size: 0.74rem; color: #64748B; display: block; margin-top: 2px;
}
.btn-remove-row {
  background: none; border: none; color: #EF4444; font-size: 1.2rem; cursor: pointer;
  padding: 6px 12px; border-radius: 6px;
}
.btn-remove-row:hover { background: #FEE2E2; }

.selected-panel-footer {
  padding: 18px 6vw 24px; background: rgba(255,255,255,0.98);
  border-top: 1.5px solid rgba(0,0,0,0.08);
}
.panel-inputs {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px;
}
@media(max-width: 600px) { .panel-inputs { grid-template-columns: 1fr; } }
.panel-inputs input {
  padding: 12px 16px; border-radius: 10px; border: 1.5px solid #CBD5E1;
  font-size: 0.92rem; font-family: inherit;
}
.panel-inputs input:focus {
  outline: none; border-color: #090A0F;
}
.panel-actions {
  display: flex; gap: 12px; justify-content: flex-end;
}
.btn-secondary {
  background: #F1F5F9; color: #475569; border: 1.5px solid #CBD5E1;
}
.btn-secondary:hover { background: #E2E8F0; color: #090A0F; }
.btn-primary {
  background: #090A0F; color: #FFFFFF; flex: 1; max-width: 380px;
}
.btn-primary:hover { background: #1E293B; }

/* ---------- LIGHTBOX ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 2900;
  background: rgba(9, 10, 15, 0.96);
  display: flex; align-items: center; justify-content: center;
  padding: 5vw; opacity: 0; pointer-events: none;
  transition: opacity .3s ease;
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox img {
  max-width: 95vw; max-height: 92vh; width: auto; height: auto;
  object-fit: contain; box-shadow: 0 30px 80px rgba(0,0,0,0.8);
}
.lightbox-close {
  position: fixed; top: 22px; right: 22px; z-index: 2901;
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(255,255,255,0.96); border: 1.5px solid #FFFFFF;
  color: #090A0F; font-size: 1.5rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.lightbox-close:hover { background: #FFFFFF; transform: scale(1.08); }

/* ---------- FOOTER ---------- */
footer {
  background: rgba(255,255,255,0.96); color: #475569; padding: 55px 6vw 30px;
  border-top: 1.5px solid rgba(255,255,255,0.95);
  box-shadow: 0 -10px 40px rgba(15,23,42,0.04);
}
.f-columns {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px; margin-bottom: 24px;
}
@media(max-width: 700px) {
  .f-columns { grid-template-columns: 1fr; gap: 34px; }
}
.f-columns h3 {
  color: #090A0F; font-family: 'Fraunces', serif; font-size: 1.1rem;
  font-weight: 700; margin-bottom: 16px;
}
.f-columns ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.f-columns a {
  color: #64748B; font-size: 0.95rem; text-decoration: none; transition: color .2s;
}
.f-columns a:hover { color: #090A0F; }
.f-divider { border: none; border-top: 1px solid rgba(0,0,0,0.08); margin: 26px 0; }
.f-bottom { text-align: center; }
.f-bottom .legal { font-size: 0.85rem; color: #64748B; margin-bottom: 14px; }
.f-bottom .legal a { color: inherit; text-decoration: none; }
.f-bottom .legal a:hover { color: #090A0F; }
.f-bottom .credit { font-size: 0.92rem; color: #475569; margin-bottom: 8px; }
.f-bottom .credit a { color: #090A0F; font-weight: 700; text-decoration: none; }
.f-bottom .copyright { font-size: 0.85rem; color: #64748B; }
