/* ============================================================
   landing.css — Landing / Home page
   ============================================================ */

/* ── COTTAGES PREVIEW ── */

.cottages-preview {
  position: relative;
  padding: 70px 40px;
  overflow: hidden;
  background: #2f5e82;
}

.cottages-preview::before {
  content: '';
  position: absolute;
  inset: -30px;
  background: #2f5e82;
  z-index: 0;
}

.cottages-preview > * {
  position: relative;
  z-index: 1;
}

.cottages-preview-title {
  text-align: center;
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--white);
  margin-bottom: 6px;
}

.cottages-preview-sub {
  text-align: center;
  color: rgba(255,255,255,0.65);
  font-size: 0.92rem;
  margin-bottom: 30px;
}

.cottages-preview .cottage-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 26px;
  max-width: 1320px;
  margin: 0 auto;
}

.cottages-preview .cottage-card {
  flex: 1 1 340px;
  max-width: 400px;
  background: rgba(47, 94, 130, 0.35);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.22);
}

.cottages-preview .cottage-card-img {
  height: 210px;
}

.cottage-card-desc {
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Translucent "glass" cards, tinted dark (independent of the section's now-bright
   turquoise backdrop) so the white card text stays legible -- overrides only apply
   within .cottages-preview, leaving the shared .cottage-card styling used by the
   owner/customer dashboards untouched. */

.cottages-preview .cottage-card-name {
  color: var(--white);
  font-weight: 700;
}

.cottages-preview .cottage-card-name span {
  color: rgba(255,255,255,0.7) !important;
}

.cottages-preview .cottage-card-meta {
  color: rgba(255,255,255,0.6);
}

.cottages-preview .cottage-card-price {
  color: var(--white);
}

.cottages-preview .cottage-card-price span {
  color: rgba(255,255,255,0.55);
}

/* ── CATEGORY TABS ── */

.cottages-preview-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 32px;
}

.cottages-tab {
  padding: 9px 20px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 500;
  background: rgba(4, 25, 38, 0.35);
  color: rgba(255,255,255,0.85);
  border: 1px solid rgba(255,255,255,0.28);
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-body);
}

.cottages-tab:hover {
  background: rgba(4, 25, 38, 0.55);
  color: var(--white);
}

.cottages-tab.active {
  background: var(--white);
  color: var(--ocean-deep);
  border-color: var(--white);
}

/* ── BROWSE ALL ── */

.cottages-preview-browse-all {
  text-align: center;
  margin-top: 32px;
}

@media (max-width: 900px) {
  .cottages-preview .cottage-card {
    flex-basis: 45%;
  }
}

@media (max-width: 600px) {
  .cottages-preview .cottage-card {
    flex-basis: 100%;
    max-width: 420px;
  }
}

/* ── HERO ── */

.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-color: #04101c;
  background-image:
    radial-gradient(
      ellipse 720px 480px at 78% 42%,
      rgba(4,14,28,0.5) 0%,
      rgba(4,14,28,0.28) 55%,
      transparent 100%
    ),
    linear-gradient(
      260deg,
      rgba(4,14,28,0.55) 0%,
      rgba(4,14,28,0.28) 40%,
      rgba(4,14,28,0.12) 60%,
      rgba(4,14,28,0.18) 100%
    ),
    linear-gradient(
      180deg,
      rgba(4,14,28,0.2) 0%,
      rgba(4,14,28,0.03) 20%,
      rgba(4,14,28,0.06) 55%,
      rgba(4,14,28,0.42) 100%
    ),
    url('frontpage.png');

  background-position: center, center, center, center;
  background-size: cover, cover, cover, cover;
  background-repeat: no-repeat, no-repeat, no-repeat, no-repeat;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 140px 40px 130px;
  display: flex;
  justify-content: flex-end;
}

.hero-content {
  color: var(--white);
  max-width: 620px;
  text-align: right;
  animation: fadeUp 1.1s ease both;
}

.hero-title {
  font-family: var(--font-body);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.15;
  margin-bottom: 22px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 24px rgba(0,0,0,0.5);
}

.hero-title em {
  color: var(--tide);
  font-style: normal;
}

.hero-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.85);
  max-width: 460px;
  margin: 0 0 42px;
  line-height: 1.7;
  font-weight: 300;
  text-shadow: 0 1px 14px rgba(0,0,0,0.55);
}

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

@media (max-width: 900px) {
  .hero-inner {
    padding: 120px 20px 90px;
  }

  .hero-content {
    text-align: center;
    max-width: 100%;
    margin: 0 auto;
  }

  .hero-sub {
    margin: 0 auto 32px;
  }

  .hero-actions {
    justify-content: center;
  }

  .navbar-links {
    display: none;
  }
}

/* ── AUTH PAGES (Sign In / Create Account) ── */

.acct-type-buttons {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.acct-type-buttons .btn {
  flex: 1;
}

.auth-step-desc {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 8px;
}

/* ── AUTH MODALS (Log In / Sign Up popups on the landing page) ── */

.auth-modal {
  background: rgba(255,255,255,0.35);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: var(--r-xl);
  padding: 40px 48px 32px;
  max-width: 480px;
  box-shadow: var(--shadow-lg);
  /* Scroll inside the popup on short screens instead of being cut off,
     without showing a scrollbar */
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  scrollbar-width: none;
}
.auth-modal::-webkit-scrollbar { display: none; }

.auth-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  color: var(--ocean-deep);
}

.auth-logo {
  text-align: center;
  margin-top: 0;
  margin-bottom: 0;
}

.auth-logo-name-img {
  display: block;
  margin: 0 auto;
  width: 150px;
  height: auto;
  filter: brightness(0.8) saturate(1.1);
}

.auth-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--ocean-deep);
  margin: 6px 0 20px;
  text-align: center;
}

.auth-modal .form-group {
  margin-bottom: 18px;
}

@media (max-width: 600px) {
  .auth-modal {
    padding: 28px 22px;
  }
}

/* ── FEATURES STRIP ── */

.features-strip {
  background: #ffffff;
  padding: 60px 40px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  max-width: 960px;
  margin: 0 auto;
}

.feature-item {
  text-align: center;
  color: rgba(0,0,0,0.8);
  background: rgba(47, 94, 130, 0.35);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid #000;
  border-radius: 14px;
  padding: 28px 20px;
}

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  color: #000;
}

.feature-icon svg {
  width: 34px;
  height: 34px;
}

.feature-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: #000;
  margin-bottom: 6px;
}

.feature-desc {
  font-size: 0.82rem;
  line-height: 1.6;
  color: rgba(0,0,0,0.6);
}

/* ── NAVBAR LINKS — sliding underline on hover (landing page only) ── */

.navbar-links a {
  position: relative;
  padding: 8px 4px;
}

.navbar-links a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 2px;
  height: 2px;
  background: var(--tide);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.navbar-links a:hover::after {
  transform: scaleX(1);
}

/* ── BEST RATED COTTAGES — white section, translucent ocean cards ── */

#best-cottages {
  background: #ffffff;
}

#best-cottages::before {
  background: #ffffff;
}

#best-cottages .cottages-preview-title {
  color: var(--ocean-deep);
}

#best-cottages .cottages-preview-sub {
  color: var(--muted);
}

#best-cottages .cottage-card {
  background: rgba(15, 95, 168, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.22);
}

#best-cottages .cottage-card-name span,
#best-cottages .cottage-card-meta,
#best-cottages .cottage-card-price span {
  color: var(--white) !important;
}

#best-cottages .btn-outline {
  background: var(--ocean);
  color: var(--white);
  border-color: var(--ocean);
}

#best-cottages .btn-outline:hover {
  background: var(--ocean-deep);
  border-color: var(--ocean-deep);
  color: var(--white);
}

/* ── CONTACT CARD (used at the bottom of the home page) ── */

.contact-card {
  max-width: 480px;
  margin: 0 auto;
  padding: 36px 32px;
  text-align: center;
  background: rgba(47, 94, 130, 0.35);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: var(--r-lg);
}

.contact-detail-list {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  color: rgba(255,255,255,0.85);
  font-size: 0.95rem;
}

.contact-detail-list li {
  margin-bottom: 10px;
}

.contact-note {
  color: rgba(255,255,255,0.55);
  font-size: 0.85rem;
  margin: 0;
}

/* ── FAQ ACCORDION ── */

.faq-list {
  max-width: 760px;
  margin: 0 auto;
}

.faq-group-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--ocean-deep);
  margin: 28px 0 12px;
}

.faq-group-title:first-child {
  margin-top: 0;
}

.faq-item {
  background: rgba(47, 94, 130, 0.08);
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 10px;
  color: #000;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.96rem;
  list-style: none;
  position: relative;
  padding-right: 26px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 0;
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--ocean);
}

.faq-item[open] summary::after {
  content: '−';
}

.faq-item p {
  margin: 10px 0 2px;
  font-size: 0.88rem;
  line-height: 1.65;
  color: rgba(0,0,0,0.65);
}

/* ── LOG IN MODAL — links black instead of blue, underline kept ── */

#loginModal .link-btn {
  color: #000;
}

#loginModal .link-btn:hover {
  color: #000;
  opacity: 0.7;
}

/* ── SIGN UP MODAL — links black instead of blue, underline kept ── */

#signupModal .link-btn {
  color: #000;
}

#signupModal .link-btn:hover {
  color: #000;
  opacity: 0.7;
}

/* Hints and password rules (password-rules.js): the default muted grey disappears
   on the translucent auth modal, so use the dark text color here instead. */
.auth-modal .form-hint,
.auth-modal .pw-rules {
  color: var(--ink);
}

.auth-modal .form-hint {
  display: block;
  line-height: 1.4;
}

.auth-modal .pw-rules li.met {
  color: #0f6b30;
  font-weight: 600;
}