/* =========================================================================
   Travel Miago — frontend styles
   Plain CSS, no build step (Hostinger shared hosting friendly).
   ========================================================================= */

:root {
  --brand: #0e9b70;
  --brand-dark: #0a7d5a;
  --brand-light: #eefbf6;
  --ink: #14201c;
  --muted: #6b7b76;
  --line: #e3eae7;
  --bg: #ffffff;
  --bg-alt: #f6faf8;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(16, 40, 33, .08);
  --shadow-lg: 0 16px 40px rgba(16, 40, 33, .14);
  --max: 1180px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--brand-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.15rem; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: 64px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.section-head p { color: var(--muted); margin: 4px 0 0; }
.text-center { text-align: center; }
.muted { color: var(--muted); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .18s ease;
  text-align: center;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-outline { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-outline:hover { border-color: var(--brand); color: var(--brand-dark); }
.btn-sm { padding: 8px 16px; font-size: .85rem; }
.btn-block { display: block; width: 100%; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { font-size: 1.3rem; font-weight: 800; color: var(--brand-dark); letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.main-nav { display: flex; gap: 22px; margin-left: auto; }
.main-nav a { color: var(--ink); font-size: .93rem; font-weight: 500; }
.main-nav a:hover, .main-nav a.active { color: var(--brand-dark); text-decoration: none; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.header-search input {
  border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 16px; font-size: .85rem; width: 170px; outline: none;
}
.header-search input:focus { border-color: var(--brand); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 4px 0; border-radius: 2px; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 520px;
  display: flex; align-items: center;
  background: linear-gradient(135deg, #08130f, #0e2620 45%, #0a3f30);
  color: #fff; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .45; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,18,14,.35), rgba(6,18,14,.75)); }
.hero-inner { position: relative; z-index: 2; text-align: center; width: 100%; padding: 80px 0; }
.hero-eyebrow { text-transform: uppercase; letter-spacing: .28em; font-size: .72rem; color: #6fd7b3; font-weight: 700; margin-bottom: 14px; }
.hero h1 { color: #fff; margin-bottom: 16px; }
.hero p { color: rgba(255,255,255,.85); max-width: 620px; margin: 0 auto 28px; }

.hero-search {
  background: #fff; border-radius: var(--radius); padding: 12px;
  display: flex; gap: 10px; max-width: 640px; margin: 0 auto;
  box-shadow: var(--shadow-lg); flex-wrap: wrap;
}
.hero-search input, .hero-search select {
  flex: 1 1 160px; border: 1px solid var(--line); border-radius: 10px;
  padding: 12px 14px; font-size: .92rem; outline: none; color: var(--ink);
}
.hero-search input:focus, .hero-search select:focus { border-color: var(--brand); }
.hero-search .btn { flex: 0 0 auto; border-radius: 10px; }

.hero-dots { position: absolute; bottom: 22px; left: 0; right: 0; z-index: 3; display: flex; justify-content: center; gap: 8px; }
.hero-dots button { width: 9px; height: 9px; border-radius: 50%; border: 0; background: rgba(255,255,255,.4); cursor: pointer; padding: 0; }
.hero-dots button.active { background: #fff; width: 24px; border-radius: 999px; }

/* ---------- Page banner (inner pages) ---------- */

.page-banner {
  position: relative; padding: 64px 0; color: #fff;
  background: linear-gradient(135deg, #0a3f30, #0e2620);
  background-size: cover; background-position: center;
}
.page-banner::after { content: ""; position: absolute; inset: 0; background: rgba(8,20,16,.55); }
.page-banner .container { position: relative; z-index: 2; }
.page-banner h1 { color: #fff; margin-bottom: 6px; }
.breadcrumb { font-size: .85rem; color: rgba(255,255,255,.8); }
.breadcrumb a { color: rgba(255,255,255,.9); }

/* ---------- Cards & grid ---------- */

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

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: all .2s ease; display: flex; flex-direction: column;
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.card:hover { text-decoration: none; }
.card-img { height: 200px; background: var(--bg-alt) center/cover no-repeat; position: relative; }
.card-body { padding: 18px; flex: 1; display: flex; flex-direction: column; }
.card-body h3 { margin-bottom: 6px; color: var(--ink); }
.card-meta { font-size: .82rem; color: var(--muted); margin-bottom: 10px; }
.card-desc { font-size: .9rem; color: var(--muted); margin: 0 0 14px; flex: 1; }
.card-price { font-weight: 800; color: var(--brand-dark); font-size: 1.15rem; margin-top: auto; }
.card-price small { font-weight: 400; color: var(--muted); font-size: .75rem; }
.card-price del { color: var(--muted); font-weight: 400; font-size: .9rem; margin-left: 6px; }

.badges { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.badge {
  font-size: .68rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .04em; padding: 4px 10px; border-radius: 999px; color: #fff;
}
.badge-bestseller { background: #d97706; }
.badge-trending { background: #e11d48; }
.badge-featured { background: var(--brand); }
.badge-discount { background: #7c3aed; }

/* Destination tiles */
.tile {
  position: relative; height: 230px; border-radius: var(--radius);
  overflow: hidden; background: var(--bg-alt) center/cover no-repeat; display: block;
}
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.72), transparent 60%); }
.tile span { position: absolute; z-index: 2; bottom: 14px; left: 16px; color: #fff; font-weight: 700; font-size: 1.05rem; }
.tile:hover { text-decoration: none; }
.tile:hover::after { background: linear-gradient(to top, rgba(0,0,0,.82), rgba(14,155,112,.25)); }

/* Feature blocks */
.feature { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.feature-icon { font-size: 1.8rem; margin-bottom: 10px; }
.feature h3 { margin-bottom: 4px; }
.feature p { color: var(--muted); font-size: .9rem; margin: 0; }

/* Testimonials */
.testimonial { padding: 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.stars { color: #f59e0b; letter-spacing: 2px; margin-bottom: 8px; }
.testimonial p { font-size: .93rem; color: var(--muted); margin: 0 0 14px; }
.testimonial cite { font-style: normal; font-weight: 700; font-size: .9rem; display: block; }
.testimonial small { color: var(--muted); }

/* ---------- Detail pages ---------- */

.detail-layout { display: grid; grid-template-columns: 1fr 330px; gap: 40px; align-items: start; }
.detail-body h2 { margin-top: 36px; }
.detail-body h2:first-child { margin-top: 0; }
.prose { color: #3c4b46; }
.prose p { margin: 0 0 1em; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 20px; }

.sidebar-card {
  position: sticky; top: 90px; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); background: #fff;
}
.sidebar-price { font-size: 2rem; font-weight: 800; color: var(--brand-dark); line-height: 1.1; }
.sidebar-card del { color: var(--muted); font-size: 1rem; }

.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { padding: 7px 0 7px 26px; position: relative; font-size: .92rem; border-bottom: 1px solid var(--line); }
.check-list li:last-child { border-bottom: 0; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--brand); font-weight: 700; }
.check-list.cross li::before { content: "✕"; color: #dc2626; }

.itinerary-day { border-left: 3px solid var(--brand); padding: 4px 0 18px 18px; position: relative; }
.itinerary-day::before {
  content: ""; position: absolute; left: -8px; top: 8px; width: 13px; height: 13px;
  border-radius: 50%; background: var(--brand); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--brand);
}
.itinerary-day h4 { margin-bottom: 4px; }
.itinerary-day p { color: var(--muted); font-size: .92rem; margin: 0; }

.accordion { border: 1px solid var(--line); border-radius: 10px; margin-bottom: 10px; overflow: hidden; }
.accordion summary { padding: 14px 18px; cursor: pointer; font-weight: 600; list-style: none; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; float: right; color: var(--brand); font-weight: 700; }
.accordion[open] summary::after { content: "−"; }
.accordion .accordion-body { padding: 0 18px 16px; color: var(--muted); font-size: .93rem; }

.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.gallery-grid img { border-radius: 10px; height: 180px; object-fit: cover; width: 100%; }

/* ---------- Filters ---------- */

.filter-bar {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; align-items: flex-end;
}
.filter-bar .field { flex: 1 1 150px; }
.filter-bar label { display: block; font-size: .78rem; font-weight: 600; color: var(--muted); margin-bottom: 5px; }
.filter-bar input, .filter-bar select {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line);
  border-radius: 9px; font-size: .9rem; outline: none;
}
.filter-bar input:focus, .filter-bar select:focus { border-color: var(--brand); }

/* ---------- Forms ---------- */

.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .87rem; font-weight: 600; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line);
  border-radius: 9px; font-size: .93rem; font-family: inherit; outline: none;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-light); }
.field input.invalid, .field textarea.invalid { border-color: #dc2626; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field-error { color: #dc2626; font-size: .8rem; margin-top: 4px; display: block; }
.form-note { font-size: .82rem; color: var(--muted); }
.required { color: #dc2626; }

/* ---------- Alerts / states ---------- */

.alert { padding: 14px 18px; border-radius: 10px; margin-bottom: 20px; font-size: .92rem; border: 1px solid; }
.alert-success { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }
.alert-error { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.alert-info { background: #eff6ff; border-color: #bfdbfe; color: #1e40af; }
.alert ul { margin: 6px 0 0; padding-left: 18px; }

.empty-state { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty-state-icon { font-size: 2.6rem; margin-bottom: 10px; }

/* ---------- Pagination ---------- */

.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 40px; flex-wrap: wrap; }
.pagination a {
  padding: 9px 14px; border: 1px solid var(--line); border-radius: 9px;
  font-size: .88rem; color: var(--ink); background: #fff;
}
.pagination a:hover { border-color: var(--brand); text-decoration: none; }
.pagination a.active { background: var(--brand); color: #fff; border-color: var(--brand); }
.pagination-gap { padding: 9px 4px; color: var(--muted); }

/* ---------- Footer ---------- */

.site-footer { background: #0c1613; color: #b6c5c0; margin-top: 72px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 40px; padding: 56px 20px; }
.footer-brand { color: #fff; font-size: 1.25rem; font-weight: 800; margin-bottom: 12px; }
.footer-about { font-size: .88rem; color: #93a5a0; margin: 0 0 14px; }
.site-footer h4 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; font-size: .89rem; }
.site-footer a { color: #b6c5c0; }
.site-footer a:hover { color: #fff; }
.social-links { display: flex; gap: 14px; font-size: .85rem; }
.newsletter-form { display: flex; gap: 8px; }
.newsletter-form input { flex: 1; padding: 10px 12px; border: 1px solid #24352f; border-radius: 9px; background: #131f1b; color: #fff; font-size: .85rem; outline: none; }
.newsletter-form input:focus { border-color: var(--brand); }
.footer-bottom { border-top: 1px solid #1b2926; padding: 18px 0; text-align: center; font-size: .8rem; color: #7b8c87; }

.float-whatsapp {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  background: #25d366; color: #fff; padding: 12px 20px; border-radius: 999px;
  font-weight: 700; font-size: .85rem; box-shadow: var(--shadow-lg);
}
.float-whatsapp:hover { text-decoration: none; color: #fff; transform: translateY(-2px); }

/* ---------- Scroll reveal ---------- */

.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .detail-layout { grid-template-columns: 1fr; }
  .sidebar-card { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .header-search { display: none; }
  .main-nav {
    position: absolute; top: 68px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; gap: 0; padding: 8px 20px 16px;
    display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 11px 0; border-bottom: 1px solid var(--line); }
  .header-inner { gap: 12px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { min-height: 440px; }
  .section { padding: 44px 0; }
  .hero-search { flex-direction: column; }
  .hero-search .btn { width: 100%; }
}
