/* ==========================================================================
   Choice Lounge — Primary Stylesheet
   Nyamyumba, Rubavu District, Rwanda
   ========================================================================== */

:root {
  --color-primary: #0F6B78;
  --color-primary-dark: #094750;
  --color-primary-light: #168a9b;
  --color-secondary: #2E8B72;
  --color-secondary-dark: #1f614f;
  --color-accent: #E6A23C;
  --color-accent-hover: #cf8a24;
  --color-dark: #17252A;
  --color-body: #334155;
  --color-muted: #64748B;
  --color-light: #F8FAF9;
  --color-white: #FFFFFF;
  --color-border: #E2E8F0;
  --color-card-bg: #FFFFFF;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Base Reset & Typography */
body {
  font-family: var(--font-main);
  color: var(--color-body);
  background-color: var(--color-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--color-dark);
  font-weight: 700;
  letter-spacing: -0.02em;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: all 0.2s ease-in-out;
}

a:hover {
  color: var(--color-primary-dark);
}

/* Navbar */
.navbar-choice {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  transition: all 0.3s ease;
  padding: 0.85rem 0;
}

.navbar-brand-logo {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--color-primary) !important;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: -0.03em;
}

.navbar-brand-logo .brand-badge {
  font-size: 0.65rem;
  font-weight: 600;
  background-color: #E6F3F4;
  color: var(--color-primary);
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.nav-link {
  font-weight: 600;
  color: var(--color-dark) !important;
  font-size: 0.95rem;
  padding: 0.5rem 0.9rem !important;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--color-primary) !important;
  background-color: rgba(15, 107, 120, 0.06);
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 520px;
  background: linear-gradient(135deg, rgba(15, 107, 120, 0.88), rgba(23, 37, 42, 0.82)),
              url('../images/hero-bg.jpg') center/cover no-repeat;
  color: var(--color-white);
  padding: 5rem 0 7rem;
  display: flex;
  align-items: center;
}

.hero-content {
  max-width: 720px;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  color: var(--color-white);
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
  font-weight: 400;
}

/* Search Box Container */
.search-box-wrapper {
  margin-top: -3.5rem;
  position: relative;
  z-index: 20;
}

.search-card {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(15, 107, 120, 0.1);
  padding: 1.5rem;
}

.search-field-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-muted);
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.search-input {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 0.65rem 0.9rem;
  font-weight: 600;
  color: var(--color-dark);
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.search-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(15, 107, 120, 0.15);
  outline: none;
}

/* Custom Buttons */
.btn-choice {
  background-color: var(--color-primary);
  color: var(--color-white);
  font-weight: 600;
  border-radius: var(--radius-md);
  padding: 0.65rem 1.4rem;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
}

.btn-choice:hover {
  background-color: var(--color-primary-dark);
  color: var(--color-white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-accent {
  background-color: var(--color-accent);
  color: #2c1a00;
  font-weight: 700;
  border-radius: var(--radius-md);
  padding: 0.65rem 1.4rem;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
}

.btn-accent:hover {
  background-color: var(--color-accent-hover);
  color: #2c1a00;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-outline-choice {
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  background: transparent;
  font-weight: 600;
  border-radius: var(--radius-md);
  padding: 0.6rem 1.3rem;
  transition: all 0.2s ease;
}

.btn-outline-choice:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
}

/* Accommodation Cards */
.accommodation-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.accommodation-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(15, 107, 120, 0.25);
}

.card-img-wrapper {
  position: relative;
  height: 220px;
  overflow: hidden;
  background-color: #E2E8F0;
}

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

.accommodation-card:hover .card-img-wrapper img {
  transform: scale(1.04);
}

.card-type-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(23, 37, 42, 0.8);
  backdrop-filter: blur(4px);
  color: var(--color-white);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.card-price-badge {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(4px);
  color: var(--color-dark);
  font-size: 0.9rem;
  font-weight: 800;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
}

.card-content {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-title {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.card-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  font-size: 0.85rem;
  color: var(--color-muted);
  margin-bottom: 0.9rem;
}

.card-spec-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.card-amenities-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.amenity-chip {
  background: #F1F5F9;
  font-size: 0.75rem;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
  color: var(--color-body);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

/* Rating Badge */
.rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-dark);
  white-space: nowrap;
}

.rating-badge i {
  color: #F59E0B;
  font-size: 0.8rem;
}

.rating-badge .rating-count {
  color: var(--color-muted);
  font-weight: 500;
  font-size: 0.78rem;
}

.rating-badge-new {
  color: var(--color-secondary);
}

.rating-badge-new i {
  color: var(--color-secondary);
}

/* Feature & Attraction Cards */
.feature-box {
  background: var(--color-white);
  padding: 2rem 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  text-align: center;
  height: 100%;
  transition: all 0.3s ease;
}

.feature-box:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary-light);
}

.feature-icon-wrapper {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #EBF5F6;
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 1.25rem;
}

.attraction-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  overflow: hidden;
  height: 100%;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

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

.attraction-img {
  height: 170px;
  width: 100%;
  object-fit: cover;
}

/* Reviews */
.review-card {
  background: var(--color-white);
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  height: 100%;
}

.star-rating {
  color: #F59E0B;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

/* Floating WhatsApp Button */
.whatsapp-float-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 58px;
  height: 58px;
  background-color: #25D366;
  color: white !important;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.whatsapp-float-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

/* Detail Page Gallery */
.gallery-main-img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.gallery-thumb {
  width: 100%;
  height: 90px;
  object-fit: cover;
  border-radius: var(--radius-md);
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s ease;
}

.gallery-thumb.active, .gallery-thumb:hover {
  border-color: var(--color-primary);
  opacity: 0.85;
}

/* Booking Flow Step Bar */
.booking-steps {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2rem;
  position: relative;
}

.booking-steps::before {
  content: '';
  position: absolute;
  top: 18px;
  left: 30px;
  right: 30px;
  height: 3px;
  background: var(--color-border);
  z-index: 1;
}

.booking-step-item {
  position: relative;
  z-index: 2;
  background: var(--color-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 0.5rem;
}

.step-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-border);
  color: var(--color-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}

.step-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-muted);
}

.booking-step-item.active .step-circle {
  background: var(--color-primary);
  color: white;
}

.booking-step-item.active .step-label {
  color: var(--color-primary);
}

.booking-step-item.completed .step-circle {
  background: var(--color-secondary);
  color: white;
}

/* Footer */
.footer-choice {
  background-color: var(--color-dark);
  color: #94A3B8;
  padding: 4rem 0 2rem;
  font-size: 0.92rem;
}

.footer-choice h5 {
  color: var(--color-white);
  font-size: 1.05rem;
  margin-bottom: 1.25rem;
}

.footer-choice a {
  color: #94A3B8;
}

.footer-choice a:hover {
  color: var(--color-white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  margin-top: 3rem;
  font-size: 0.85rem;
}

/* ==========================================================================
   Mobile App Experience
   Bottom tab bar, swipeable card rows, sticky CTA bars, booking-flow chips —
   turns the mobile view into an app-like booking experience.
   ========================================================================== */

:root {
  --mobile-bar-height: 64px;
}

/* Bottom Tab Bar */
.mobile-tab-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1030;
  display: flex;
  height: var(--mobile-bar-height);
  background: var(--color-white);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.06);
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.mobile-tab-item {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  color: var(--color-muted);
  font-size: 0.68rem;
  font-weight: 600;
  text-decoration: none;
}

.mobile-tab-item i {
  font-size: 1.25rem;
  line-height: 1;
}

.mobile-tab-item.active {
  color: var(--color-primary);
}

@media (max-width: 991.98px) {
  body {
    padding-bottom: calc(var(--mobile-bar-height) + env(safe-area-inset-bottom, 0px));
  }

  .whatsapp-float-btn {
    bottom: calc(var(--mobile-bar-height) + 14px);
    width: 50px;
    height: 50px;
    font-size: 26px;
  }
}

/* Sticky Mobile Booking CTA (accommodation & checkout pages) */
.mobile-sticky-cta {
  display: none;
}

@media (max-width: 991.98px) {
  .mobile-sticky-cta {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1030;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    height: var(--mobile-bar-height);
    padding: 0 1rem;
    padding-bottom: env(safe-area-inset-bottom, 0);
    background: var(--color-white);
    border-top: 1px solid var(--color-border);
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
  }

  .mobile-sticky-cta .cta-price {
    line-height: 1.1;
  }

  .mobile-sticky-cta .cta-price strong {
    font-size: 1.05rem;
    color: var(--color-primary);
  }

  .mobile-sticky-cta .cta-price small {
    display: block;
    color: var(--color-muted);
    font-size: 0.7rem;
  }

  .mobile-sticky-cta .btn {
    white-space: nowrap;
  }
}

/* Swipeable Card Rows (homepage preview sections) */
@media (max-width: 767.98px) {
  .mobile-scroll {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.5rem;
    margin-left: calc(-1 * var(--bs-gutter-x, 1.5rem) / 2);
    margin-right: calc(-1 * var(--bs-gutter-x, 1.5rem) / 2);
    scrollbar-width: none;
  }

  .mobile-scroll::-webkit-scrollbar {
    display: none;
  }

  .mobile-scroll > [class*="col-"] {
    flex: 0 0 86%;
    max-width: 86%;
    scroll-snap-align: start;
  }
}

/* Booking Preference Chips */
.preference-chip-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.preference-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1rem;
  border: 1.5px solid var(--color-border);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-body);
  background: var(--color-white);
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.preference-chip i {
  color: var(--color-muted);
}

.preference-chip-input:checked + .preference-chip {
  background: rgba(15, 107, 120, 0.08);
  border-color: var(--color-primary);
  color: var(--color-primary-dark);
}

.preference-chip-input:checked + .preference-chip i {
  color: var(--color-primary);
}

.preference-chip-input:focus-visible + .preference-chip {
  box-shadow: 0 0 0 3px rgba(15, 107, 120, 0.15);
}

/* Payment Method Selector */
.payment-method-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.payment-method-card {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
  height: 100%;
}

.payment-method-card .pm-icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #F1F5F9;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.payment-method-card .pm-check {
  margin-left: auto;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--color-border);
  flex-shrink: 0;
}

.payment-method-input:checked + .payment-method-card {
  border-color: var(--color-primary);
  background: rgba(15, 107, 120, 0.05);
  box-shadow: 0 0 0 3px rgba(15, 107, 120, 0.1);
}

.payment-method-input:checked + .payment-method-card .pm-icon {
  background: var(--color-primary);
  color: var(--color-white);
}

.payment-method-input:checked + .payment-method-card .pm-check {
  border-color: var(--color-primary);
  border-width: 6px;
}

.payment-method-input:focus-visible + .payment-method-card {
  box-shadow: 0 0 0 3px rgba(15, 107, 120, 0.15);
}

/* Small-screen layout refinements */
@media (max-width: 767.98px) {
  .hero-section {
    min-height: 420px;
    padding: 3.5rem 0 5.5rem;
    text-align: center;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-content .d-flex {
    justify-content: center;
  }

  .search-card {
    padding: 1rem;
  }

  .booking-step-item .step-label {
    font-size: 0.7rem;
  }
}

/* Print Styles */
@media print {
  .no-print, .navbar-choice, .footer-choice, .whatsapp-float-btn, .mobile-tab-bar, .mobile-sticky-cta {
    display: none !important;
  }
  body {
    background: white !important;
    color: black !important;
  }
  .printable-voucher {
    border: 1px solid #ccc !important;
    box-shadow: none !important;
    padding: 0 !important;
  }
}
