/* Shared styles for internal pages (Experiences, Palio, etc.) */

/* Hero Section */
.hero { max-width: 1100px; margin: 28px auto 0; padding: 0 16px; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 20px; align-items: center; }
.hero h1 { font-size: 32px; margin-bottom: 12px; }
.hero h2 { font-size: 32px; margin-bottom: 12px; color: var(--ink); }
.hero p { color: var(--ink-weak); line-height: 1.6; margin-bottom: 10px; }
.hero.text-center { text-align: center; }

@media(max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 14px; }
  .hero h1, .hero h2 { font-size: 26px; }
}
@media(max-width: 640px) {
  .hero { margin-top: 16px; }
  .hero h1, .hero h2 { font-size: 24px; }
}

/* Tags & Meta Grid */
.tag-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0 14px; }
.tag-row.center { justify-content: center; }
.tag { background: rgba(149, 116, 69, 0.16); color: #5a4427; padding: 6px 10px; border-radius: 6px; font-size: 12px; font-weight: 700; }

.meta-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; margin-top: 6px; }
.meta-item { background: rgba(0, 0, 0, 0.04); border: 1px solid rgba(0, 0, 0, 0.06); border-radius: 8px; padding: 10px 12px; font-size: 13px; color: var(--ink-weak); font-weight: 700; }
.meta-item strong { display: block; font-size: 12px; letter-spacing: 0.02em; text-transform: uppercase; color: #555; margin-bottom: 4px; font-weight: 700; }

.note { margin-top: 10px; font-size: 13px; color: #8a672e; background: rgba(149, 116, 69, 0.1); border: 1px solid rgba(149, 116, 69, 0.2); border-radius: 10px; padding: 10px 12px; }

/* Buttons inside pages */
.btn { background: var(--brand); color: #fff; border: none; border-radius: 999px; padding: 10px 14px; cursor: pointer; font-family: monospace; font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; transition: background .2s ease, transform .2s ease; }
.btn:hover { background: #000; color: #fff; transform: translateY(-1px); }

/* Slider Shell (Specific to internal pages) */
.slider-shell { position: relative; overflow: hidden; border-radius: 16px; background: #0f0f0f; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18); }
.slides { display: flex; transition: transform .6s ease; }
.slide { min-width: 100%; height: 420px; position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.slide img, .slide video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.15) 100%); }

@media(max-width: 900px) { .slide { height: 320px; } }
@media(max-width: 640px) { .slide { height: 260px; } .slide img { object-position: center top; } }

/* Shared Arrow/Dot styles (Extending global if needed or specific overrides) */
.nav-arrows { position: absolute; inset: 0; display: flex; align-items: center; justify-content: space-between; padding: 0 10px; pointer-events: none; }
.nav-arrows button { pointer-events: auto; background: rgba(0, 0, 0, 0.28); border: none; color: #fff; font-size: 18px; padding: 10px 12px; border-radius: 50%; cursor: pointer; transition: background .2s; }
.nav-arrows button:hover { background: rgba(0, 0, 0, 0.45); }

.dots { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 2; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.4); cursor: pointer; border: 1px solid rgba(0, 0, 0, 0.2); }
.dot.active { background: #fff; }

/* Content Sections */
.section { max-width: 900px; margin: 40px auto; padding: 0 16px; }
.section h2 { font-size: 24px; margin-bottom: 12px; }
.section p { color: var(--ink-weak); line-height: 1.6; margin-bottom: 12px; }

/* Itinerary List */
.itinerary { list-style: none; display: grid; gap: 12px; margin: 0; padding: 0; }
.itinerary li { background: #fff; border: 1px solid rgba(0, 0, 0, 0.08); border-radius: 12px; padding: 12px 14px; box-shadow: 0 10px 24px rgba(0, 0, 0, 0.05); }
.itinerary strong { display: block; margin-bottom: 4px; color: var(--ink); }

/* Comparison Slide Specifics (if used inside pages) */
.compare-slide { background: #FAFBED; display: flex; align-items: center; justify-content: center; padding: 14px; min-height: 520px; height: auto; overflow: visible; }
.compare-slide::after { display: none; }
.compare-card { width: 100%; max-width: 900px; margin: 0 auto; display: grid; grid-template-columns: 1fr; gap: 12px; color: #111; }
.compare-visual { position: relative; display: flex; flex-direction: column; gap: 10px; align-items: center; width: 100%; }
.compare-viewport { position: relative; width: 100%; aspect-ratio: var(--compare-aspect, 1760 / 2432); border-radius: 14px; overflow: hidden; background: #0f0f0f; }
.compare-viewport > img, .compare-viewport .compare-after img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare-viewport .compare-after { position: absolute; inset: 0; width: 100%; overflow: hidden; pointer-events: none; clip-path: inset(0 calc(100% - var(--split, 50%)) 0 0); transition: clip-path .08s linear; }
.compare-handle { position: absolute; top: 0; left: 50%; transform: translateX(-50%); height: 100%; width: 2px; background: rgba(255, 255, 255, 0.9); display: flex; align-items: center; justify-content: center; pointer-events: none; }
.compare-handle::before, .compare-handle::after { content: ""; position: absolute; width: 14px; height: 14px; border-radius: 50%; background: #ffffff; border: 2px solid #111; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15); }
.compare-handle::before { top: 16px; }
.compare-handle::after { bottom: 16px; }
.compare-labels { position: absolute; inset: 14px; display: flex; justify-content: space-between; font-size: 13px; font-weight: 700; color: #fff; text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6); pointer-events: none; }
.compare-range { width: 100%; accent-color: var(--brand); }
