/* ===== FONTS ===== */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,300&family=DM+Serif+Display:ital@0;1&display=swap');

/* ===== RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Palette pulled from flow.life — warm cream, deep charcoal, earthy accents */
  --cream:        #F3EDDF;   /* exact cream from flow.life SVG */
  --cream-light:  #FAF7F2;   /* lightest background */
  --cream-mid:    #EDE5D4;   /* card surfaces, subtle distinction */
  --border:       #DDD5C4;   /* warm border */
  --charcoal:     #1C1814;   /* primary text / dark bg */
  --charcoal-mid: #3D3428;   /* secondary dark */
  --warm-brown:   #8A7560;   /* muted text */
  --amber:        #C5832A;   /* warm accent (from gradient) */
  --amber-light:  #F5E8D2;   /* light amber tint */
  --rose:         #C47E7E;   /* secondary accent (from gradient) */

  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  --max-width: 880px;
  --radius-sm: 6px;
  --radius:    14px;
  --radius-lg: 22px;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  background: var(--cream-light);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.65;
}

a {
  color: var(--charcoal);
  text-decoration: none;
}

/* ===== SUBPAGE BACKGROUND ===== */
body.subpage {
  background-image: url('../images/waikikiFlyover.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
  background: var(--charcoal);
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.72;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 3.5rem 2rem;
  text-align: center;
  color: var(--cream);
}

.hero-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: auto 0;
  gap: 1rem;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: auto;
  background: rgba(10, 25, 50, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 1rem 1rem 0.1rem;
  border-radius: var(--radius);
}

.hero-footer {
  position: absolute;
  bottom: 3.5rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffffff;
  opacity: 1;
}

.hero-overlay h1 {
  margin-bottom: 0.2rem;
}

.hero-logo {
  width: clamp(220px, 45vw, 400px);
  display: block;
}

.hero-overlay .hero-subtitle {
  font-family: var(--font-body);
  font-size: 1.2rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.7;
  color: #ffffff;
  margin-top: -0.5rem;
}

/* ===== MAIN CONTENT ===== */
.main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.75rem 2rem 1.5rem;
}

.subpage .main {
  padding-top: 10rem;
}

/* ===== INTRO (home page) ===== */
.intro {
  text-align: left;
  max-width: 560px;
  margin: 0.75rem auto 1rem;
  padding: 0 0.5rem;
}

.intro p {
  font-size: 0.875rem;
  font-weight: 400;
  color: #ffffff;
  opacity: 0.85;
  line-height: 1.5;
  margin-bottom: 0;
}

/* ===== CATEGORY NAV (home page) ===== */
.category-nav {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
  margin: 0 auto;
}

.category-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 0.5rem;
  background: rgba(243, 237, 223, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.4);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
  border-radius: 999px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background 0.2s, border-color 0.2s;
}

.category-card:hover {
  background: rgba(243, 237, 223, 0.3);
  border-color: rgba(243, 237, 223, 0.7);
  text-decoration: none;
}

/* ===== PAGE HEADER & TAB NAV (category pages) ===== */
.page-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  margin-bottom: 2rem;
  text-align: center;
  padding: 1rem;
  background: rgba(10, 25, 50, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.page-header h1 a {
  color: #ffffff;
  text-decoration: none;
}

.page-header h1 {
  font-family: var(--font-body);
  font-size: 1.2rem;
  font-weight: 400;
  font-style: normal;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  color: #ffffff;
}

.tab-nav {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  justify-content: center;
}

.tab-nav a {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.4);
  background: rgba(243, 237, 223, 0.15);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: all 0.2s;
}

.tab-nav a:hover {
  background: rgba(243, 237, 223, 0.3);
  border-color: rgba(243, 237, 223, 0.7);
  color: #ffffff;
  text-decoration: none;
}

.tab-nav a.active {
  background: rgba(243, 237, 223, 0.4);
  border-color: rgba(255, 255, 255, 0.8);
  color: #ffffff;
}

.tab-nav a.home-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-left: 0.9rem;
  padding-right: 0.9rem;
  color: #ffffff;
}

.tab-nav a.home-link svg {
  width: 1rem;
  height: 1rem;
  display: block;
}

/* ===== LISTINGS NOTE ===== */

.listings-note {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 0.25rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: #2e6da4;
  margin-top: 0.35rem;
  margin-bottom: 0.5rem;
  padding-right: 50px;
  text-align: right;
}

/* ===== LISTING CARDS ===== */
.listings {
  display: flex;
  flex-direction: column;
  gap: 1px;            /* stacked, hairline-divided look */
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius);
  overflow: hidden;
}

.card {
  background: rgba(255, 255, 255, 0.75);
  padding: 1.2rem 2rem;
}


.card.favorite {
  background: rgba(255, 255, 255, 0.75);
}


.card-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  user-select: none;
}

.favorite-badge img {
  display: block;
  width: 16px;
  height: 16px;
}

.listings-note .favorite-badge img {
  width: 13px;
  height: 13px;
  position: relative;
  top: 2px;
}

.card-chevron {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  color: #2e6da4;
}

.card-chevron svg {
  width: 1rem;
  height: 1rem;
  transition: transform 0.25s ease;
}

.card.open .card-chevron svg {
  transform: rotate(180deg);
}

/* Collapsed by default */
.card-body,
.card-links {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, margin 0.3s ease;
  margin-top: 0;
  margin-bottom: 0;
}

.card.open .card-body {
  max-height: 600px;
  margin-top: 0.75rem;
  margin-bottom: 2rem;
}

.card.open .card-links {
  max-height: 100px;
}

.card-title {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  color: var(--charcoal);
  letter-spacing: 0.01em;
}

.card-header-spacer {
  flex: 1;
}

.favorite-badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.card-body {
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--charcoal);
  line-height: 1.75;
}

.card-body p + p {
  margin-top: 0.6rem;
}

.card-links {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.card-link {
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.4rem 0.88rem;
  border-radius: 999px;
  border: 2px solid rgba(91, 155, 213, 0.4);
  color: #2e6da4;
  background: transparent;
  transition: all 0.2s;
}

.card-link:hover {
  border-color: rgba(91, 155, 213, 0.7);
  color: #2e6da4;
  background: rgba(91, 155, 213, 0.1);
  text-decoration: none;
}

/* ===== MAP BUTTON ===== */
.map-all {
  margin-top: 1.5rem;
  text-align: center;
}

.map-btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ffffff;
  background: rgba(10, 25, 50, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.75);
  border-radius: 999px;
  padding: 0.5rem 1.1rem;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: all 0.2s;
}

.map-btn:hover {
  background: rgba(10, 25, 50, 0.35);
  border-color: rgba(243, 237, 223, 0.7);
  text-decoration: none;
}


/* ===== SUBPAGE FOOTER ===== */
.site-footer {
  text-align: center;
  padding: 2rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffffff;
}

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

.site-footer a:hover {
  text-decoration: underline;
}

/* ===== PORTRAIT LOCK ===== */
@media (orientation: portrait) {
  .hero-logo {
    width: clamp(220px, 45vw, 400px);
  }
}

/* ===== LANDSCAPE LOGO ===== */
@media (orientation: landscape) and (max-width: 1024px) {
  .hero-logo {
    width: clamp(140px, 28vw, 260px);
  }
}

/* ===== LANDSCAPE MOBILE ===== */
@media (max-height: 500px) and (orientation: landscape) {
  .hero-overlay {
    padding: 1.25rem 2rem;
  }

  .hero-footer {
    bottom: 1rem;
  }

  .hero-body {
    gap: 0.4rem;
  }

  .hero-content {
    padding: 0.4rem 1rem 0.1rem;
  }

  .hero-overlay h1 {
    margin-bottom: 0;
    margin-top: 0.75rem;
  }
}

  .hero-overlay .hero-subtitle {
    font-size: 0.9rem;
    margin-top: -0.25rem;
  }

  .intro {
    margin: 0.25rem auto 0.4rem;
  }

  .category-nav {
    gap: 0.5rem;
  }

  .page-header {
    padding: 0.5rem 1rem;
  }

  .page-header h1 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
  }

  .subpage .main {
    padding-top: 6.5rem;
  }
}

@media (min-width: 601px) {
  .category-nav {
    flex-wrap: nowrap;
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
  .hero {
    height: 100vh;
  }

  .hero-overlay {
    padding: 2.5rem 1.5rem;
  }

  .main {
    padding: 0.75rem 1.25rem 1.5rem;
  }

  .subpage .main {
    padding-top: 9rem;
  }

  .tab-nav a {
    font-size: 0.65rem;
    padding: 0.45rem 0.55rem;
    letter-spacing: 0.03em;
  }

  .card {
    padding: 1.2rem 1.25rem;
  }


  .category-nav {
    flex-wrap: wrap;
    gap: 0.65rem;
  }

  .category-card {
    flex: 1 1 calc(50% - 0.65rem);
  }
}
