﻿/* =================================================
   TOURS FROM MALAGA - PREMIUM LIGHT THEME
================================================= */

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
html { scroll-behavior: smooth; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

:root {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --surface-2: #f4f7fb;
  --line: #e6ecf5;
  --text: #1f2933;
  --muted: #6b7280;
  --navy: #0f1b2d;
  --accent: #2f6f5e;
  --radius: 18px;
  --shadow: 0 14px 40px rgba(15, 27, 45, 0.08);
  --shadow-soft: 0 10px 28px rgba(15, 27, 45, 0.06);
}

body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.container { width: min(1200px, 92%); margin: 0 auto; }
.section { padding: 56px 0; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.list-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 14px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 20px; }

header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.navbar { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 14px 0; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { width: 64px; height: 64px; object-fit: cover; border-radius: 50%; }
.brand .name { font-weight: 850; letter-spacing: -0.01em; }
.brand .tag { font-size: 0.85rem; color: var(--muted); }

.navlinks { display: flex; gap: 18px; }
.navlinks a { font-weight: 650; color: var(--muted); }
.navlinks a:hover { color: var(--navy); }

.nav-ctas { display: flex; gap: 10px; align-items: center; }
.burger {
  display: none;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--navy);
  border-radius: 12px;
  padding: 8px 12px;
  font-size: 1.1rem;
  cursor: pointer;
}
.mobilemenu {
  display: none;
  margin: 0 0 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}
.mobilemenu.open { display: grid; gap: 10px; }
.mobilemenu .row { display: flex; gap: 8px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 16px;
  border-radius: 14px;
  font-weight: 800;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--navy);
  transition: transform 0.08s ease, filter 0.15s ease, background 0.15s ease;
}
.btn-sm { padding: 10px 14px; font-size: 0.9rem; }
.btn:active { transform: translateY(1px); }
.btn-primary { border: none; background: var(--accent); color: #ffffff; }
.btn-primary:hover { background: #255a4c; filter: none; }
.btn-ghost { background: var(--surface); border: 1px solid var(--line); color: var(--navy); }
.btn-ghost:hover { background: var(--surface-2); }

.hero { padding: 48px 0 24px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 20px; }
.hero-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.kicker { color: var(--muted); font-weight: 900; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.72rem; }
.hero h1 { font-size: clamp(1.9rem, 3vw, 2.35rem); line-height: 1.18; margin: 10px 0 8px; color: var(--navy); letter-spacing: -0.02em; }
.hero p { color: var(--muted); max-width: 56ch; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }

.fact, .badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 0.85rem;
  color: var(--navy);
}
.facts { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }

.hero-media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 360px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  background: #0b1220;
}
.hero-carousel .slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.65s ease; }
.hero-carousel .slide.is-active { opacity: 1; }
.hero-carousel img { width: 100%; height: 100%; object-fit: cover; }
.overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15, 27, 45, 0.08), rgba(15, 27, 45, 0.30)); }
.caption { position: absolute; left: 14px; bottom: 14px; }
.carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 999px;
  background: rgba(15, 27, 45, 0.45);
  color: #fff;
  font-size: 1.1rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
}
.carousel-control.prev { left: 10px; }
.carousel-control.next { right: 10px; }
.carousel-control:hover { background: rgba(15, 27, 45, 0.65); }

.card, .panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}
.panel-focus, .panel-recommendation { background: #efe6d8; border-color: #e4d8c6; }
.card { overflow: hidden; }
.thumb { position: relative; height: 180px; overflow: hidden; }
.thumb img { height: 100%; width: 100%; object-fit: cover; }
.thumb-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1;
}
.thumb-tag-alert {
  background: #d72839;
  color: #fff;
}
.fav-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: #0f1b2d;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
}
.fav-btn:hover { filter: brightness(0.98); }
.fav-btn.is-active {
  color: #d72839;
  border-color: #f2c4ca;
}
.fav-icon {
  font-size: 1.2rem;
  line-height: 1;
}
.card .body, .panel { padding: 16px; }
.card h3 { color: var(--navy); letter-spacing: -0.01em; }
.card p, .panel p { color: var(--muted); }
.meta { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0; }
.price { font-weight: 900; color: var(--navy); margin: 10px 0; }
.ctas { display: flex; gap: 8px; flex-wrap: wrap; }
.widget-box {
  margin-top: 10px;
  padding: 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.filters { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin: 14px 0 20px; }
.select, .input {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  border-radius: 12px;
  padding: 10px 12px;
}

.clean { list-style: disc; padding-left: 18px; }
.clean li { margin-bottom: 6px; color: var(--muted); }
.timeline { display: grid; gap: 8px; }
.timeline .t { border-left: 2px solid var(--line); padding-left: 10px; }
.time { font-weight: 700; color: var(--navy); }

.compare-table .guided-col, .highlight-guided { background: rgba(47, 111, 94, 0.06); }
.compare-table .check {
  color: var(--accent);
  font-weight: 800;
  margin-right: 6px;
}

.faq {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  box-shadow: var(--shadow-soft);
}
.faq button {
  width: 100%;
  background: none;
  border: none;
  font-weight: 850;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--navy);
}
.faq .answer { display: none; color: var(--muted); margin-top: 10px; }
.faq.open .answer { display: block; }

.trust-card .body { min-height: 160px; }
.review-carousel { position: relative; }
.review-carousel .slides { position: relative; }
.review-carousel .slide { display: none; }
.review-carousel .slide.is-active { display: block; }
.review-pair { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.review-card .body { min-height: 210px; }
.review-stars {
  color: var(--navy);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  margin-bottom: 8px;
}
.review-person {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.review-avatar {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.45rem;
  font-weight: 800;
  flex-shrink: 0;
}
.review-avatar-orange { background: #ff5630; }
.review-avatar-blue { background: #79b8f3; }
.review-avatar-green { background: #26b06f; }
.review-text { color: var(--navy); font-size: 1.02rem; line-height: 1.45; }
.review-readmore {
  color: #5f677a;
  text-decoration: underline;
  font-weight: 700;
}
.reviewer {
  font-weight: 700;
  color: var(--navy);
  font-size: 1rem;
}
.review-more-wrap {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
}
.review-more-link {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--navy);
  text-decoration: underline;
}

footer {
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding: 40px 0;
}
.small { font-size: 0.9rem; color: var(--muted); }
.sep { border: none; border-top: 1px solid var(--line); margin: 12px 0; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (max-width: 1100px) {
  .filters { grid-template-columns: 1fr 1fr; }
  .review-pair { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .grid-3, .split, .list-2, .footer-grid { grid-template-columns: 1fr; }
  .brand img { width: 58px; height: 58px; }
  .review-pair { grid-template-columns: 1fr; }
  .review-more-link { font-size: 1.35rem; }
  .navlinks, .nav-ctas .btn { display: none; }
  .burger { display: inline-flex; }
}

@media (max-width: 768px) {
  .brand img { width: 48px; height: 48px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { min-height: 300px; }
}

.card-clickable { cursor: pointer; }
.card-clickable:hover { transform: translateY(-2px); transition: transform 0.15s ease; }

