/*
Theme Name: BV Travel Editable
Theme URI: https://bvtravel.co.uk
Author: BV Travel
Description: Editable affiliate travel theme for BV Travel with a dedicated Travelpayouts search area.
Version: 2.0.0
Text Domain: bv-travel-editable
*/

:root {
  --bv-gold: #f7b500;
  --bv-gold-deep: #d99d00;
  --bv-blue: #1167c9;
  --bv-navy: #082b64;
  --bv-sky: #edf6ff;
  --bv-text: #172033;
  --bv-muted: #667085;
  --bv-border: #dde6f0;
  --bv-white: #ffffff;
  --bv-shadow: 0 18px 48px rgba(8, 43, 100, 0.13);
  --bv-radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--bv-text);
  background: #f8fbff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  line-height: 1.55;
}
img { max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
.bv-container { width: min(1160px, calc(100% - 32px)); margin-inline: auto; }

.bv-affiliate-notice {
  padding: 9px 16px;
  background: var(--bv-gold);
  color: #10213d;
  text-align: center;
  font-size: .88rem;
  font-weight: 800;
}

.bv-site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(221,230,240,.9);
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(12px);
}
.admin-bar .bv-site-header { top: 32px; }
.bv-header-row {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.bv-brand { display: block; text-decoration: none; }
.bv-banner-logo { display: block; width: min(455px, 48vw); max-height: 76px; object-fit: contain; object-position: left center; }
.bv-mark-logo { display: none; width: 64px; height: 64px; object-fit: contain; }
.bv-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 0;
  padding: 0;
}
.bv-nav a { text-decoration: none; font-weight: 800; color: var(--bv-navy); }
.bv-nav a:hover { color: var(--bv-blue); }
.bv-nav .menu-item:last-child a {
  display: inline-flex;
  padding: 11px 17px;
  border-radius: 999px;
  color: white;
  background: var(--bv-blue);
}

.bv-hero {
  position: relative;
  overflow: hidden;
  padding: 82px 0 74px;
  color: white;
  background:
    linear-gradient(110deg, rgba(4,31,72,.93), rgba(17,103,201,.62)),
    url("https://images.unsplash.com/photo-1507525428034-b723cf961d3e?auto=format&fit=crop&w=1900&q=85")
    center 55% / cover;
}
.bv-hero::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -160px;
  top: -220px;
  border-radius: 50%;
  background: rgba(247,181,0,.25);
}
.bv-hero-inner { position: relative; z-index: 2; max-width: 780px; }
.bv-eyebrow {
  display: inline-flex;
  padding: 8px 13px;
  border: 1px solid rgba(255,255,255,.38);
  border-radius: 999px;
  background: rgba(255,255,255,.13);
  font-size: .9rem;
  font-weight: 850;
}
.bv-hero h1 {
  margin: 20px 0 16px;
  font-size: clamp(2.7rem, 7vw, 5.5rem);
  line-height: .98;
  letter-spacing: -.06em;
}
.bv-hero p {
  max-width: 660px;
  margin: 0;
  color: rgba(255,255,255,.91);
  font-size: clamp(1rem, 2vw, 1.2rem);
}

.bv-main { padding: 0 0 76px; }
.bv-page-content > * { margin-block: 0; }

.bv-search-slot {
  position: relative;
  z-index: 5;
  width: min(1160px, calc(100% - 32px));
  margin: -34px auto 56px !important;
  padding: 28px !important;
  border: 1px solid var(--bv-border);
  border-radius: 26px;
  background: white;
  box-shadow: var(--bv-shadow);
}
.bv-search-slot h2 {
  margin: 0 0 8px;
  color: var(--bv-navy);
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  letter-spacing: -.04em;
}
.bv-search-slot p { margin: 0; color: var(--bv-muted); }
.bv-search-placeholder {
  padding: 26px;
  border: 2px dashed #b8c7da;
  border-radius: 18px;
  background: #f9fbfe;
  text-align: center;
}
.bv-search-slot iframe,
.bv-search-slot form,
.bv-search-slot script + div { max-width: 100%; }

.bv-section {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto 64px !important;
}
.bv-section h2 {
  color: var(--bv-navy);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
  letter-spacing: -.045em;
}
.bv-section > p { color: var(--bv-muted); max-width: 720px; }

.bv-destination-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.bv-destination-grid > .wp-block-column {
  overflow: hidden;
  padding: 0 0 22px;
  border: 1px solid var(--bv-border);
  border-radius: var(--bv-radius);
  background: white;
  box-shadow: 0 12px 32px rgba(8,43,100,.08);
}
.bv-destination-grid figure { margin: 0 0 18px; }
.bv-destination-grid figure img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}
.bv-destination-grid h3,
.bv-destination-grid p,
.bv-destination-grid .wp-block-buttons {
  margin-left: 20px;
  margin-right: 20px;
}
.bv-destination-grid h3 { color: var(--bv-navy); margin-bottom: 6px; }
.bv-destination-grid p { color: var(--bv-muted); }
.wp-block-button__link {
  border-radius: 12px;
  background: var(--bv-blue);
  font-weight: 800;
}

.bv-how {
  padding: 58px !important;
  border-radius: 28px;
  color: white;
  background: var(--bv-navy);
}
.bv-how h2 { color: white; }
.bv-how p { color: #c1d0e5; }
.bv-how .wp-block-column {
  padding: 20px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 18px;
  background: rgba(255,255,255,.06);
}

.bv-footer {
  padding: 42px 0;
  border-top: 1px solid var(--bv-border);
  background: white;
}
.bv-footer-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 26px;
}
.bv-footer p { max-width: 760px; color: var(--bv-muted); font-size: .88rem; }
.bv-footer-menu ul {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  list-style: none;
  padding: 0;
}
.bv-footer-menu a { font-weight: 750; color: var(--bv-navy); }

.entry-content > *:not(.alignwide):not(.alignfull) {
  max-width: 1160px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 900px) {
  .bv-destination-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .bv-banner-logo { width: min(380px, 54vw); }
}
@media (max-width: 700px) {
  .admin-bar .bv-site-header { top: 46px; }
  .bv-header-row { min-height: 72px; }
  .bv-banner-logo { display: none; }
  .bv-mark-logo { display: block; }
  .bv-nav ul { gap: 12px; font-size: .9rem; }
  .bv-nav li:not(:last-child) { display: none; }
  .bv-hero { padding: 58px 0 64px; }
  .bv-destination-grid { grid-template-columns: 1fr; }
  .bv-how { padding: 30px 20px !important; }
  .bv-footer-row { grid-template-columns: 1fr; }
}
