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

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: #1a1a2e;
  background: #fff;
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: color .2s; }
ul { list-style: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

/* ===== COLORS (Kayak-inspired) ===== */
:root {
  --primary: #08496D;
  --primary-light: #0a5f8f;
  --accent: #FF6B35;
  --accent-hover: #e55a28;
  --bg-light: #f5f7fa;
  --bg-section: #eef3f8;
  --text: #1a1a2e;
  --text-light: #5a6677;
  --text-white: #ffffff;
  --border: #dde3eb;
  --shadow: 0 2px 12px rgba(0,0,0,.08);
  --shadow-lg: 0 8px 30px rgba(0,0,0,.12);
  --radius: 12px;
  --radius-sm: 8px;
}

/* ===== TYPOGRAPHY ===== */
h1 { font-size: 2.6rem; font-weight: 800; line-height: 1.2; }
h2 { font-size: 2rem; font-weight: 700; line-height: 1.3; margin-bottom: 16px; color: var(--primary); }
h3 { font-size: 1.25rem; font-weight: 600; line-height: 1.4; margin-bottom: 10px; }
p { margin-bottom: 14px; }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }

/* ===== HEADER ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .3s;
}
.site-header.scrolled { box-shadow: var(--shadow); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo .material-icons-outlined { font-size: 28px; color: var(--accent); }

.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a {
  font-weight: 500;
  font-size: .95rem;
  color: var(--text);
  position: relative;
  padding: 4px 0;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width .3s;
}
.nav-links a:hover::after { width: 100%; }
.nav-links a:hover { color: var(--primary); }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: .3s;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
  margin-top: 45px;
  padding-bottom: 30px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: url('../img/mallorca.webp') center/cover no-repeat;
  z-index: 0;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(8, 73, 109, .6);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0px 0 20px;
}

.hero h1 {
  color: #fff;
  margin-bottom: 16px;
}

.hero-desc {
  font-size: 1.1rem;
  margin-bottom: 24px;
  opacity: .95;
  line-height: 1.7;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-bottom: 36px;
}
.hero-badges span {
  font-size: .95rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(6px);
  padding: 6px 11px;
  border-radius: 50px;
}
.hero-badges .material-icons-outlined { font-size: 20px; color: #FFFFFF; }

.hero-whitelabel {
  background: rgba(255,255,255,.95);
  border-radius: var(--radius);
  padding: 10px 5px;
  max-width: 100%;
  box-shadow: var(--shadow-lg);
  min-height: 363px;
}

/* ===== SECTION GENERAL ===== */
section { padding: 70px 0; }
.section-subtitle {
  color: var(--text-light);
  font-size: 1.05rem;
  margin-bottom: 40px;
}

.bg-light { background: var(--bg-light); }
.bg-section { background: var(--bg-section); }

/* ===== HOW-TO STEPS ===== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.step-card {
  text-align: center;
  padding: 32px 20px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: relative;
  transition: transform .3s, box-shadow .3s;
}
.step-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  margin: 0 auto 16px;
}

.step-card .material-icons-outlined {
  font-size: 40px;
  color: var(--accent);
  margin-bottom: 12px;
}

.step-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.step-card p { font-size: .9rem; color: var(--text-light); margin: 0; }

/* ===== FEATURES 3 columns ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feature-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--accent);
  transition: transform .3s;
}
.feature-card:hover { transform: translateY(-4px); }
.feature-card .material-icons-outlined { font-size: 44px; color: var(--primary); margin-bottom: 16px; }
.feature-card h3 { color: var(--primary); }
.feature-card p { color: var(--text-light); font-size: .95rem; margin: 0; }

/* ===== WHY RENT ===== */
.why-rent-content p { color: var(--text-light); }

.keyword-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.keyword-tags span {
  background: var(--bg-section);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: .85rem;
  font-weight: 500;
  color: var(--primary);
  border: 1px solid var(--border);
}

/* ===== PRICES ===== */
.price-tips {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 40px;
  box-shadow: var(--shadow);
}
.price-tips ul { padding-left: 0; }
.price-tips li {
  padding: 8px 0;
  padding-left: 28px;
  position: relative;
  color: var(--text-light);
}
.price-tips li::before {
  content: 'check_circle';
  font-family: 'Material Icons Outlined';
  position: absolute;
  left: 0;
  color: #4cdf8a;
  font-size: 18px;
}

.car-type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
  margin-bottom: 48px;
}

.car-type-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform .3s;
}
.car-type-card:hover { transform: translateY(-4px); }
.car-type-card .material-icons-outlined { font-size: 44px; color: var(--primary); margin-bottom: 8px; }
.car-type-card h3 { font-size: 1rem; margin-bottom: 4px; }
.car-type-card .price { font-size: 1.3rem; font-weight: 700; color: var(--accent); }
.car-type-card .price small { font-size: .75rem; font-weight: 400; color: var(--text-light); }

.price-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  font-size: .9rem;
}
.price-table th {
  background: var(--primary);
  color: #fff;
  padding: 14px 16px;
  text-align: left;
  font-weight: 600;
  white-space: nowrap;
}
.price-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}
.price-table tbody tr:hover { background: var(--bg-light); }

/* ===== REVIEWS ===== */
.reviews-summary {
  text-align: center;
  margin-bottom: 40px;
}
.reviews-summary .big-rating {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--primary);
}
.reviews-summary .stars { color: #f5a623; font-size: 28px; }
.reviews-summary p { color: var(--text-light); }

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
#reviews h2, #traffic h2, #faq h2 {
  text-align: center !important;
}
.review-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  position: relative;
}
.review-card .stars { color: #f5a623; margin-bottom: 12px; }
.review-card blockquote {
  font-style: italic;
  color: var(--text-light);
  margin-bottom: 16px;
  line-height: 1.6;
}
.review-card .reviewer {
  display: flex;
  align-items: center;
  gap: 12px;
}
.reviewer-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-section);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--primary);
  font-size: 1.1rem;
}
.reviewer-info strong { display: block; font-size: .95rem; }
.reviewer-info span { font-size: .8rem; color: var(--text-light); }

/* ===== TRAFFIC RULES ===== */
.traffic-full {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  margin-bottom: 28px;
}
.traffic-full ul {
  padding-left: 24px;
  list-style: disc;
}
.traffic-full li { padding: 4px 0; color: var(--text-light); }

.traffic-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.traffic-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.traffic-card .material-icons-outlined { font-size: 36px; color: var(--accent); margin-bottom: 12px; }
.traffic-card h3 { color: var(--primary); }
.traffic-card p { color: var(--text-light); font-size: .93rem; margin: 0; }

/* ===== TOP CARS ===== */
.top-cars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.car-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .3s, box-shadow .3s;
}
.car-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.car-card-img {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.car-card-img img { max-height: 160px; object-fit: contain; }

.car-card-body { padding: 24px; }
.car-card-body h3 { color: var(--primary); margin-bottom: 12px; }

.car-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 16px;
}
.car-spec {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .85rem;
  color: var(--text-light);
}
.car-spec .material-icons-outlined { font-size: 18px; color: var(--primary); }

.car-price {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 16px;
}
.car-price small { font-size: .8rem; font-weight: 400; color: var(--text-light); }

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .95rem;
  border: none;
  cursor: pointer;
  transition: background .3s, transform .2s;
  width: 100%;
  justify-content: center;
}
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }

/* ===== FAQ ===== */
.faq-list { max-width: 800px; margin: 0 auto; }

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  overflow: hidden;
  background: #fff;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 18px 24px;
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text);
  transition: background .2s;
}
.faq-question:hover { background: var(--bg-light); }
.faq-question .material-icons-outlined { transition: transform .3s; color: var(--primary); }
.faq-item.active .faq-question .material-icons-outlined { transform: rotate(180deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease, padding .3s;
  padding: 0 24px;
}
.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 0 24px 18px;
}
.faq-answer p { color: var(--text-light); margin: 0; }

/* ===== MODAL ===== */
.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-backdrop.active { display: flex; }

.modal-content {
  background: #fff;
  border-radius: var(--radius);
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 32px;
  position: relative;
}
.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-light);
  font-size: 28px;
  z-index: 10;
}
.modal-close:hover { color: var(--text); }

/* ===== FOOTER ===== */
.site-footer {
  background: var(--primary);
  color: rgba(255,255,255,.85);
  padding: 48px 0 24px;
}
.footer-inner { text-align: center; }
.footer-brand { font-size: 1.2rem; font-weight: 700; color: #fff; margin-bottom: 16px; }
.footer-seo {
  max-width: 700px;
  margin: 0 auto 24px;
  font-size: .85rem;
  line-height: 1.7;
  opacity: .8;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 20px;
}
.footer-links a { color: rgba(255,255,255,.85); font-size: .9rem; transition: color .2s; }
.footer-links a:hover { color: #fff; }
.footer-copy { font-size: .8rem; opacity: .6; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
  .traffic-grid { grid-template-columns: repeat(2, 1fr); }
  .top-cars-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.5rem; }
  section { padding: 48px 0; }

  .nav-links { 
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    width: 100%;
    background: #fff;
    flex-direction: column;
    padding: 20px;
    gap: 16px;
    box-shadow: var(--shadow-lg);
    border-top: 1px solid var(--border);
  }
  .nav-links.open { display: flex; }
  .burger { display: flex; }

  .hero { min-height: 500px; }
  .hero-badges { gap: 8px; }
  .hero-badges span { font-size: .82rem; padding: 6px 12px; }

  .steps-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }
  .traffic-grid { grid-template-columns: 1fr; }
  .top-cars-grid { grid-template-columns: 1fr; }
  .car-specs { grid-template-columns: 1fr; }
}

/* ===== INNER PAGES ===== */
.page-header {
  background: var(--primary);
  color: #fff;
  padding: 100px 0 48px;
  margin-top: 64px;
}
.page-header h1 { color: #fff; font-size: 2.2rem; }

.page-content { padding: 60px 0; }
.page-content h2 { margin-top: 32px; }
.page-content p { color: var(--text-light); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 32px;
}
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
}
.contact-info-item .material-icons-outlined { color: var(--accent); font-size: 28px; margin-top: 2px; }

.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  height: 400px;
}
.map-wrap iframe { width: 100%; height: 100%; border: 0; }

@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* About page */
.about-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin: 32px 0;
}
.about-feature {
  display: flex;
  gap: 16px;
  padding: 24px;
  background: var(--bg-light);
  border-radius: var(--radius);
}
.about-feature .material-icons-outlined { font-size: 36px; color: var(--accent); flex-shrink: 0; }

@media (max-width: 768px) {
  .about-features { grid-template-columns: 1fr; }
}

/* Privacy / legal pages */
.legal-content h2 { font-size: 1.4rem; margin-top: 28px; }
.legal-content h3 { font-size: 1.15rem; margin-top: 20px; color: var(--primary); }
.legal-content ul { padding-left: 24px; list-style: disc; margin-bottom: 16px; }
.legal-content li { color: var(--text-light); padding: 2px 0; }


.links-grid h3 {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  color: #FFFFFF;
}

.links-grid .footer-links-grid {
  margin: 40px 0px;
}

.links-grid .footer-links-grid ul {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px 20px;
}

.links-grid .footer-links-grid ul li a {
  color: #FFFFFF;;
}

.links-grid .footer-links-grid ul li:hover a {
  color: #FF6C36;
}

.why-rent-img {
  float: right;
  width: 400px;
  height: 400px;
  border-radius: 20px;
}

@media (min-width: 768px) {
  #why-rent .flex {
    display: flex;
    align-items: center;
    gap: 40px;
  }
}

@media (max-width: 767px) {
  .why-rent-img {
    margin: 40px 0px;
    float: none;
  }

  .links-grid .footer-links-grid ul {
    display: block;
  }
  .hero-content {
    padding: 0px 10px;
  }
}