:root {
  --brand-blue-dark: #0a3d62;
  --brand-blue: #1b6ca8;
  --brand-orange: #ff7a30;
  --brand-orange-dark: #e8631d;
  --bg-light: #f4f8fb;
  --text-dark: #1c2b36;
  --text-muted: #5c6b73;
  --border: #dde5ea;
  --radius: 10px;
  --shadow: 0 4px 16px rgba(10, 61, 98, 0.1);
  font-size: 16px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text-dark);
  background: var(--bg-light);
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

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

/* ---------- Header ---------- */
.site-header {
  background: var(--brand-blue-dark);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,.15);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  max-width: 1200px;
  margin: 0 auto;
  gap: 16px;
  flex-wrap: wrap;
}
.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.logo span { color: var(--brand-orange); }
.logo-icon { height: 40px; width: auto; }
.main-nav {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  align-items: center;
}
.main-nav a, .main-nav .nav-link {
  font-size: .95rem;
  font-weight: 600;
  color: #dbe9f4;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: .15s;
}
.main-nav a:hover, .main-nav a.active,
.main-nav .nav-link:hover, .main-nav .nav-link.active { color: #fff; border-color: var(--brand-orange); }

.nav-item { position: relative; }
.nav-link {
  background: none;
  border: none;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-link .chevron { font-size: .65rem; transition: transform .15s; }
.nav-item.open .nav-link { color: #fff; border-color: var(--brand-orange); }
.nav-item.open .chevron { transform: rotate(180deg); }

.mega-menu {
  display: none;
  position: absolute;
  top: calc(100% + 16px);
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  color: var(--text-dark);
  border-radius: 10px;
  box-shadow: 0 16px 36px rgba(0,0,0,.22);
  padding: 24px 28px 16px;
  min-width: 620px;
  z-index: 300;
  text-align: left;
}
.nav-item.open .mega-menu { display: block; }
.mega-menu-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.mega-menu-cols-deals { grid-template-columns: repeat(3, minmax(180px, 1fr)); }
.mega-col h4 {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--text-muted);
  margin: 0 0 10px;
  font-weight: 700;
}
.mega-col a {
  display: block;
  color: var(--brand-blue-dark);
  font-size: .9rem;
  font-weight: 600;
  padding: 5px 0;
  border-bottom: none;
  white-space: nowrap;
}
.mega-col a:hover { color: var(--brand-orange); border-color: transparent; }
.mega-footer {
  text-align: center;
  border-top: 1px solid var(--border);
  margin-top: 16px;
  padding-top: 14px;
}
.mega-footer a {
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .04em;
  color: var(--brand-blue-dark);
  text-transform: uppercase;
  border-color: transparent;
}
.mega-footer a:hover { color: var(--brand-orange); }

@media (max-width: 900px) {
  .nav-item.open { flex: 1 0 100%; }
  .mega-menu {
    position: static;
    transform: none;
    box-shadow: none;
    border: 1px solid var(--border);
    width: 100%;
    min-width: 0;
    margin-top: 10px;
  }
  .mega-menu-cols, .mega-menu-cols-deals { grid-template-columns: 1fr; gap: 4px; }
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.icon-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: #fff;
  font-size: .9rem;
}
.cart-badge {
  position: absolute;
  top: -8px;
  right: -12px;
  background: var(--brand-orange);
  color: #fff;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: .7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 6px;
  padding: 12px 22px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: .15s;
}
.btn-primary { background: var(--brand-orange); color: #fff; }
.btn-primary:hover { background: var(--brand-orange-dark); }
.btn-secondary { background: var(--brand-blue); color: #fff; }
.btn-secondary:hover { background: var(--brand-blue-dark); }
.btn-outline { background: transparent; border: 2px solid var(--brand-blue); color: var(--brand-blue); }
.btn-outline:hover { background: var(--brand-blue); color: #fff; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .6; cursor: not-allowed; }

/* ---------- Hero / Search widget ---------- */
/* .search-widget is positioned absolutely at the hero's bottom edge so it
   floats consistently regardless of how many lines the hero text wraps to;
   .hero's own margin-bottom reserves the room for the protruding half. */
.hero {
  position: relative;
  background: linear-gradient(rgba(10,61,98,.55), rgba(10,61,98,.55)),
    url("../images/photo-1507525428034-b723cf961d3e.jpg") center/cover no-repeat;
  color: #fff;
  padding: 70px 20px 60px;
  margin-bottom: 70px;
  text-align: center;
}
.hero h1 { font-size: 2.4rem; margin: 0 0 10px; }
.hero p { font-size: 1.15rem; opacity: .95; margin: 0; }

.search-widget {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  width: calc(100% - 40px);
  max-width: 1100px;
  display: grid;
  grid-template-columns: repeat(5, 1fr) auto;
  gap: 12px;
  align-items: end;
  text-align: left;
  color: var(--text-dark);
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translate(-50%, 50%);
}
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label {
  font-size: .78rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .03em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.field select, .field input {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: .95rem;
  background: #fff;
  min-width: 0;
  width: 100%;
}
.search-widget .btn { height: 44px; white-space: nowrap; }

@media (max-width: 900px) {
  .search-widget { grid-template-columns: 1fr 1fr; margin-top: -40px; }
  .hero { padding-bottom: 160px; }
}

/* ---------- Sections ---------- */
.section { padding: 60px 0; }
.section h2 { font-size: 1.8rem; margin-bottom: 6px; }
.section .subtitle { color: var(--text-muted); margin-bottom: 30px; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

/* ---------- Cards ---------- */
.card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .15s;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-4px); }
.card .card-img { position: relative; height: 190px; overflow: hidden; }
.card .card-img img { width: 100%; height: 100%; object-fit: cover; }
.badge-discount {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--brand-orange);
  color: #fff;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: .75rem;
  font-weight: 700;
}
.card-body { padding: 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-body h3 { margin: 0; font-size: 1.05rem; }
.location { color: var(--text-muted); font-size: .85rem; }
.stars { color: #f5a623; font-size: .9rem; }
.review-score { font-size: .8rem; color: var(--text-muted); }
.price-row { margin-top: auto; display: flex; align-items: baseline; gap: 8px; }
.price-old { text-decoration: line-through; color: var(--text-muted); font-size: .85rem; }
.price-new { font-size: 1.4rem; font-weight: 800; color: var(--brand-blue-dark); }
.price-unit { font-size: .78rem; color: var(--text-muted); }
.card-footer { padding: 0 16px 16px; }

/* ---------- Destinations strip ---------- */
.dest-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  height: 180px;
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: flex-end;
  padding: 14px;
  box-shadow: var(--shadow);
}
.dest-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.dest-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(transparent 40%, rgba(0,0,0,.65));
}
.dest-card span { position: relative; z-index: 1; }

/* ---------- Trust / features ---------- */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; text-align: center; }
.feature-icon { font-size: 2rem; margin-bottom: 10px; }

/* ---------- Newsletter ---------- */
.newsletter {
  background: var(--brand-blue-dark);
  color: #fff;
  text-align: center;
  padding: 50px 20px;
}
.newsletter form { display: flex; gap: 10px; max-width: 420px; margin: 20px auto 0; }
.newsletter input { flex: 1; padding: 12px; border-radius: 6px; border: none; }

/* ---------- Footer ---------- */
.site-footer {
  background: #08283a;
  color: #b9cbd6;
  padding: 50px 0 20px;
  font-size: .9rem;
}
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 30px; margin-bottom: 30px; }
.footer-grid h4 { color: #fff; margin-bottom: 12px; font-size: .95rem; }
.footer-grid a { display: block; margin-bottom: 8px; color: #b9cbd6; }
.footer-grid a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 20px; text-align: center; color: #7d92a0; }

/* ---------- Results page layout ---------- */
.results-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  align-items: flex-start;
  padding: 30px 0 60px;
}
.filters-panel {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  position: sticky;
  top: 90px;
}
.filters-panel h3 { margin-top: 0; font-size: 1.1rem; }
.filter-group { margin-bottom: 22px; }
.filter-group h4 { font-size: .85rem; text-transform: uppercase; color: var(--text-muted); margin-bottom: 10px; }
.filter-group label { display: flex; align-items: center; gap: 8px; font-size: .9rem; margin-bottom: 8px; cursor: pointer; }
.range-row { display: flex; gap: 8px; }
.range-row input { width: 100%; padding: 8px; border: 1px solid var(--border); border-radius: 6px; }

.results-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; flex-wrap: wrap; gap: 10px; }
.results-list { display: flex; flex-direction: column; gap: 18px; }
.result-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 260px 1fr auto;
  overflow: hidden;
}
.result-card .card-img { height: auto; }
.result-card .card-body { padding: 18px; }
.result-card .price-box {
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  gap: 10px;
  border-left: 1px solid var(--border);
  min-width: 180px;
}
.amenity-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.amenity-tag { background: var(--bg-light); border: 1px solid var(--border); color: var(--text-muted); font-size: .75rem; padding: 3px 8px; border-radius: 20px; }

@media (max-width: 860px) {
  .results-layout { grid-template-columns: 1fr; }
  .filters-panel { position: static; }
  .result-card { grid-template-columns: 1fr; }
  .result-card .price-box { border-left: none; border-top: 1px solid var(--border); align-items: flex-start; }
}

/* ---------- Breadcrumb ---------- */
.breadcrumb { font-size: .85rem; color: var(--text-muted); padding: 14px 0; }
.breadcrumb a { color: var(--brand-blue); }

/* ---------- Hotel detail page ---------- */
.hotel-gallery { display: grid; grid-template-columns: 2fr 1fr; gap: 10px; height: 420px; border-radius: var(--radius); overflow: hidden; margin-bottom: 30px; }
.hotel-gallery .main-img { height: 100%; overflow: hidden; }
.hotel-gallery .main-img img { width: 100%; height: 100%; object-fit: cover; cursor: pointer; }
.thumb-col { display: grid; grid-template-rows: 1fr 1fr; gap: 10px; }
.thumb-col img { width: 100%; height: 100%; object-fit: cover; cursor: pointer; }

.hotel-layout { display: grid; grid-template-columns: 1fr 340px; gap: 30px; align-items: flex-start; }
.tabs { display: flex; gap: 24px; border-bottom: 2px solid var(--border); margin-bottom: 20px; }
.tab-btn { background: none; border: none; padding: 10px 0; font-weight: 700; color: var(--text-muted); cursor: pointer; border-bottom: 3px solid transparent; font-size: 1rem; }
.tab-btn.active { color: var(--brand-blue-dark); border-color: var(--brand-orange); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

.room-card { display: flex; justify-content: space-between; align-items: center; border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; margin-bottom: 14px; gap: 14px; flex-wrap: wrap; }
.room-card h4 { margin: 0 0 4px; }

.review-item { border-bottom: 1px solid var(--border); padding: 14px 0; }
.review-item:last-child { border-bottom: none; }
.review-item .stars { display:block; margin-bottom: 4px; }

.booking-box {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  position: sticky;
  top: 90px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.booking-box .price-new { font-size: 1.8rem; }
.stepper { display: flex; align-items: center; gap: 10px; }
.stepper button { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--border); background: #fff; font-size: 1.1rem; cursor: pointer; }
.stepper span { min-width: 20px; text-align: center; font-weight: 700; }

/* ---------- Cart / checkout ---------- */
.cart-layout { display: grid; grid-template-columns: 1fr 320px; gap: 30px; align-items: flex-start; padding: 40px 0 60px; }
.cart-item { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); display: grid; grid-template-columns: 140px 1fr auto; gap: 16px; padding: 16px; margin-bottom: 16px; align-items: center; }
.cart-item img { border-radius: 8px; height: 100px; object-fit: cover; }
.summary-box { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; position: sticky; top: 90px; }
.summary-row { display: flex; justify-content: space-between; margin-bottom: 10px; font-size: .95rem; }
.summary-row.total { font-weight: 800; font-size: 1.2rem; border-top: 1px solid var(--border); padding-top: 12px; margin-top: 12px; }
.promo-row { display: flex; gap: 8px; margin: 14px 0; }
.promo-row input { flex: 1; padding: 10px; border: 1px solid var(--border); border-radius: 6px; }
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.empty-state .btn { margin-top: 16px; }

/* ---------- Forms (checkout, account) ---------- */
.form-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px; margin-bottom: 24px; }
.form-card h3 { margin-top: 0; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.form-row.single { grid-template-columns: 1fr; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: .85rem; font-weight: 600; color: var(--text-muted); }
.form-group input, .form-group select { padding: 11px 12px; border: 1px solid var(--border); border-radius: 6px; font-size: .95rem; }
.form-note { font-size: .8rem; color: var(--text-muted); margin-top: 6px; }

.auth-tabs { display: flex; margin-bottom: 20px; border-bottom: 2px solid var(--border); }
.auth-tab { flex: 1; text-align: center; padding: 12px; font-weight: 700; cursor: pointer; color: var(--text-muted); border-bottom: 3px solid transparent; }
.auth-tab.active { color: var(--brand-blue-dark); border-color: var(--brand-orange); }
.auth-panel { display: none; }
.auth-panel.active { display: block; }

.alert { padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; font-size: .9rem; }
.alert-success { background: #e4f7e9; color: #1b7a3d; }
.alert-error { background: #fce8e6; color: #c0392b; }
.alert-info { background: #e7f1fa; color: var(--brand-blue-dark); }

/* ---------- Confirmation ---------- */
.confirmation-box { text-align: center; padding: 60px 20px; }
.confirmation-box .big-check { font-size: 4rem; color: #2ecc71; }
.conf-number { font-size: 1.4rem; font-weight: 800; color: var(--brand-blue-dark); background: #fff; display: inline-block; padding: 12px 28px; border-radius: 8px; box-shadow: var(--shadow); margin: 16px 0; }

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  background: var(--brand-blue-dark);
  color: #fff;
  padding: 40px 20px;
  text-align: center;
}
.page-hero h1 { margin: 0 0 8px; font-size: 2rem; }

@media (max-width: 700px) {
  .hotel-layout { grid-template-columns: 1fr; }
  .cart-layout { grid-template-columns: 1fr; }
  .cart-item { grid-template-columns: 90px 1fr; }
  .form-row { grid-template-columns: 1fr; }
}
