/* =======================================
   RESET & BASE STYLES
   ======================================= */

.history_and_culture {
  /* font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; */
  /* color: #1e293b; */
  /* line-height: 1.75; */
  background: #ffffff;
}

/* .history_and_culture img {
  max-width: 100%;
  height: auto;
  display: block;
}

.history_and_culture button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

.history_and_culture a {
  text-decoration: none;
  color: inherit;
} */

/* =======================================
   COLOR VARIABLES
   ======================================= */

:root {
  /* Primary */
  --color-primary-50: #eff6ff;
  --color-primary-100: #dbeafe;
  --color-primary-200: #bfdbfe;
  --color-primary-300: #93c5fd;
  --color-primary-400: #60a5fa;
  --color-primary-500: #3b82f6;
  --color-primary-600: #2563eb;
  --color-primary-700: #1d4ed8;
  --color-primary-800: #1e40af;
  --color-primary-900: #1e3a8a;

  /* Secondary */
  --color-secondary-50: #f8fafc;
  --color-secondary-100: #f1f5f9;
  --color-secondary-200: #e2e8f0;
  --color-secondary-300: #cbd5e1;
  --color-secondary-400: #94a3b8;
  --color-secondary-500: #64748b;
  --color-secondary-600: #475569;
  --color-secondary-700: #334155;
  --color-secondary-800: #1e293b;
  --color-secondary-900: #0f172a;

  /* Accent */
  --color-accent-100: #fde68a;
  --color-accent-700: #92400e;

  /* Shadows */
  --shadow-card: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-overlay: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

/* =======================================
   TYPOGRAPHY
   ======================================= */

.history_and_culture h1 {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.history_and_culture h2 {
  line-height: 1.1;
  letter-spacing: 0.03em;
  font-size: 30px;
  font-weight: bold;
}

.history_and_culture h3 {
  font-size: 26px;
  font-weight: bold;
  line-height: 1.4;
}

.history_and_culture h4 {
  font-size: 23px;
  font-weight: 600;
  line-height: 1.4;
}

.lead {
  font-size: 1rem;
  line-height: 1.625;
  color: var(--color-secondary-600);
}

.body {
  font-size: 1rem;
  line-height: 1.75;
}

.caption {
  font-size: 0.875rem;
  color: var(--color-secondary-500);
}

/* =======================================
   LAYOUT - GRID SYSTEM
   ======================================= */

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

.col-1 { grid-column: span 1; }
.col-2 { grid-column: span 2; }
.col-3 { grid-column: span 3; }
.col-4 { grid-column: span 4; }
.col-5 { grid-column: span 5; }
.col-6 { grid-column: span 6; }
.col-7 { grid-column: span 7; }
.col-8 { grid-column: span 8; }
.col-9 { grid-column: span 9; }
.col-10 { grid-column: span 10; }
.col-11 { grid-column: span 11; }
.col-12 { grid-column: span 12; }

/* =======================================
   SPACING
   ======================================= */

.section {
  padding: 80px 0;
}

.section-bg-white {
  background: #ffffff;
}

.section-bg-gray {
  background: var(--color-secondary-50);
}

.spacing-top-40 { margin-top: 40px; }
.spacing-bottom-40 { margin-bottom: 40px; }
.spacing-top-80 { margin-top: 80px; }
.spacing-bottom-80 { margin-bottom: 80px; }

.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 32px; }
.mb-10 { margin-bottom: 40px; }
.mb-12 { margin-bottom: 48px; }
.mb-16 { margin-bottom: 64px; }
.mb-20 { margin-bottom: 80px; }

.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }

.pt-2 { padding-top: 8px; }
.pt-4 { padding-top: 16px; }
.pt-10 { padding-top: 40px; }

.pb-12 { padding-bottom: 48px; }

.p-6 { padding: 24px; }
.p-10 { padding: 40px; }
.p-12 { padding: 48px; }

.px-3 { padding-left: 12px; padding-right: 12px; }
.px-4 { padding-left: 16px; padding-right: 16px; }
.px-6 { padding-left: 24px; padding-right: 24px; }
.px-8 { padding-left: 32px; padding-right: 32px; }
.px-12 { padding-left: 48px; padding-right: 48px; }

.py-1 { padding-top: 4px; padding-bottom: 4px; }
.py-2 { padding-top: 8px; padding-bottom: 8px; }
.py-3 { padding-top: 12px; padding-bottom: 12px; }
.py-4 { padding-top: 16px; padding-bottom: 16px; }
.py-20 { padding-top: 80px; padding-bottom: 80px; }

.gap-1 { gap: 4px; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }
.gap-8 { gap: 32px; }
.gap-12 { gap: 48px; }

.space-y-2 > * + * { margin-top: 8px; }
.space-y-3 > * + * { margin-top: 12px; }
.space-y-4 > * + * { margin-top: 16px; }
.space-y-6 > * + * { margin-top: 24px; }
.space-y-10 > * + * { margin-top: 40px; }

/* =======================================
   ATOMS - BUTTONS
   ======================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
  border-radius: 8px;
  font-weight: 500;
}

.btn-primary {
  background: var(--color-primary-600);
  color: white;
  padding: 12px 24px;
}

.btn-primary:hover {
  background: var(--color-primary-700);
}

.btn-primary-large {
  padding: 16px 32px;
  font-size: 1.125rem;
}

.btn-primary-small {
  padding: 8px 16px;
  font-size: 0.875rem;
}

.btn-outline {
  border: 2px solid var(--color-primary-600);
  color: var(--color-primary-600);
  padding: 12px 24px;
  background: transparent;
}

.btn-outline:hover {
  background: var(--color-primary-50);
}

.btn-outline-large {
  padding: 16px 32px;
  font-size: 1.125rem;
}

.btn-outline-small {
  padding: 8px 16px;
  font-size: 0.875rem;
}

.btn-textlink {
  color: var(--color-primary-600);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.btn-textlink:hover {
  color: var(--color-primary-700);
}

.btn-white {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid white;
  color: white;
}

.btn-white:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* =======================================
   ATOMS - TAGS
   ======================================= */

.tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 0.875rem;
}

.tag-default {
  background: var(--color-secondary-100);
  color: var(--color-secondary-700);
}

.tag-category {
  background: var(--color-primary-100);
  color: var(--color-primary-700);
}

.tag-route {
  background: var(--color-accent-100);
  color: var(--color-accent-700);
}

/* =======================================
   ATOMS - DIVIDERS
   ======================================= */

.divider-horizontal {
  height: 1px;
  background: var(--color-secondary-200);
}

.divider-vertical {
  width: 1px;
  background: var(--color-secondary-200);
}

/* =======================================
   MOLECULES - CARDS
   ======================================= */

.card-spot {
  cursor: pointer;
}

.card-spot-image {
  background: var(--color-secondary-100);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 16px;
}

.card-spot-image-default {
  aspect-ratio: 3 / 4;
}

.card-spot-image-small {
  aspect-ratio: 4 / 3;
}

.card-spot-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

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

.card-culture {
  cursor: pointer;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.3s;
}

.card-culture:hover {
  box-shadow: var(--shadow-overlay);
}

.card-culture-image {
  aspect-ratio: 16 / 9;
  background: var(--color-secondary-100);
  overflow: hidden;
}

.card-culture-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

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

.card-story-route {
  cursor: pointer;
  margin-bottom: 30px;
}

.card-story-route-image {
  aspect-ratio: 16 / 9;
  background: var(--color-secondary-100);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 16px;
  position: relative;
}

.card-story-route-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

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

.card-story-route-tag {
  position: absolute;
  top: 16px;
  right: 16px;
}

.card-gallery-item {
  cursor: pointer;
}

.card-gallery-item-image {
  aspect-ratio: 1 / 1;
  background: var(--color-secondary-100);
  border-radius: 8px;
  overflow: hidden;
}

.card-gallery-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.card-gallery-item:hover .card-gallery-item-image img {
  transform: scale(1.1);
}

/* =======================================
   MOLECULES - TIMELINE
   ======================================= */

.timeline-item {
  display: flex;
  gap: 24px;
}

.timeline-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.timeline-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-primary-100);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary-700);
  font-weight: 600;
  flex-shrink: 0;
}

.timeline-line {
  width: 1px;
  height: 100%;
  background: var(--color-secondary-200);
  margin-top: 8px;
}

.timeline-item:last-child .timeline-line {
  display: none;
}

.timeline-content {
  padding-bottom: 48px;
}

.timeline-year {
  color: var(--color-primary-600);
  margin-bottom: 8px;
}

/* =======================================
   MOLECULES - MEDIA
   ======================================= */

.image-container {
  background: var(--color-secondary-100);
  border-radius: 8px;
  overflow: hidden;
}

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

.aspect-square { aspect-ratio: 1 / 1; }
.aspect-video { aspect-ratio: 16 / 9; }
.aspect-portrait { aspect-ratio: 3 / 4; }
.aspect-landscape { aspect-ratio: 4 / 3; }

.hero-image {
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden;
}

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

.hero-image-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent, transparent, rgba(0, 0, 0, 0.6));
}

/* =======================================
   MOLECULES - TEXT BLOCKS
   ======================================= */

.section-intro {
  text-align: center;
}

.section-intro-left {
  text-align: left;
}

.heading-group-subtitle {
  color: var(--color-primary-600);
}

.heading-group-description {
  color: var(--color-secondary-600);
}

/* =======================================
   MOLECULES - BUTTON GROUPS
   ======================================= */

.button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.button-group-center {
  justify-content: center;
}

.button-group-left {
  justify-content: flex-start;
}

.button-group-right {
  justify-content: flex-end;
}

/* =======================================
   ORGANISMS - HERO
   ======================================= */

.hero-main {
  position: relative;
}

.hero-main-image {
  height: 600px;
}

.hero-main-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-main-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
  color: white;
}

.hero-main-inner h1,
.hero-main-inner .lead {
  color: white;
}

.hero-main-inner .lead {
  opacity: 0.9;
  max-width: 768px;
  margin-left: auto;
  margin-right: auto;
}

.hero-sub {
  position: relative;
}

.hero-sub-with-image {
  height: 400px;
  background: var(--color-secondary-100);
  overflow: hidden;
}

.hero-sub-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
}

.hero-sub-content h2,
.hero-sub-content .lead {
  color: white;
}

.hero-sub-content .lead {
  opacity: 0.9;
}

.hero-sub-no-image {
  background: var(--color-secondary-50);
  padding: 80px 0;
}

/* =======================================
   ORGANISMS - SECTIONS
   ======================================= */

.section-map-cta {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  min-height: 400px;
  display: flex;
  align-items: center;
}

.section-map-cta-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.section-map-cta-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.3));
}

.section-map-cta-content {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.section-map-cta-inner {
  max-width: 640px;
  padding: 0 48px;
  color: white;
}

.section-map-cta-inner h2 {
  font-size: 2.25rem;
  color: white;
  margin-bottom: 24px;
}

.section-map-cta-inner p {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 32px;
}

/* =======================================
   UTILITIES
   ======================================= */

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.shrink-0 { flex-shrink: 0; }

.relative { position: relative; }
.absolute { position: absolute; }
.sticky { position: sticky; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }

.text-center { text-align: center; }
.text-left { text-align: left; }

.rounded-lg { border-radius: 8px; }
.rounded-full { border-radius: 9999px; }
.rounded-2xl { border-radius: 16px; }

.overflow-hidden { overflow: hidden; }

.w-full { width: 100%; }
.h-full { height: 100%; }
.max-w-2xl { max-width: 672px; }
.max-w-3xl { max-width: 768px; }

.object-cover { object-fit: cover; }
.object-contain { object-fit: contain; }

.transition { transition: all 0.2s; }

.opacity-90 { opacity: 0.9; }

.cursor-pointer { cursor: pointer; }

.text-white { color: white; }
.text-secondary-400 { color: var(--color-secondary-400); }
.text-secondary-500 { color: var(--color-secondary-500); }
.text-secondary-600 { color: var(--color-secondary-600); }
.text-secondary-700 { color: var(--color-secondary-700); }
.text-primary-600 { color: var(--color-primary-600); }
.text-primary-700 { color: var(--color-primary-700); }

.bg-white { background: white; }
.bg-secondary-50 { background: var(--color-secondary-50); }
.bg-secondary-100 { background: var(--color-secondary-100); }

.list-none { list-style: none; }

/* Icon sizing */
.icon-sm { width: 16px; height: 16px; }
.icon-md { width: 20px; height: 20px; }
.icon-lg { width: 24px; height: 24px; }

/* =======================================
   RESPONSIVE
   ======================================= */

@media (max-width: 768px) {
  .history_and_culture h1 { font-size: 2.5rem; }
  .history_and_culture h2 { font-size: 2rem; }
  .history_and_culture h3 { font-size: 1.5rem; }
  .history_and_culture h4 { font-size: 1.25rem; }
  
  /* .lead { font-size: 1.125rem; } */
  
  .col-1, .col-2, .col-3, .col-4, .col-5, .col-6,
  .col-7, .col-8, .col-9, .col-10, .col-11, .col-12 {
    grid-column: span 12;
  }

  .gap-12 { gap: 6.25vw; }
  
  .hero-image,
  .hero-main-image {
    height: 500px;
  }
  
  .hero-sub-with-image {
    height: 300px;
  }

  .section-map-cta-inner {
    text-align: justify;
  }
  
  .section-map-cta-inner h2 {
    font-size: 1.875rem;
  }
  
  .section-map-cta-inner p {
    font-size: 1.125rem;
  }
}
@media (max-width: 600px) {
  .section-map-cta {
    min-height: 600px;
  }
}

@media (min-width: 769px) {
  .md-col-2 { grid-column: span 2; }
  .md-col-3 { grid-column: span 3; }
  .md-col-4 { grid-column: span 4; }
  .md-col-5 { grid-column: span 5; }
  .md-col-6 { grid-column: span 6; }
  .md-col-7 { grid-column: span 7; }
  .md-col-8 { grid-column: span 8; }
}
