/* ==========================================================
   blog.css — shared styles for all article/blog pages
   ========================================================== */

/* --- Hero --- */
.article-hero {
  position: relative;
  height: 520px;
  overflow: hidden;
}
.article-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.article-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.55) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 3rem;
}
.article-hero-tag {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sand);
  margin-bottom: 0.75rem;
}
.article-hero h1 {
  color: var(--white);
  font-size: clamp(1.8rem, 4vw, 3rem);
  max-width: 700px;
  line-height: 1.2;
}
.article-hero-meta {
  color: rgba(255,255,255,0.75);
  font-size: 0.88rem;
  margin-top: 1rem;
}

/* --- Body --- */
.article-body {
  max-width: 760px;
  margin: 4rem auto;
  padding: 0 2rem;
}
.article-body p {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text);
  margin-bottom: 1.5rem;
}
.article-body h2 {
  font-size: 1.5rem;
  color: var(--navy);
  margin: 2.5rem 0 1rem;
}
.article-body h3 {
  font-size: 1.15rem;
  color: var(--navy);
  margin: 2rem 0 0.75rem;
}

/* --- Back link --- */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--blue);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  margin-bottom: 2rem;
}
.back-link:hover { color: var(--navy); }

/* --- Tip box --- */
.tip-box {
  background: var(--light);
  border-left: 4px solid var(--gold);
  padding: 1.25rem 1.5rem;
  border-radius: 0 8px 8px 0;
  margin: 2rem 0;
}
.tip-box strong {
  color: var(--navy);
  display: block;
  margin-bottom: 0.4rem;
}
.tip-box p { margin: 0; font-size: 0.95rem; }
.tip-box ul {
  margin: 0.5rem 0 0;
  padding-left: 1.2rem;
  font-size: 0.95rem;
  line-height: 1.85;
}

/* --- Resto card --- */
.resto-card {
  background: var(--light);
  border-radius: 12px;
  padding: 1.5rem;
  margin: 1.75rem 0;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}
.resto-card img {
  width: 160px;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}
.resto-info h3 { margin-top: 0; margin-bottom: 0.4rem; }
.resto-info .badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--blue);
  color: var(--white);
  border-radius: 4px;
  padding: 0.15rem 0.5rem;
  margin-bottom: 0.6rem;
}

/* --- Photo grid --- */
.photo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 2rem 0;
}
.photo-grid img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}
.photo-grid.three-col {
  grid-template-columns: 1fr 1fr 1fr;
}

/* --- Beach grid (getting-here, beaches) --- */
.beach-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin: 2rem 0;
}
.beach-grid img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}
.beach-grid img:first-child:nth-last-child(odd) {
  grid-column: 1 / -1;
}

/* --- Season grid (best-time) --- */
.season-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin: 2rem 0;
}
.season-card {
  background: var(--light);
  border-radius: 12px;
  padding: 1.5rem;
}
.season-card .season-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.season-good  { border-top: 3px solid #2ecc71; }
.season-hot   { border-top: 3px solid #e67e22; }
.season-busy  { border-top: 3px solid #e74c3c; }
.season-quiet { border-top: 3px solid var(--blue); }

/* --- Day card (itinerary) --- */
.day-card {
  border-left: 3px solid var(--blue);
  padding: 1.5rem 0 1.5rem 1.75rem;
  margin: 0;
  position: relative;
}
.day-card::before {
  content: '';
  position: absolute;
  left: -7px;
  top: 1.75rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--blue);
}

/* --- Responsive --- */
@media (max-width: 600px) {
  .article-hero { height: 380px; }
  .article-hero-overlay { padding: 2rem 1.5rem; }
  .resto-card { flex-direction: column; }
  .resto-card img { width: 100%; height: 200px; }
  .photo-grid { grid-template-columns: 1fr; }
  .photo-grid.three-col { grid-template-columns: 1fr; }
  .beach-grid { grid-template-columns: 1fr; }
  .beach-grid img { height: 200px !important; }
  .season-grid { grid-template-columns: 1fr; }
}
