/* ==========================================================================
   Loyal Travel Co. — Theme 2: Modern Vibrant
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --blue: #1657ff;
  --blue-dark: #0d3fc4;
  --blue-light: #eaf0ff;
  --coral: #ff5d5d;
  --coral-dark: #e14444;
  --green: #17c98f;
  --green-dark: #0fa878;
  --yellow: #ffc043;

  --ink: #10182b;
  --ink-soft: #4a5470;
  --paper: #ffffff;
  --paper-soft: #f6f8fc;
  --border: #e6eaf4;

  --font-head: 'Sora', 'Poppins', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --radius-pill: 999px;

  --shadow-sm: 0 4px 14px rgba(16, 24, 43, 0.06);
  --shadow-md: 0 12px 30px rgba(16, 24, 43, 0.10);
  --shadow-lg: 0 20px 50px rgba(16, 24, 43, 0.16);

  --container: 1180px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.12;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1em; color: var(--ink-soft); }

a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--blue-light);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  margin-bottom: 16px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  padding: 15px 30px;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--coral);
  color: #fff;
  box-shadow: 0 10px 24px rgba(255, 93, 93, 0.35);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 30px rgba(255, 93, 93, 0.42); background: var(--coral-dark); }

.btn-secondary {
  background: #fff;
  color: var(--blue);
  border: 2px solid var(--blue);
}
.btn-secondary:hover { transform: translateY(-3px); background: var(--blue-light); }

.btn-light {
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow-md);
}
.btn-light:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

.btn-block { width: 100%; }
.btn-sm { padding: 10px 20px; font-size: 0.88rem; }

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

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

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo img {
  height: 46px;
  width: 46px;
  object-fit: cover;
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.nav-logo span {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--ink);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--blue-light);
  color: var(--blue);
}

.nav-cta { margin-left: 8px; }

.nav-toggle {
  display: none;
  background: var(--blue-light);
  border: none;
  border-radius: 10px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 3px;
  border-radius: 2px;
  background: var(--blue);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

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

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  color: #fff;
  padding: 90px 0 110px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 85% 20%, rgba(255,192,67,0.35), transparent 45%),
    radial-gradient(circle at 8% 85%, rgba(23,201,143,0.35), transparent 40%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.3);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  color: #fff;
  margin-bottom: 20px;
}

.hero h1 span { color: var(--yellow); }

.hero p.lead {
  color: rgba(255,255,255,0.88);
  font-size: 1.15rem;
  max-width: 520px;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 28px;
  margin-top: 42px;
  flex-wrap: wrap;
}

.hero-stats div strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 800;
}
.hero-stats div span { font-size: 0.85rem; color: rgba(255,255,255,0.78); }

.hero-media {
  position: relative;
}

.hero-media-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transform: rotate(2deg);
  border: 6px solid #fff;
}

.hero-media-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.hero-floating {
  position: absolute;
  bottom: -22px;
  left: -22px;
  background: #fff;
  color: var(--ink);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  transform: rotate(-3deg);
}

.hero-floating .emoji {
  font-size: 1.8rem;
  background: var(--yellow);
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-floating strong { display: block; font-family: var(--font-head); font-size: 0.95rem; }
.hero-floating span { font-size: 0.8rem; color: var(--ink-soft); }

/* ---------------- Sections ---------------- */

section { padding: 88px 0; }

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 52px;
}

.section-head.left { margin: 0 0 44px; text-align: left; }

.section-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }

.section-foot {
  text-align: center;
  margin-top: 44px;
}

/* ---------------- Value props ---------------- */

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

.perk-card {
  padding: 34px 28px;
  border-radius: var(--radius-md);
  background: var(--paper-soft);
  border: 1px solid var(--border);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.perk-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  background: #fff;
}

.perk-icon {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  margin-bottom: 18px;
}

.perk-card:nth-child(1) .perk-icon { background: var(--blue-light); }
.perk-card:nth-child(2) .perk-icon { background: #ffe9e0; }
.perk-card:nth-child(3) .perk-icon { background: #dffaf1; }

.perk-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.perk-card p { margin: 0; font-size: 0.95rem; }

/* ---------------- Colorblock band ---------------- */

.band {
  background: var(--paper-soft);
}

.band-coral { background: var(--coral); color: #fff; }
.band-green { background: var(--green); color: #fff; }
.band-blue { background: var(--blue); color: #fff; }

/* ---------------- Cards grid (properties / tours) ---------------- */

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

.card {
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--paper-soft);
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.card:hover .card-media img { transform: scale(1.08); }

.badge {
  position: absolute;
  top: 14px;
  left: 14px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 7px 13px;
  border-radius: var(--radius-pill);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.badge-coral { background: var(--coral); }
.badge-green { background: var(--green); }
.badge-blue { background: var(--blue); }
.badge-yellow { background: var(--yellow); color: var(--ink); }

.card-price-tag {
  position: absolute;
  bottom: 14px;
  right: 14px;
  background: #fff;
  color: var(--ink);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.9rem;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
}

.card-price-tag small {
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--ink-soft);
  font-size: 0.72rem;
}

.card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.card-body h3 {
  font-size: 1.08rem;
  margin: 0;
}

.card-loc {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--ink-soft);
  font-weight: 500;
}

.card-meta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--ink-soft);
  padding: 10px 0;
  border-top: 1px dashed var(--border);
  border-bottom: 1px dashed var(--border);
}

.card-meta span { display: flex; align-items: center; gap: 5px; }

.card-desc {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin: 0;
  flex: 1;
}

.card-actions {
  display: flex;
  gap: 10px;
  margin-top: auto;
  padding-top: 6px;
}

.card-actions .btn { flex: 1; }

/* ---------------- CTA band ---------------- */

.cta-band {
  background: linear-gradient(135deg, var(--coral), #ff8a5d);
  color: #fff;
  text-align: center;
  border-radius: var(--radius-lg);
  padding: 64px 32px;
  margin: 0 24px;
  max-width: calc(var(--container) - 0px);
}

.cta-wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.cta-band h2 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.6rem); }
.cta-band p { color: rgba(255,255,255,0.92); max-width: 560px; margin: 0 auto 30px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

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

.form-panel {
  background: var(--paper-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-grid .full { grid-column: 1 / -1; }

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--ink);
}

.field input,
.field select,
.field textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  background: #fff;
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px var(--blue-light);
}

.field input[readonly] {
  background: var(--blue-light);
  font-weight: 700;
  color: var(--blue-dark);
  border-color: var(--blue-light);
}

.field textarea { resize: vertical; min-height: 100px; }

.form-note {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-top: 4px;
}

.form-confirm {
  display: none;
  align-items: center;
  gap: 14px;
  background: #dffaf1;
  border: 1.5px solid var(--green);
  color: var(--green-dark);
  padding: 18px 20px;
  border-radius: var(--radius-md);
  margin-top: 20px;
  font-weight: 600;
}

.form-confirm.show { display: flex; }

.form-confirm .emoji { font-size: 1.6rem; }

.form-error {
  display: none;
  align-items: center;
  gap: 14px;
  background: #ffe9e0;
  border: 1.5px solid var(--coral);
  color: var(--coral-dark);
  padding: 18px 20px;
  border-radius: var(--radius-md);
  margin-top: 20px;
  font-weight: 600;
}

.form-error.show { display: flex; }

.form-error .emoji { font-size: 1.6rem; }

.page-hero {
  background: var(--blue);
  color: #fff;
  padding: 64px 0 56px;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 90% 10%, rgba(255,192,67,0.3), transparent 45%),
    radial-gradient(circle at 5% 90%, rgba(23,201,143,0.3), transparent 40%);
}

.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; margin-bottom: 10px; }
.page-hero p { color: rgba(255,255,255,0.85); max-width: 560px; margin: 0; }

.listing-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
}

/* ---------------- Detail pages (property / tour) ---------------- */

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.85rem;
  color: #fff;
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.3);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  margin-bottom: 20px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.back-link:hover { background: rgba(255,255,255,0.28); transform: translateX(-3px); }

.detail-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: start;
}

.detail-gallery {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.detail-main-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 3 / 2;
  background: var(--paper-soft);
}

.detail-main-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.15s ease;
}

.detail-thumbs {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}

.detail-thumb {
  position: relative;
  padding: 0;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  cursor: pointer;
  background: var(--paper-soft);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.detail-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.75;
  transition: opacity 0.2s ease;
}

.detail-thumb:hover { transform: translateY(-2px); }
.detail-thumb:hover img { opacity: 1; }

.detail-thumb.active {
  border-color: var(--coral);
}

.detail-thumb.active img { opacity: 1; }

.detail-info {
  background: var(--paper-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 34px;
}

.detail-price {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.7rem;
  color: var(--coral);
  margin-bottom: 20px;
}

.detail-price span {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-left: 6px;
}

.detail-specs {
  display: flex;
  gap: 14px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.spec {
  flex: 1;
  min-width: 90px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
}

.spec-icon { display: block; font-size: 1.3rem; margin-bottom: 6px; }
.spec strong { display: block; font-family: var(--font-head); font-size: 1.15rem; }
.spec span:last-child { font-size: 0.78rem; color: var(--ink-soft); }

.detail-info p:last-of-type { margin-bottom: 22px; }

.state-box {
  text-align: center;
  max-width: 520px;
  margin: 0 auto;
  padding: 20px 0 8px;
}

.state-badge { background: #ffe9e0; color: var(--coral-dark); }

@media (max-width: 960px) {
  .detail-layout { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .detail-thumbs { grid-template-columns: repeat(3, 1fr); }
}

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

.site-footer {
  background: var(--ink);
  color: #cdd4e6;
  padding: 64px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border-radius: 16px;
  padding: 10px 16px;
  margin-bottom: 16px;
}

.footer-logo img { height: 42px; width: 42px; object-fit: cover; border-radius: 8px; }
.footer-logo span { font-family: var(--font-head); font-weight: 800; color: var(--ink); font-size: 0.95rem; }

.footer-col h4 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.footer-col p, .footer-col a {
  display: block;
  color: #aeb6cc;
  font-size: 0.92rem;
  margin-bottom: 10px;
  transition: color 0.2s ease;
}

.footer-col a:hover { color: #fff; }

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  margin: 0;
}

.footer-social a:hover { background: var(--coral); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.85rem;
  color: #8b93ab;
}

/* ---------------- Loading / empty states ---------------- */

.loading-msg, .empty-msg {
  text-align: center;
  color: var(--ink-soft);
  padding: 40px;
  grid-column: 1 / -1;
  font-weight: 600;
}

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

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .hero-media-card img { height: 300px; }
  .perks { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }

  .nav-links.mobile-open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    gap: 4px;
    box-shadow: var(--shadow-md);
    border-bottom: 1px solid var(--border);
  }

  .nav-links.mobile-open a { padding: 14px 16px; }
  .nav-links.mobile-open .nav-cta { margin-left: 0; }

  .hero { padding: 56px 0 80px; }
  .hero-stats { gap: 20px; }
  section { padding: 60px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .form-panel { padding: 26px; }
  .cta-band { padding: 46px 22px; margin: 0 16px; }
}

@media (max-width: 480px) {
  .hero-floating { left: 8px; bottom: -18px; padding: 12px 14px; }
  .card-actions { flex-direction: column; }
}
