/* ============================================================
   LA PLAYITA MIAMI — Guide Pages Shared Stylesheet
   Used by: coffee.html, groceries.html, restaurants.html
   ============================================================ */

/* ---------- CSS VARIABLES ---------------------------------- */
:root {
  --beige:       #F5EFE6;
  --beige-dark:  #EDE3D4;
  --beige-mid:   #FAF6F1;
  --green-deep:  #2D6A4F;
  --green-mid:   #40916C;
  --green-light: #52B788;
  --green-pale:  #D8F3DC;
  --gold:        #C9A84C;
  --gold-light:  #E4C87A;
  --gold-pale:   #FDF5E2;
  --pink-soft:   #F9EEE8;
  --pink-accent: #E8A090;
  --charcoal:    #1C1C1C;
  --dark:        #111111;
  --dark-card:   #1A2018;
  --text-body:   #3A3028;
  --text-muted:  #7A6E67;
  --border:      rgba(201,168,76,0.13);
  --white:       #FFFFFF;
  --shadow-sm:   0 2px 16px rgba(30,20,10,0.07);
  --shadow-md:   0 8px 40px rgba(30,20,10,0.12);
  --shadow-gold: 0 6px 28px rgba(201,168,76,0.28);
  --radius-sm:   12px;
  --radius-md:   20px;
  --radius-lg:   32px;
  --transition:  0.32s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ---------- RESET & BASE ----------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--beige);
  color: var(--text-body);
  line-height: 1.72;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  color: var(--charcoal);
  line-height: 1.25;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ---------- UTILITIES -------------------------------------- */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   STICKY NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 14px 0;
  background: rgba(245,239,230,0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
/* Logo image in guide navbars */
.nav-logo {
  height: 58px;
  width: auto;
  display: block;
  object-fit: contain;
}

.brand-icon { font-size: 1.4rem; }
.brand-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--charcoal);
}

.nav-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--green-deep);
  padding: 8px 18px;
  border: 1.5px solid var(--green-light);
  border-radius: 50px;
  transition: var(--transition);
}
.nav-back:hover {
  background: var(--green-deep);
  color: var(--white);
  border-color: var(--green-deep);
  transform: translateX(-3px);
}

/* ============================================================
   GUIDE HERO HEADER
   ============================================================ */
.guide-hero {
  padding: 120px 0 70px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Each guide has its own color */
.guide-hero.coffee-theme {
  background: linear-gradient(145deg, #3b1f0e 0%, #5c2d10 40%, #4a2209 100%);
}
.guide-hero.grocery-theme {
  /* background set via inline style with real photo */
  background-color: #0d2e1b;
}
.guide-hero.restaurant-theme {
  /* background handled by restaurants.html inline style */
  background-color: #1a0a2e;
}

.guide-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 20% 30%, rgba(255,255,255,0.06) 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at 80% 70%, rgba(201,168,76,0.1) 0%, transparent 60%);
}

.guide-hero-content { position: relative; z-index: 1; }

.guide-hero-icon {
  font-size: 4rem;
  margin-bottom: 16px;
  display: block;
  filter: drop-shadow(0 6px 16px rgba(0,0,0,0.3));
  animation: floatIcon 3s ease-in-out infinite;
}
@keyframes floatIcon {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

.guide-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 14px;
}

.guide-title {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 14px;
  text-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.guide-title em {
  font-style: italic;
  color: var(--gold-light);
}

.guide-subtitle {
  font-size: 1rem;
  color: rgba(255,255,255,0.7);
  font-weight: 300;
  max-width: 480px;
  margin: 0 auto 28px;
}

.guide-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50px;
  padding: 8px 20px;
  font-size: 0.83rem;
  color: rgba(255,255,255,0.8);
  backdrop-filter: blur(6px);
}

/* Wave divider */
.guide-hero-wave {
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  pointer-events: none;
  line-height: 0;
}
.guide-hero-wave svg {
  width: 100%;
  height: 60px;
  display: block;
}

/* ============================================================
   GUIDE CONTENT AREA
   ============================================================ */
.guide-content {
  padding: 70px 0 100px;
}

/* Category label */
.category-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 32px;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(201,168,76,0.2);
  width: 100%;
}

/* PLACES GRID */
.places-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-bottom: 56px;
}

/* PLACE CARD */
.place-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 30px 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(201,168,76,0.08);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  overflow: hidden;
}

.place-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--green-light), var(--gold));
  opacity: 0;
  transition: var(--transition);
}

.place-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 48px rgba(30,20,10,0.13);
  border-color: rgba(201,168,76,0.28);
}
.place-card:hover::before { opacity: 1; }

.place-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.place-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--charcoal);
  line-height: 1.3;
  flex: 1;
}

.place-tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 50px;
  white-space: nowrap;
  flex-shrink: 0;
}
.tag-close { background: var(--green-pale); color: var(--green-deep); }
.tag-popular { background: var(--gold-pale); color: #8a6200; }
.tag-organic { background: #eaf6ee; color: #1a5c3a; }
.tag-classic { background: #f0edf8; color: #4a2d82; }

.place-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.place-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 4px;
  flex-wrap: wrap;
}

.place-distance {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}
.place-distance i { color: var(--green-mid); font-size: 0.75rem; }

/* MAP BUTTONS */
.map-btns {
  display: flex;
  gap: 8px;
}

.map-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 50px;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  text-decoration: none;
  letter-spacing: 0.03em;
}

.map-btn-google {
  background: #4285F4;
  color: var(--white);
}
.map-btn-google:hover {
  background: #2b6fd6;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(66,133,244,0.35);
}

.map-btn-waze {
  background: #33CCFF;
  color: #000;
}
.map-btn-waze:hover {
  background: #00b8e6;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(51,204,255,0.35);
}

/* Featured / full-width card */
.place-card.featured {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: flex-start;
  gap: 24px;
}
.place-card.featured .place-featured-icon {
  font-size: 1.4rem;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--beige);
  border: 1px solid rgba(45,106,79,0.12);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  color: var(--green-mid);
}
.place-card.featured .place-body { flex: 1; }

/* ============================================================
   NOTE BOX
   ============================================================ */
.guide-note {
  background: linear-gradient(135deg, var(--gold-pale), rgba(201,168,76,0.08));
  border: 1.5px solid rgba(201,168,76,0.25);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 40px;
}
.guide-note-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.95rem;
  color: var(--gold);
  background: var(--gold-pale);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: 8px;
}
.guide-note-text { font-size: 0.9rem; color: var(--text-body); line-height: 1.65; }
.guide-note-text strong { color: var(--charcoal); }

/* ============================================================
   SECTION DIVIDER
   ============================================================ */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,168,76,0.25), transparent);
  margin: 48px 0;
}

/* ============================================================
   FOOTER CTA STRIP
   ============================================================ */
.guide-footer-cta {
  background: linear-gradient(135deg, var(--green-deep) 0%, #1b4d35 100%);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  text-align: center;
  margin-top: 20px;
  position: relative;
  overflow: hidden;
}
.guide-footer-cta::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 80% at 50% 50%, rgba(82,183,136,0.15) 0%, transparent 70%);
}
.guide-footer-cta * { position: relative; z-index: 1; }
.guide-footer-cta h3 {
  font-size: 1.6rem;
  color: var(--white);
  margin-bottom: 10px;
}
.guide-footer-cta p {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 24px;
}
.btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  border-radius: 50px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: var(--shadow-gold);
  transition: var(--transition);
  cursor: pointer;
  border: none;
  text-decoration: none;
  letter-spacing: 0.03em;
}
.btn-gold:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(201,168,76,0.45);
}

/* ============================================================
   FOOTER
   ============================================================ */
.page-footer {
  background: var(--charcoal);
  color: rgba(255,255,255,0.55);
  padding: 28px 0;
  text-align: center;
  font-size: 0.92rem;
  font-family: 'Inter', sans-serif;
  margin-top: 0;
}
.page-footer .brand-name { color: rgba(255,255,255,0.85); }
.page-footer a {
  color: rgba(255,255,255,0.75);
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}
.page-footer a:hover { color: var(--gold-light); }
.page-footer .footer-logo-guide {
  height: 44px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.85;
  display: block;
}
.page-footer .footer-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}
.page-footer .footer-divider {
  color: rgba(255,255,255,0.2);
  font-size: 1rem;
  line-height: 1;
}

/* ============================================================
   FADE-UP ANIMATION
   ============================================================ */
.fade-up {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .places-grid { grid-template-columns: 1fr; }
  .place-card.featured { flex-direction: column; }
  .place-card.featured .place-featured-icon { width: 56px; height: 56px; font-size: 2rem; }
  .guide-footer-cta { padding: 36px 24px; }
  .map-btns { flex-wrap: wrap; }
  .guide-hero { padding: 100px 0 60px; }
}

@media (max-width: 480px) {
  .guide-title { font-size: 2rem; }
  .place-card { padding: 22px 18px; }
  .place-card.featured { gap: 16px; }
  .nav-back span { display: none; }
}
