/* ============================================
   eazyinvites — Custom styles
   Bootstrap handles layout, grid, spacing, forms.
   This file = brand colors + effects Bootstrap can't do.
   ============================================ */

/* ── 1. BRAND TOKENS ── */
:root {
  --linen: #faf8f5;
  --clay: #f0ebe3;
  --sand: #c9b99a;
  --sa: #f5f3f0;
  --earth: #8b7355;
  --danger-custom: #b3433d;
  --ink: #3a2f28;
  --font-display: "Space Grotesk", sans-serif;
  --font-body: "DM Sans", sans-serif;
  --font-serif: "Cormorant Garamond", Georgia, serif;
}

/* ── 2. BASE ── */
html,
body {
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  background: var(--linen);
  color: var(--ink);
  padding-top: 5rem;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
}

/* ── 3. REUSABLE UTILITIES (replace repeated inline styles) ── */
.text-earth {
  color: var(--earth) !important;
}

.text-sand {
  color: var(--sand) !important;
}

.text-linen {
  color: var(--linen) !important;
}

.bg-clay {
  background: var(--clay) !important;
}

.bg-linen {
  background: var(--linen) !important;
}

.border-clay {
  border-color: var(--earth) !important;
}

.border-sand {
  border-color: var(--sand) !important;
}

.eyebrow,
.form-label-brand {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--sand);
}

.eyebrow-lg {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--sand);
}

.form-control-brand {
  border-color: var(--sand);
  border-radius: 0.75rem;
  background: var(--linen);
}

.panel-clay {
  background: var(--clay);
}

.stars {
  color: var(--earth);
  letter-spacing: 0.1em;
}

.stars-sm {
  color: var(--earth);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  opacity: 0.85;
}

.stars-light {
  color: var(--linen);
  letter-spacing: 0.1em;
}

.avatar-circle {
  border-radius: 50%;
  background: var(--earth);
  color: var(--linen);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

.host-avatar {
  width: 3rem;
  height: 3rem;
  font-family: var(--font-display);
}

.review-avatar {
  width: 2.25rem;
  height: 2.25rem;
  font-size: 0.875rem;
}


/* ── 4. NAVBAR (transparent over the home hero, solid after scroll) ── */
.site-nav {
  height: 5rem;
  background: rgba(250, 248, 245, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201, 185, 154, 0.2);
  --nav-text: var(--earth);
  transition: background-color 240ms ease, border-color 240ms ease;
}

.site-nav.navbar-transparent {
  background-color: transparent;
  backdrop-filter: none;
  border-bottom-color: transparent;
}

.site-nav.navbar-transparent.scrolled {
  background-color: rgba(250, 248, 245, 0.95);
  backdrop-filter: blur(12px);
  border-bottom-color: rgba(201, 185, 154, 0.2);
}

@media (max-width: 767.98px) {
  .site-nav.navbar-transparent:not(.scrolled) .navbar-toggler {
    border-color: rgba(250, 248, 245, 0.55);
  }

  .site-nav.navbar-transparent:not(.scrolled) .navbar-toggler-icon {
    filter: invert(1) brightness(2);
  }

  .site-nav.navbar-transparent:not(.scrolled) .navbar-collapse.show,
  .site-nav.navbar-transparent:not(.scrolled) .navbar-collapse.collapsing {
    background: rgba(250, 248, 245, 0.97);
    backdrop-filter: blur(12px);
    padding: 1rem;
    border-radius: 0 0 1rem 1rem;
  }
}

.site-nav .nav-link {
  color: var(--nav-text);
}

/* Brand logo — inline SVG so the page's webfonts apply */
.brand-logo {
  height: 3.1rem;
  width: auto;
  display: block;
}

.footer-logo {
  width: 13rem;
  max-width: 100%;
  height: auto;
  display: block;
}

.logo-eazy,
.logo-tagline {
  fill: var(--ink);
}

.logo-invites,
.logo-mark-earth {
  fill: var(--earth);
}

.logo-mark-sand {
  fill: var(--sand);
}

.site-nav .nav-link {
  opacity: 0.8;
}

.site-nav .nav-link:hover {
  opacity: 1;
}

.host-link {
  border: 1px solid var(--earth);
  border-radius: 2rem;
  color: var(--earth);
  padding: 0.4rem 1rem;
}

.host-link:hover {
  color: var(--linen);
  background: var(--earth);
}


.site-nav .container-fluid {
  position: relative;
}

@media (min-width: 768px) {
  .site-nav .navbar-nav.mx-auto {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
  }
}

/* ── 5. HERO (full-viewport image — Bootstrap has no equivalent) ── */
/* ── 5. HERO ── */
.hero-section-bg {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  height: 100vh;
  margin-top: -5rem;
  background: var(--earth) url('/images/hero.jpg') center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
      rgba(0, 0, 0, 0.15),
      rgba(0, 0, 0, 0.35) 40%,
      rgba(0, 0, 0, 0.6));
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--linen);
  padding: 0 2rem;
  text-align: center;
  max-width: 72rem;
  width: 100%;
  animation: fadeUp 2s ease;
}

.hero-eyebrow {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 5.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 0;
  color: var(--linen);
  opacity: 0.9;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 5.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: 2rem;
  color: var(--linen);
}

.hero-serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 600;
  letter-spacing: 0;
}

.hero-cta {
  background: var(--linen);
  color: var(--earth);
  border-radius: 50px;
  padding: 0.9rem 2.5rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.3s, box-shadow 0.3s;
}

.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
  color: var(--earth);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ── 6. BENTO GRID (CSS Grid — Bootstrap can't do this layout) ── */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 1.5rem;
  height: 50rem;
}

.bento-card {
  position: relative;
  overflow: hidden;
  border-radius: 1.25rem;
  display: block;
  text-decoration: none;
}

.bento-large {
  grid-column: span 2;
  grid-row: span 2;
}

.bento-wide {
  grid-column: span 2;
}

.bento-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s;
}

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

.bento-overlay-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent 60%);
}

.bento-info-overlay {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  right: 2rem;
  color: var(--linen);
}

.bento-small .bento-info-overlay {
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
}

.bento-title {
  font-weight: 700;
}

.bento-large .bento-title {
  font-size: 1.875rem;
}

.bento-wide .bento-title {
  font-size: 1.25rem;
}

.bento-small .bento-title {
  font-size: 1rem;
}

.bento-price {
  margin-top: 0.5rem;
  font-weight: 500;
}

.bento-small .bento-price {
  font-size: 0.8rem;
  margin-top: 0.25rem;
}

.bento-small .stars-light {
  font-size: 0.7rem;
}

.bento-container {
  max-width: 80rem;
}

@media (max-width: 768px) {
  .bento-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    height: auto;
  }

  /* Make all bento cards uniform squares like the regular listing cards */
  .bento-card {
    aspect-ratio: 1 / 1;
    height: auto;
    display: block;
    overflow: hidden;
  }

  /* Reset the desktop-specific grid spans so each card occupies one row */
  .bento-large,
  .bento-wide,
  .bento-small {
    grid-column: auto;
    grid-row: auto;
    height: auto;
  }

  /* ensure images fill the square and keep cover behavior */
  .bento-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  /* Match the normal listing typography/sizing */
  .bento-title { font-size: 1rem; }
  .bento-price { font-size: 0.95rem; }
  .bento-small .bento-price { font-size: 0.95rem; }

  .bento-info-overlay {
    bottom: 0.75rem;
    left: 0.75rem;
    right: 0.75rem;
  }

  /* Ensure large and wide bento titles match small ones on mobile */
  .bento-large .bento-title,
  .bento-wide .bento-title {
    font-size: 1rem;
    line-height: 1.15;
  }
}

@media (max-width: 480px) {
  body {
    padding-top: 3.5rem;
  }
  .hero-section-bg {
    margin-top: -3.5rem;
    /* match the new body padding-top exactly */
  }

  /* On very small screens keep the same square bento cards and slightly reduce text */
  .bento-card { aspect-ratio: 1 / 1; }
  .bento-title { font-size: 0.95rem; }
  .bento-price { font-size: 0.85rem; }
  .bento-info-overlay { bottom: 0.6rem; left: 0.6rem; right: 0.6rem; }
}



/* ── 7. CATEGORY TABS (sticky filter bar) ── */
.category-tabs {
  position: sticky;
  top: 5rem;
  z-index: 30;
  background: rgba(250, 248, 245, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(201, 185, 154, 0.25);
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 1rem 1.5rem;
}

.category-tab {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 0.5rem 0.9rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(139, 115, 85, 0.4);
  white-space: nowrap;
  cursor: pointer;
}

.category-tab:hover,
.category-tab.active {
  color: var(--earth);
  border-bottom-color: var(--earth);
}


/* ── 8. LISTING CARDS ── */
.listing-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s;
}

.listing-col a:hover .listing-img {
  transform: scale(1.05);
}

.listing-title {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--earth);
}

.listing-price {
  font-weight: 500;
  color: var(--earth);
}

.listing-category-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  width: auto;
  height: auto;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  color: white;
  padding: 0.35rem 0.85rem;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  pointer-events: none;
}

/* ── 9. SHOW PAGE ── */
.show-hero-img {
  height: 32rem;
  object-fit: cover;
}

.show-map {
  width: 100%;
  height: 28rem;
}

.price-card {
  background: var(--clay);
  border-radius: 1.5rem;
  padding: 1.75rem;
  top: 7rem;
}

.sidebar-price {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--earth);
}

.review-card {
  background: var(--clay);
  border-radius: 1rem;
  padding: 1.25rem;
}


/* ── 10. BRAND BUTTONS (Bootstrap btn + our colors) ── */
.btn-earth {
  background: var(--earth);
  color: var(--linen);
  border: none;
  border-radius: 50px;
  font-weight: 600;
}

.btn-earth:hover {
  color: var(--earth);
  box-shadow: 0 4px 16px rgba(139, 115, 85, 0.3);
}

.btn-earth-outline {
  background: transparent;
  color: var(--earth);
  border: 1px solid var(--earth);
  border-radius: 50px;
  font-weight: 600;
}

.btn-earth-outline:hover {
  background: var(--earth);
  color: var(--linen);
}

.btn-danger-outline {
  background: transparent;
  color: var(--danger-custom);
  border: 1px solid var(--danger-custom);
  border-radius: 50px;
  font-weight: 600;
}

.btn-danger-outline:hover {
  background: var(--danger-custom);
  color: white;
}

.btn-danger-outline.btn-sm {
  padding: 0.25rem 0.85rem;
  font-size: 0.75rem;
}


/* ── 11. FLASH TOAST ── */
.flash-toast-wrapper {
  position: fixed;
  top: 6rem;
  right: 1.5rem;
  z-index: 9999;
  min-width: 18rem;
  max-width: 24rem;
}

.flash-toast {
  border-radius: 0.75rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  font-size: 0.875rem;
  font-weight: 500;
}


/* ── 12. FOOTER (Bootstrap handles grid — we add brand colors) ── */
.site-footer {
  background: var(--linen);
  border-top: 1px solid rgba(201, 185, 154, 0.25);
  padding: 5rem 0;
}

.footer-brand-dot {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--earth);
}

.footer-blurb {
  max-width: 20rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: rgba(139, 115, 85, 0.65);
}

.footer-heading {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--earth);
  margin-bottom: 1.5rem;
}

.footer-links a {
  color: rgba(139, 115, 85, 0.8);
  text-decoration: none;
  font-size: 0.875rem;
}

.footer-links a:hover {
  color: var(--sand);
}

.footer-socials a {
  color: rgba(139, 115, 85, 0.5);
  font-size: 0.9rem;
  text-decoration: none;
}

.footer-socials a:hover {
  color: var(--earth);
}

.footer-bottom {
  margin-top: 5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(201, 185, 154, 0.2);
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(139, 115, 85, 0.5);
}

.footer-copyright {
  text-transform: none;
  letter-spacing: 0.04em;
  font-size: 0.7rem;
}

.footer-legal-links a {
  color: inherit;
  text-decoration: none;
}

.footer-legal-links a:hover {
  color: var(--earth);
}


/* ── 13. STAR RATINGS (starability plugin overrides) ── */
.starability-result:before {
  color: var(--clay) !important;
}

.starability-result .stars-active:before {
  color: var(--earth) !important;
}

.starability-result {
  font-size: 0.8rem;
}


/*  */

.chat-widget {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
}

.chat-toggle-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  font-size: 1.5rem;
  background: var(--earth);
  color: white;
  cursor: pointer;
}

.chat-box {
  position: absolute;
  bottom: 70px;
  right: 0;
  width: 320px;
  height: 420px;
  background: white;
  border-radius: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.chat-header {
  background: var(--earth);
  color: white;
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
}

.chat-close-btn {
  background: none;
  border: none;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
}

.chat-window {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
  font-size: 0.9rem;
}

.chat-message {
  margin-bottom: 8px;
  padding: 6px 10px;
  border-radius: 8px;
  max-width: 85%;
  word-wrap: break-word;
}

.chat-message.user {
  background: var(--clay);
  color: var(--ink);
  margin-left: auto;
  text-align: right;
}

.chat-message.assistant {
  background: var(--sa);
  margin-right: auto;
}

.chat-input-row {
  display: flex;
  gap: 6px;
  padding: 8px;
  border-top: 1px solid #eee;
}

.chat-input-row input {
  flex: 1;
}