/* =========================================================
   Loyal Travel Co. — Theme 1: "Coastal Boutique"
   Elegant boutique-hotel aesthetic: cream + ink-navy,
   serif display headings, generous whitespace.
   ========================================================= */

:root {
  /* Colors */
  --cream: #faf6ee;
  --cream-alt: #f2ead9;
  --cream-card: #fffdf8;
  --ink: #1c2b45;
  --ink-soft: #33425e;
  --navy: #1b2a4a;
  --navy-deep: #12203a;
  --brand-blue: #2c4a91;
  --brand-blue-light: #4e6bb0;
  --gold: #b98a4e;
  --gold-soft: #e4c690;
  --white: #ffffff;
  --line: #e4dac4;
  --shadow-soft: 0 10px 30px rgba(28, 43, 69, 0.08);
  --shadow-card: 0 14px 34px rgba(28, 43, 69, 0.12);

  /* Type */
  --font-display: "Playfair Display", "Georgia", serif;
  --font-body: "Work Sans", "Helvetica Neue", Arial, sans-serif;

  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 8px;

  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy);
  margin: 0 0 0.5em;
  line-height: 1.15;
  font-weight: 600;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; }

em, .accent {
  font-style: italic;
  color: var(--gold);
}

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

section {
  padding: 88px 0;
}

.section-tight {
  padding: 64px 0;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 14px;
}

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

.section-head p {
  color: var(--ink-soft);
  font-size: 1.05rem;
}

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

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--navy);
  color: var(--white);
  box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
  background: var(--brand-blue);
  transform: translateY(-2px);
}

.btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}

.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-gold {
  background: var(--gold);
  color: var(--white);
}

.btn-gold:hover {
  background: #a37838;
  transform: translateY(-2px);
}

.btn-small {
  padding: 10px 20px;
  font-size: 0.82rem;
}

.btn-block {
  width: 100%;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  max-width: var(--container);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand img {
  height: 52px;
  width: auto;
}

.brand-word {
  display: none;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.main-nav a {
  padding: 10px 16px;
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--ink-soft);
  border-radius: 999px;
  transition: all 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--navy);
  background: var(--cream-alt);
}

.main-nav a.nav-cta,
.main-nav a.nav-cta:hover {
  color: var(--white);
  background: var(--navy);
}

.main-nav a.nav-cta:hover {
  background: var(--brand-blue);
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: var(--navy);
  transition: all 0.25s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

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

.hero {
  position: relative;
  min-height: 88vh;
  max-height: 820px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  color: var(--white);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18, 32, 58, 0.55) 0%, rgba(18, 32, 58, 0.72) 60%, rgba(18, 32, 58, 0.88) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding: 120px 28px 90px;
  margin: 0 auto;
  text-align: center;
}

.hero .eyebrow {
  color: var(--gold-soft);
}

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

.hero h1 em {
  color: var(--gold-soft);
}

.hero p.lead {
  font-size: 1.18rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 560px;
  margin: 0 auto 34px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-actions .btn-outline {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.7);
}

.hero-actions .btn-outline:hover {
  background: var(--white);
  color: var(--navy);
}

/* small page hero (properties/tours) */

.page-hero {
  background: var(--navy);
  color: var(--white);
  padding: 76px 0 64px;
  text-align: center;
  position: relative;
}

.page-hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 40px;
  background: var(--cream);
  border-radius: 40px 40px 0 0;
}

.page-hero h1 { color: var(--white); }
.page-hero .eyebrow { color: var(--gold-soft); }
.page-hero p {
  color: rgba(255,255,255,0.82);
  max-width: 560px;
  margin: 0 auto;
}

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

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

.value-card {
  background: var(--cream-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 34px 28px;
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.value-card .icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--cream-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 1.5rem;
}

.value-card h3 { margin-bottom: 10px; }
.value-card p { color: var(--ink-soft); margin-bottom: 0; font-size: 0.96rem; }

/* ---------- Alt sections ---------- */

.section-alt {
  background: var(--cream-alt);
}

/* ---------- Cards / Grids ---------- */

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

.card-grid.preview {
  grid-template-columns: repeat(4, 1fr);
}

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

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 44px rgba(28, 43, 69, 0.16);
}

.card-img {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--cream-alt);
}

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

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

.card-price-tag {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(27, 42, 74, 0.92);
  color: var(--white);
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

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

.card-location {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 8px;
}

.card-body h3 {
  margin-bottom: 10px;
  font-size: 1.18rem;
}

.card-meta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 0.86rem;
  color: var(--ink-soft);
  margin-bottom: 14px;
}

.card-desc {
  color: var(--ink-soft);
  font-size: 0.92rem;
  margin-bottom: 16px;
  flex: 1;
}

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

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

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

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

.cta-band {
  background: var(--navy);
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(185, 138, 78, 0.25), transparent 55%),
              radial-gradient(circle at 80% 80%, rgba(78, 107, 176, 0.3), transparent 55%);
}

.cta-band .container {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.cta-band h2 { color: var(--white); }
.cta-band h2 em { color: var(--gold-soft); }
.cta-band p { color: rgba(255,255,255,0.82); margin-bottom: 30px; }

.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-band .btn-outline {
  color: var(--white);
  border-color: rgba(255,255,255,0.7);
}
.cta-band .btn-outline:hover {
  background: var(--white);
  color: var(--navy);
}

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

.form-section {
  background: var(--cream-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 44px;
  box-shadow: var(--shadow-soft);
  max-width: 780px;
  margin: 0 auto;
}

.form-section .section-head {
  margin-bottom: 30px;
}

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

.form-grid > * {
  min-width: 0;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

input,
select,
textarea {
  max-width: 100%;
}

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

.form-field label {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--navy);
}

.form-field .hint {
  font-size: 0.76rem;
  color: var(--ink-soft);
  font-weight: 400;
}

input,
select,
textarea {
  font-family: var(--font-body);
  font-size: 0.96rem;
  color: var(--ink);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line);
  background: var(--cream);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(44, 74, 145, 0.14);
}

textarea {
  resize: vertical;
  min-height: 110px;
}

input[readonly] {
  background: var(--cream-alt);
  font-weight: 700;
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 1.15rem;
  border-style: dashed;
}

.form-submit-row {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 6px;
  flex-wrap: wrap;
}

.form-note {
  font-size: 0.8rem;
  color: var(--ink-soft);
}

.form-confirmation {
  display: none;
  grid-column: 1 / -1;
  background: #eef6ec;
  border: 1px solid #bcdcb3;
  color: #2b5a24;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
}

.form-confirmation.visible {
  display: block;
}

.form-confirmation.error {
  background: #fbeaea;
  border-color: #eabcbc;
  color: #7a2a2a;
}

.calc-box {
  grid-column: 1 / -1;
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-md);
  padding: 22px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.calc-box .calc-label {
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold-soft);
}

.calc-box .calc-total {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
}

/* ---------- Content + form split (properties/tours pages) ---------- */

.split-lead {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 50px;
}

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

.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.78);
  padding: 70px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-brand-card {
  background: var(--white);
  display: inline-flex;
  align-items: center;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  margin-bottom: 18px;
}

.footer-brand-card img {
  height: 48px;
  width: auto;
}

.site-footer p {
  font-size: 0.92rem;
  line-height: 1.7;
}

.footer-col h4 {
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 18px;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.78);
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--gold-soft);
}

.social-row {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}

.social-row a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.social-row a:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy-deep);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 26px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.7);
}

/* ---------- Contact page bits (used on index CTA / footer contact) ---------- */

.contact-inline {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ---------- Utility ---------- */

.text-center { text-align: center; }
.mt-lg { margin-top: 48px; }

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

.detail-gallery {
  padding: 32px 0 0;
}

.gallery-main {
  position: relative;
  aspect-ratio: 16 / 9;
  max-height: 560px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--cream-alt);
  box-shadow: var(--shadow-card);
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin-top: 14px;
}

.gallery-thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  background: var(--cream-alt);
  cursor: pointer;
  transition: border-color 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-thumb:hover {
  opacity: 0.85;
}

.gallery-thumb.active,
.gallery-thumb[aria-current="true"] {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px var(--navy);
  opacity: 1;
}

.back-link {
  display: inline-block;
  margin: 30px 0 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.02em;
}

.back-link:hover {
  text-decoration: underline;
}

.detail-content {
  max-width: 760px;
  margin: 18px auto 0;
}

.detail-meta {
  margin-bottom: 18px;
}

.detail-price {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 18px;
}

.detail-desc {
  color: var(--ink-soft);
  font-size: 1.02rem;
  margin-bottom: 0;
}

.detail-desc p {
  margin: 0 0 16px;
}

.detail-desc p:last-child {
  margin-bottom: 0;
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 980px) {
  .card-grid,
  .card-grid.preview {
    grid-template-columns: repeat(2, 1fr);
  }

  .value-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .form-section {
    padding: 32px 24px;
  }
}

@media (max-width: 760px) {
  .main-nav {
    position: fixed;
    top: 79px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--cream);
    flex-direction: column;
    align-items: stretch;
    padding: 20px 24px 40px;
    gap: 4px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
  }

  .main-nav.open {
    transform: translateX(0);
  }

  .main-nav a {
    padding: 16px 10px;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    font-size: 1.05rem;
  }

  .nav-cta {
    margin: 14px 0 0;
  }

  .nav-toggle {
    display: flex;
  }

  section { padding: 60px 0; }

  .hero-content { padding: 100px 24px 70px; }

  .card-grid,
  .card-grid.preview {
    grid-template-columns: 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .calc-box {
    flex-direction: column;
    align-items: flex-start;
  }

  .gallery-main {
    aspect-ratio: 3 / 2;
  }

  .gallery-thumbs {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 480px) {
  .container { padding: 0 20px; }
  h1 { font-size: 2.1rem; }
  .hero { min-height: 92vh; }
}
