/* =============================================================================
   RuralHomeStays – Mega-menu navbar  v2 (with image cards)
   File: /newtemplate/navbar-v2.css

   Colours and font are inherited from the site's new.css:
     --red:   #af3429   --white:  #ffffff   --black: #000000
     --lilac: #ece1e0   --rose:   #cdaeab
   Body font: 'Noto Sans' (set on body in new.css — not re-declared here).
   ============================================================================= */

/* ── Reset ── */
.rhs-nav *, .rhs-nav *::before, .rhs-nav *::after { box-sizing: border-box; }
.rhs-nav ul { list-style: none; margin: 0; padding: 0; }

/* ── Navbar-only tokens (not duplicating site variables) ── */
:root {
  --rhs-red-dark:  #902820;   /* darker shade of --red for hover states  */
  --rhs-muted:     #888;      /* muted label text – no site equivalent    */
  --rhs-bar-h:     60px;
  --rhs-z-bar:     900;
  --rhs-z-panel:   890;
  --rhs-z-backdrop:880;
  --rhs-z-mobile:  895;
  --rhs-ease:      0.18s ease;
  --rhs-card-r:    10px;
}

/* =============================================================================
   NAV BAR
   ============================================================================= */
.rhs-nav {
  font-size: 1rem;           /* body already sets font-family: 'Noto Sans' */
  position: sticky;
  top: 0;
  z-index: var(--rhs-z-bar);
  width: 100%;
}
.rhs-nav__bar {
  background: var(--red);
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.rhs-nav__inner {
  display: flex;
  align-items: center;
  height: var(--rhs-bar-h);
}
.rhs-nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
  margin-right: 12px;
}
.rhs-nav__logo-text {
  font-family: 'Montserrat', 'Noto Sans', sans-serif;
  font-weight: 700;
  font-size: 17px;
  color: var(--white);
  white-space: nowrap;
  letter-spacing: -.01em;
}
.rhs-nav__links {
  display: flex;
  align-items: stretch;
  height: 100%;
  flex: 1;
  justify-content: flex-end;
}
.rhs-nav__item { display: flex; align-items: stretch; }

.rhs-nav__label {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 14px;
  height: 100%;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  color: var(--white);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: color var(--rhs-ease);
  line-height: 1;
}
.rhs-nav__label:hover,
.rhs-nav__label[aria-expanded="true"] {
  color: rgba(255,255,255,.65);
  background: none;
  text-decoration: none;
}
.rhs-nav__label--link { text-decoration: none; }

.rhs-nav__chevron {
  flex-shrink: 0;
  transition: transform var(--rhs-ease);
}
.rhs-nav__label[aria-expanded="true"] .rhs-nav__chevron { transform: rotate(180deg); }

.rhs-nav__actions {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
  margin-left: 8px;
}
.rhs-nav__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  color: var(--white);
  border-radius: 50%;
  text-decoration: none;
  transition: background var(--rhs-ease);
}
.rhs-nav__icon:hover { background: var(--rhs-red-dark); }

.rhs-nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: 8px;
  border-radius: 4px;
  flex-shrink: 0;
  transition: background var(--rhs-ease);
}
.rhs-nav__burger:hover { background: var(--rhs-red-dark); }
.rhs-nav__burger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--rhs-ease), opacity var(--rhs-ease);
  transform-origin: center;
}
.rhs-nav__burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.rhs-nav__burger.is-open span:nth-child(2) { opacity: 0; }
.rhs-nav__burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* =============================================================================
   DROPDOWN PANELS
   ============================================================================= */
.rhs-panel {
  position: fixed;
  top: var(--rhs-bar-h);
  left: 0;
  width: 100%;
  background: var(--white);
  border-top: 3px solid var(--red);
  box-shadow: 0 8px 30px rgba(0,0,0,.15);
  z-index: var(--rhs-z-panel);
  animation: rhsPanelIn .18s ease both;
}
.rhs-panel[hidden] { display: none; }

@keyframes rhsPanelIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.rhs-panel__inner { padding: 22px 16px 26px; }

.rhs-panel__hdr {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--rhs-muted);
  margin: 0 0 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--lilac);
}

.rhs-panel__body {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* TOP: horizontal pill button row */
.rhs-panel__tabs {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  width: 100%;
  gap: 8px;
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--lilac);
}

.rhs-tab {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  background: none;
  border: 1.5px solid var(--lilac);
  border-radius: 99px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--rhs-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: color var(--rhs-ease), background var(--rhs-ease), border-color var(--rhs-ease);
  line-height: 1;
}
.rhs-tab:hover {
  border-color: var(--red);
  color: var(--red);
  background: var(--lilac);
}
.rhs-tab.is-active {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
  font-weight: 600;
}

/* CONTENT: full width below tabs */
.rhs-panel__content {
  width: 100%;
  overflow: hidden;
}

/* All panes — unified 3-card grid regardless of card count.
   Cards auto-place into cols 1–3; links column always in col 4.
   Fewer than 3 cards leave trailing columns empty (space on right). */
.rhs-pane { display: none; }

.rhs-pane.is-active {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 160px;
  gap: 16px;
  animation: rhsPaneIn .15s ease both;
  align-items: start;
}

/* Links column always pinned to column 4 */
.rhs-pane__links { grid-column: 4; }

@keyframes rhsPaneIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* =============================================================================
   IMAGE CARDS
   ============================================================================= */
.rhs-card {
  position: relative;
  display: block;
  border-radius: var(--rhs-card-r);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--lilac);   /* placeholder while image loads */
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}
.rhs-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0,0,0,.22);
  text-decoration: none;
}
.rhs-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.rhs-card:hover img { transform: scale(1.04); }

.rhs-card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 14px;
  background: linear-gradient(
    to bottom,
    transparent 40%,
    rgba(0,0,0,.22) 65%,
    rgba(0,0,0,.72) 100%
  );
}

.rhs-card__title {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
  line-height: 1.2;
  text-shadow: 0 1px 3px rgba(0,0,0,.4);
}

.rhs-card__btn {
  display: inline-block;
  align-self: flex-start;
  padding: 5px 12px;
  background: var(--white);
  color: var(--red);
  font-size: 1rem;
  font-weight: 700;
  border-radius: 4px;
  transition: background var(--rhs-ease), color var(--rhs-ease);
  white-space: nowrap;
}
.rhs-card:hover .rhs-card__btn {
  background: var(--red);
  color: var(--white);
}

/* =============================================================================
   TEXT LINKS COLUMN  (always grid-column 4)
   ============================================================================= */
.rhs-pane__links {
  display: flex;
  flex-direction: column;
  padding: 0 0 0 16px;
  border-left: 1px solid var(--lilac);
}
.rhs-pane__links--sm { padding-left: 14px; }

.rhs-pane__links-hdr {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--rhs-muted);
  margin-bottom: 8px;
  white-space: nowrap;
}

.rhs-pane__links a {
  font-size: 1rem;
  color: var(--black);
  text-decoration: none;
  padding: 5px 0 5px 8px;
  border-left: 2px solid transparent;
  line-height: 1.2;
  transition: color var(--rhs-ease), border-color var(--rhs-ease), padding-left var(--rhs-ease);
}
.rhs-pane__links a:hover {
  color: var(--red);
  border-left-color: var(--red);
  padding-left: 12px;
}

.rhs-pane__links-all {
  margin-top: 8px;
  font-weight: 700 !important;
  color: var(--red) !important;
  border-left-color: transparent !important;
}
.rhs-pane__links-all:hover {
  border-left-color: var(--red) !important;
}

/* =============================================================================
   DEALS PANEL
   ============================================================================= */
.rhs-panel--slim .rhs-panel__inner { padding-bottom: 20px; }

.rhs-deals-cards {
  display: grid;
  grid-template-columns: repeat(2, 400px);
  gap: 16px;
}

/* =============================================================================
   BACKDROP
   ============================================================================= */
.rhs-backdrop {
  position: fixed;
  inset: 0;
  top: var(--rhs-bar-h);
  background: rgba(0,0,0,.38);
  z-index: var(--rhs-z-backdrop);
  animation: rhsFadeIn .18s ease both;
}
.rhs-backdrop[hidden] { display: none; }
@keyframes rhsFadeIn { from { opacity: 0; } to { opacity: 1; } }


/* =============================================================================
   MOBILE MENU
   ============================================================================= */
.rhs-mobile {
  position: fixed;
  inset: 0;
  top: var(--rhs-bar-h);
  background: var(--white);
  overflow-y: auto;
  z-index: var(--rhs-z-mobile);
  transform: translateX(100%);
  transition: transform .25s cubic-bezier(.4,0,.2,1);
}
.rhs-mobile.is-open { transform: translateX(0); }
.rhs-body-lock { overflow: hidden; }
.rhs-mobile__inner { padding: 0 0 80px; }
.rhs-mobile__group { border-bottom: 1px solid var(--lilac); }

.rhs-mobile__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 15px 20px;
  background: none;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  color: var(--black);
  cursor: pointer;
  text-align: left;
  transition: background var(--rhs-ease);
}
.rhs-mobile__trigger:hover { background: var(--lilac); }
.rhs-mobile__group.is-open .rhs-mobile__trigger { color: var(--red); }
.rhs-mobile__group.is-open .rhs-nav__chevron { transform: rotate(180deg); }

.rhs-mobile__sub { display: none; background: var(--lilac); padding: 4px 0 12px; }
.rhs-mobile__group.is-open .rhs-mobile__sub { display: block; }

.rhs-mobile__sub li a {
  display: block;
  padding: 9px 20px 9px 32px;
  font-size: 1rem;
  color: var(--black);
  text-decoration: none;
  transition: color var(--rhs-ease), background var(--rhs-ease);
}
.rhs-mobile__sub li a:hover { color: var(--red); background: var(--rose); }

.rhs-mobile__label {
  padding: 10px 20px 3px 20px;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--rhs-muted);
}




/* =============================================================================
   RESPONSIVE
   ============================================================================= */
@media (max-width: 1023px) {
  .rhs-nav__links { display: none; }
  .rhs-nav__actions { margin-left: auto; }
  .rhs-nav__burger { display: flex; }
  .rhs-nav__logo-text { font-size: 14px; }
  .rhs-panel { display: none !important; }
}

@media (min-width: 1024px) {
  .rhs-mobile { display: none !important; }
  .rhs-nav__burger { display: none; }
}

/* Compact on 1024–1200px: drop to 2 cards + links */
@media (max-width: 1200px) and (min-width: 1024px) {
  .rhs-nav__label { padding: 0 10px; font-size: 0.9rem; }
  .rhs-nav__logo-text { font-size: 14px; }
  .rhs-pane.is-active {
    grid-template-columns: 1fr 1fr 140px;
  }
  .rhs-pane.is-active .rhs-card:nth-child(3) { display: none; }
  .rhs-pane__links { grid-column: 3; }
}