/* ===== Motupalli Port Explorer — Page Styles ===== */

:root {
  --port-navy: #0a1930;
  --port-gold: #d4952f;
  --port-gold-light: #f0c674;
  --port-teal: #0e5c5c;
}

.port-main {
  background: #050d1c;
  color: #f5f0e6;
}
.port-section {
  background: #050d1c;
}

/* ---------- Hero ---------- */
.port-hero {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 140px 24px 80px;
  background:
    radial-gradient(circle at 20% 20%, rgba(212, 149, 47, 0.15), transparent 60%),
    radial-gradient(circle at 80% 80%, rgba(14, 92, 92, 0.25), transparent 60%),
    #050d1c;
}

.port-hero-content {
  max-width: 760px;
}

.port-kicker {
  display: inline-block;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--port-gold-light);
  background: rgba(212, 149, 47, 0.1);
  border: 1px solid rgba(212, 149, 47, 0.3);
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.port-hero h1 {
  font-family: "Playfair Display", serif;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.15;
  margin: 0 0 18px;
  color: #f5f0e6;
}

.port-hero h1 span {
  color: var(--port-gold);
  font-style: italic;
}

.port-hero p {
  font-size: 1.05rem;
  line-height: 1.7;
  opacity: 0.85;
  margin: 0 auto 28px;
}

.port-bookmark-btn {
  font-family: inherit;
  font-size: 0.95rem;
  padding: 10px 22px;
  border-radius: 999px;
  border: 1px solid var(--port-gold);
  background: transparent;
  color: var(--port-gold-light);
  cursor: pointer;
  transition: all 0.25s ease;
}

.port-bookmark-btn:hover {
  background: var(--port-gold);
  color: #1a0f00;
}

.port-bookmark-btn[aria-pressed="true"] {
  background: var(--port-gold);
  color: #1a0f00;
}

/* ---------- Sections ---------- */
.port-section {
  padding: 70px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.port-container {
  max-width: 1080px;
  margin: 0 auto;
}

.port-section-header {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 44px;
}

.port-eyebrow {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #4fd1c5;
  margin-bottom: 10px;
}

.port-section-header h2,
.port-text-block h2 {
  font-family: "Playfair Display", serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0 0 14px;
  color: #f5f0e6;
}

.port-section-header p,
.port-text-block p {
  line-height: 1.75;
  opacity: 0.85;
  margin: 0 0 14px;
}

/* ---------- Two-column grid ---------- */
.port-grid-2col {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: start;
}

@media (max-width: 800px) {
  .port-grid-2col {
    grid-template-columns: 1fr;
  }
}

.port-highlight-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 28px;
}

.port-highlight-box h3 {
  margin: 0 0 16px;
  font-size: 1.15rem;
  color: #f5f0e6;
}

.port-highlight-box ul {
  margin: 0;
  padding-left: 20px;
  line-height: 1.9;
}

/* ---------- Card grid ---------- */
.port-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 800px) {
  .port-card-grid {
    grid-template-columns: 1fr;
  }
}

.port-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 26px;
  text-align: left;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.port-card:hover {
  transform: translateY(-4px);
  border-color: rgba(212, 149, 47, 0.4);
}

.port-card-icon {
  font-size: 1.8rem;
  display: block;
  margin-bottom: 12px;
}

.port-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  color: #f5f0e6;
}

.port-card p {
  margin: 0;
  line-height: 1.6;
  opacity: 0.8;
  font-size: 0.95rem;
}

/* ---------- Timeline ---------- */
.timeline-flow {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-left: 30px;
  border-left: 2px solid rgba(212, 149, 47, 0.3);
}

.timeline-step {
  position: relative;
}

.timeline-step-marker {
  position: absolute;
  left: -37px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--port-gold);
  box-shadow: 0 0 0 4px rgba(212, 149, 47, 0.15);
}

.timeline-step-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 18px 22px;
}

.timeline-step-year {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--port-gold-light);
  margin-bottom: 6px;
  font-weight: 600;
}

.timeline-step-card h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
  color: #f5f0e6;
}

.timeline-step-card p {
  margin: 0;
  line-height: 1.6;
  opacity: 0.8;
  font-size: 0.95rem;
}

/* ---------- Gallery (unique names — no collisions with global site CSS) ---------- */
.motupalli-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

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

.motupalli-gallery-item {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 1 / 1;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #0a1930;
}

.motupalli-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.motupalli-gallery-item:hover img {
  transform: scale(1.06);
}

.motupalli-gallery-overlay {
  position: absolute;
  inset: auto 0 0 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.85) 40%, transparent);
  padding: 14px;
  pointer-events: none;
}

.motupalli-gallery-overlay h4 {
  margin: 0;
  font-size: 0.95rem;
  color: #ffffff;
}

.motupalli-gallery-overlay p {
  margin: 2px 0 0;
  font-size: 0.8rem;
  opacity: 0.85;
  color: #f5f0e6;
}

/* ---------- References ---------- */
.port-references {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 28px;
}

.port-references h3 {
  margin: 0 0 14px;
  color: #f5f0e6;
}

.port-references ul {
  margin: 0;
  padding-left: 20px;
  line-height: 1.9;
  font-size: 0.92rem;
  opacity: 0.85;
}

/* ---------- Footer ---------- */
.port-footer {
  padding: 30px 24px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.9rem;
  opacity: 0.7;
  background: #050d1c;
}

.port-footer a {
  color: var(--port-gold-light);
}

/* ---------- Motupalli Modal (self-contained, unique names) ---------- */
.motupalli-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: 999;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.motupalli-modal.active {
  display: flex;
}

.motupalli-modal-card {
  position: relative;
  background: #0a1930;
  border: 1px solid rgba(212, 149, 47, 0.3);
  border-radius: 16px;
  padding: 32px;
  max-width: 480px;
  width: 100%;
  color: #f5f0e6;
}

.motupalli-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: transparent;
  border: none;
  color: #f5f0e6;
  font-size: 1.2rem;
  cursor: pointer;
  line-height: 1;
}

.motupalli-modal-category {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--port-gold-light);
  margin-bottom: 10px;
}

.motupalli-modal-image {
  display: block;
  width: 100%;
  max-height: min(55vh, 360px);
  margin: 0 0 18px;
  border-radius: 10px;
  object-fit: contain;
}

.motupalli-modal-card h2 {
  margin: 0 0 6px;
  font-family: "Playfair Display", serif;
  font-size: 1.4rem;
}

.motupalli-modal-location {
  color: var(--port-gold-light);
  font-size: 0.9rem;
  margin: 0;
}

.motupalli-modal-divider {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 15px;
  padding-top: 15px;
}

.motupalli-modal-description {
  margin: 0;
  line-height: 1.7;
  opacity: 0.9;
}

/* ---------- Scroll to top button ---------- */
.btn-scroll-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(212, 149, 47, 0.4);
  background: #0a1930;
  color: var(--port-gold-light);
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  z-index: 90;
}

.btn-scroll-top.visible {
  opacity: 1;
  visibility: visible;
}

/* ---------- Light theme overrides: force this page to stay dark ---------- */
[data-theme="light"] .port-main,
[data-theme="light"] .port-hero,
[data-theme="light"] .port-section,
[data-theme="light"] .port-footer {
  background: #050d1c !important;
  color: #f5f0e6 !important;
}

[data-theme="light"] .port-card,
[data-theme="light"] .port-highlight-box,
[data-theme="light"] .timeline-step-card,
[data-theme="light"] .port-references {
  background: rgba(255, 255, 255, 0.04) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  color: #f5f0e6 !important;
}

[data-theme="light"] .motupalli-gallery-item {
  background: #0a1930 !important;
}