/* ============================================================
   SOY ALHAMA — Page-Specific Styles
   ============================================================ */

/* --- Breadcrumbs --- */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-xs);
  margin-bottom: var(--space-md);
}

.breadcrumbs a {
  color: rgba(255, 255, 255, 0.5);
  transition: color var(--duration-fast) var(--ease-smooth);
}

.breadcrumbs a:hover {
  color: rgba(255, 255, 255, 0.85);
}

.breadcrumbs .separator {
  color: rgba(255, 255, 255, 0.3);
}

.breadcrumbs span:last-child {
  color: rgba(255, 255, 255, 0.8);
}

/* --- Listing Page Header --- */
.listing-header {
  position: relative;
  padding-top: calc(var(--nav-height) + var(--space-3xl));
  padding-bottom: var(--space-2xl);
  background: var(--black-soft);
  color: #fff;
  text-align: center;
  overflow: hidden;
}

.listing-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(196, 106, 58, 0.08), transparent 60%),
    radial-gradient(ellipse at 70% 30%, rgba(46, 111, 149, 0.06), transparent 60%);
  pointer-events: none;
}

.listing-header .section-label {
  color: var(--terracotta-light);
}

.listing-header .section-label::before {
  background: var(--terracotta-light);
}

.listing-header .section-title {
  color: #fff;
  font-size: var(--fs-h1);
}

.listing-header .section-subtitle {
  color: rgba(255, 255, 255, 0.6);
  margin-inline: auto;
}

/* --- Filter Bar --- */
.filter-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  flex-wrap: wrap;
  padding: var(--space-lg) 0;
  border-bottom: 1px solid var(--gray-100);
  margin-bottom: var(--space-xl);
}

.filter-chip {
  padding: 8px 20px;
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--gray-500);
  background: transparent;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-full);
  transition: all var(--duration-normal) var(--ease-smooth);
  cursor: pointer;
}

.filter-chip:hover {
  border-color: var(--gray-400);
  color: var(--black-soft);
}

.filter-chip.active {
  background: var(--terracotta);
  border-color: var(--terracotta);
  color: #fff;
}

/* --- Restaurant Detail Card (listing page) --- */
.listing-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--gray-100);
  transition: all var(--duration-normal) var(--ease-smooth);
}

.listing-card:hover {
  border-color: transparent;
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.listing-card .card-image {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  position: relative;
}

.listing-card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-smooth);
}

.listing-card:hover .card-image img {
  transform: scale(1.05);
}

.listing-card .card-badges {
  position: absolute;
  top: var(--space-sm);
  left: var(--space-sm);
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.listing-card .badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: var(--fs-xxs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.badge-type {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  color: var(--terracotta);
}

.badge-price {
  background: rgba(26, 26, 26, 0.7);
  backdrop-filter: blur(8px);
  color: #fff;
}

.listing-card .card-body {
  padding: var(--space-lg);
}

.listing-card h3 {
  font-size: var(--fs-h4);
  margin-bottom: 6px;
}

.listing-card .card-meta {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--fs-xs);
  color: var(--gray-400);
  margin-bottom: var(--space-sm);
}

.listing-card .card-meta svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.listing-card .card-description {
  font-size: var(--fs-small);
  color: var(--gray-500);
  line-height: 1.7;
  margin-bottom: var(--space-md);
}

.listing-card .card-features {
  display: flex;
  gap: var(--space-xs);
  flex-wrap: wrap;
}

.feature-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  font-size: var(--fs-xxs);
  color: var(--gray-500);
  background: var(--gray-50);
  border-radius: var(--radius-full);
}

.feature-tag svg {
  width: 12px;
  height: 12px;
}

/* --- Listing Grid --- */
.listing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: var(--space-lg);
}

/* --- Content Page (Discover / Guide) --- */
.content-page {
  padding-top: calc(var(--nav-height) + var(--space-xl));
}

.content-hero {
  position: relative;
  height: 60vh;
  min-height: 400px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: var(--space-3xl);
}

.content-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.content-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26, 26, 26, 0.7), transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: var(--space-2xl);
}

.content-hero-text h1 {
  color: #fff;
  font-size: var(--fs-h1);
  margin-bottom: var(--space-xs);
}

.content-hero-text p {
  color: rgba(255, 255, 255, 0.8);
  font-size: var(--fs-body-lg);
}

/* Content Body */
.content-body {
  max-width: 800px;
  margin-inline: auto;
}

.content-body h2 {
  font-size: var(--fs-h2);
  margin-top: var(--space-3xl);
  margin-bottom: var(--space-md);
  color: var(--black-soft);
}

.content-body h3 {
  font-size: var(--fs-h3);
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-sm);
}

.content-body p {
  color: var(--gray-600);
  margin-bottom: var(--space-md);
  line-height: 1.8;
}

.content-body blockquote {
  border-left: 3px solid var(--terracotta);
  padding-left: var(--space-md);
  margin: var(--space-xl) 0;
  font-style: italic;
  color: var(--gray-500);
}

.content-image-break {
  margin: var(--space-2xl) -60px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16 / 7;
}

.content-image-break img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: var(--space-2xl);
  margin: var(--space-xl) 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--sand-dark);
}

.timeline-item {
  position: relative;
  padding-bottom: var(--space-xl);
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: calc(-1 * var(--space-2xl) + 4px);
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--terracotta);
  border: 2px solid var(--off-white);
}

.timeline-item .era {
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--terracotta);
  margin-bottom: 4px;
}

.timeline-item h4 {
  font-size: var(--fs-h4);
  margin-bottom: 6px;
}

.timeline-item p {
  font-size: var(--fs-small);
  color: var(--gray-500);
}

/* --- Beach Card Enhancements --- */
.beach-card .distance-badge {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  background: var(--blue-med);
  color: #fff;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: var(--fs-xxs);
  font-weight: 600;
}

/* Map Section */
.map-section {
  background: var(--sand);
  padding-block: var(--space-3xl);
}

.map-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 450px;
  box-shadow: var(--shadow-md);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* --- CTA Banner --- */
.cta-banner {
  background: var(--terracotta);
  color: #fff;
  padding: var(--space-3xl) var(--space-lg);
  text-align: center;
  border-radius: var(--radius-lg);
  margin: var(--space-2xl) 0;
}

.cta-banner h3 {
  color: #fff;
  font-size: var(--fs-h3);
  margin-bottom: var(--space-sm);
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: var(--space-lg);
  max-width: 500px;
  margin-inline: auto;
}

/* --- Related Links --- */
.related-links {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.related-link {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-lg);
  background: #fff;
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-100);
  transition: all var(--duration-normal) var(--ease-smooth);
}

.related-link:hover {
  border-color: var(--terracotta);
  box-shadow: var(--shadow-sm);
}

.related-link svg {
  width: 20px;
  height: 20px;
  color: var(--terracotta);
  flex-shrink: 0;
}

.related-link span {
  font-size: var(--fs-small);
  font-weight: 500;
}

/* --- Events List --- */
.events-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.event-item {
  display: flex;
  gap: var(--space-lg);
  padding: var(--space-lg);
  background: #fff;
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-100);
  transition: all var(--duration-normal) var(--ease-smooth);
}

.event-item:hover {
  border-color: var(--terracotta-light);
  box-shadow: var(--shadow-sm);
}

.event-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  padding: var(--space-sm) var(--space-md);
  background: var(--sand);
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

.event-date .month {
  font-size: var(--fs-xxs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--terracotta);
}

.event-date .day {
  font-family: var(--font-heading);
  font-size: var(--fs-h3);
  font-weight: 700;
  color: var(--black-soft);
  line-height: 1;
}

.event-info h4 {
  font-size: var(--fs-h4);
  margin-bottom: 4px;
}

.event-info p {
  font-size: var(--fs-small);
  color: var(--gray-500);
  line-height: 1.7;
}

/* --- Guide Grid --- */
.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-md);
}

.guide-card {
  padding: var(--space-lg);
  background: #fff;
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-100);
  transition: all var(--duration-normal) var(--ease-smooth);
}

.guide-card:hover {
  border-color: var(--terracotta-light);
  box-shadow: var(--shadow-sm);
}

.guide-card h4 {
  font-size: var(--fs-body);
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.guide-card p {
  font-size: var(--fs-small);
  color: var(--gray-500);
  line-height: 1.7;
}

/* --- Stats Bar --- */
.stats-bar {
  display: flex;
  justify-content: center;
  gap: var(--space-2xl);
  flex-wrap: wrap;
  padding-top: var(--space-lg);
  border-top: 1px solid var(--gray-100);
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: var(--fs-h2);
  font-weight: 700;
  color: var(--terracotta);
  line-height: 1;
}

.stat-label {
  font-size: var(--fs-xs);
  color: var(--gray-400);
  margin-top: 4px;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .listing-grid {
    grid-template-columns: 1fr;
  }

  .content-image-break {
    margin: var(--space-lg) 0;
  }

  .filter-bar {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: var(--space-sm);
  }

  .filter-bar::-webkit-scrollbar {
    display: none;
  }

  .filter-chip {
    white-space: nowrap;
    flex-shrink: 0;
  }

  .event-item {
    flex-direction: column;
    gap: var(--space-sm);
  }

  .event-date {
    flex-direction: row;
    gap: var(--space-sm);
    justify-content: flex-start;
    min-width: auto;
  }

  .stats-bar {
    gap: var(--space-lg);
  }

  .guide-grid {
    grid-template-columns: 1fr;
  }

  .content-hero {
    height: 40vh;
    min-height: 260px;
  }
}
