/* STRAMP Prototype — custom styles on top of Tailwind CDN */

:root {
  --navy: #1B3A5C;
  --navy-deep: #122A44;
  --teal: #2FA59E;
  --teal-dark: #207872;
  --sunshine: #F0B040;
  --sunshine-warm: #E09A28;
  --cream: #FDF8EE;
  --cream-deep: #F5EEDC;
  --charcoal: #2A2A28;
  --stone: #8A8A82;
  --ink: #111010;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--charcoal);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, .font-serif {
  font-family: 'Fraunces', 'Georgia', serif;
  letter-spacing: -0.01em;
}

/* ----- Logo ----- */
.stramp-logo {
  display: inline-flex;
  align-items: baseline;
  gap: 0.08em;
  font-family: 'Fraunces', 'Georgia', serif;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
}
.stramp-logo .accent-a {
  color: var(--sunshine-warm);
  position: relative;
}
.stramp-logo .accent-a::before {
  content: '';
  position: absolute;
  left: 50%;
  top: -0.3em;
  transform: translateX(-50%);
  width: 0.6em;
  height: 0.3em;
  background: radial-gradient(circle at bottom, var(--sunshine) 0%, transparent 70%);
  border-radius: 50%;
  opacity: 0.7;
  pointer-events: none;
}
.stramp-tagline {
  font-family: 'Inter', sans-serif;
  font-size: 0.64rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal-dark);
  font-weight: 500;
  margin-top: 0.1rem;
}

/* ----- Nav ----- */
.nav-link {
  position: relative;
  color: var(--charcoal);
  font-weight: 500;
  transition: color 120ms ease;
}
.nav-link:hover {
  color: var(--navy);
}
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--teal);
}

/* ----- Buttons ----- */
.btn-primary {
  background: var(--navy);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  transition: background 180ms ease, transform 80ms ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.btn-primary:hover {
  background: var(--navy-deep);
}
.btn-primary:active {
  transform: translateY(1px);
}

.btn-secondary {
  background: white;
  color: var(--navy);
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  border: 1.5px solid var(--navy);
  transition: background 180ms ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.btn-secondary:hover {
  background: var(--cream);
}

.btn-channel {
  background: white;
  color: var(--charcoal);
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  font-weight: 600;
  border: 1.5px solid #E3DCCB;
  transition: all 180ms ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
}
.btn-channel:hover {
  border-color: var(--navy);
  color: var(--navy);
  background: var(--cream);
}

/* ----- Hero ----- */
.hero {
  position: relative;
  min-height: 82vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(18, 42, 68, 0.15) 0%,
    rgba(18, 42, 68, 0.05) 40%,
    rgba(18, 42, 68, 0.65) 100%
  );
  z-index: 1;
}
.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-content {
  position: relative;
  z-index: 2;
  color: white;
  padding: 0 2rem 3.5rem;
  max-width: 62rem;
}
.hero-kicker {
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.9;
  margin-bottom: 1rem;
  font-weight: 500;
}
.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.02;
  font-weight: 600;
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.25);
}
.hero-subtitle {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  max-width: 42rem;
  opacity: 0.95;
  line-height: 1.5;
  font-weight: 400;
}

/* ----- Search bar ----- */
.search-card {
  background: white;
  border-radius: 999px;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0;
  box-shadow: 0 10px 40px rgba(18, 42, 68, 0.18);
  max-width: 780px;
  margin-top: 2.5rem;
}
.search-field {
  padding: 0.75rem 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
  cursor: pointer;
  border-radius: 999px;
  transition: background 140ms ease;
}
.search-field:hover {
  background: var(--cream);
}
.search-field + .search-field {
  border-left: 1px solid #E3DCCB;
}
.search-field:hover + .search-field,
.search-field + .search-field:hover {
  border-left-color: transparent;
}
.search-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--stone);
}
.search-value {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--charcoal);
}
.search-value input {
  outline: none;
  background: transparent;
  font: inherit;
  color: inherit;
  width: 100%;
  border: none;
  padding: 0;
}
.search-btn {
  background: var(--navy);
  color: white;
  border-radius: 999px;
  width: 3.25rem;
  height: 3.25rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  margin-left: 0.25rem;
  transition: background 180ms ease, transform 80ms ease;
}
.search-btn:hover {
  background: var(--teal);
}
.search-btn:active {
  transform: translateY(1px);
}

/* ----- Listing cards ----- */
.listing-card {
  background: white;
  border-radius: 1.25rem;
  overflow: hidden;
  transition: transform 220ms ease, box-shadow 220ms ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid transparent;
}
.listing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(18, 42, 68, 0.12);
  border-color: #EEE5D1;
}
.listing-card-image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  position: relative;
}
.listing-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms ease;
}
.listing-card:hover .listing-card-image img {
  transform: scale(1.04);
}
.listing-card-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(255, 255, 255, 0.95);
  color: var(--navy);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}
.listing-card-body {
  padding: 1.25rem 1.35rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}
.listing-card-location {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-dark);
}
.listing-card-name {
  font-family: 'Fraunces', serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.15;
}
.listing-card-meta {
  font-size: 0.9rem;
  color: var(--stone);
  margin-top: 0.15rem;
}
.listing-card-footer {
  margin-top: auto;
  padding-top: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-top: 1px solid #F1EADB;
}
.listing-card-price {
  font-family: 'Fraunces', serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--charcoal);
}
.listing-card-price small {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  color: var(--stone);
  font-size: 0.85rem;
  margin-left: 0.15rem;
}
.listing-card-channels {
  display: flex;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--stone);
}

/* ----- Badges / pills ----- */
.amenity-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  background: var(--cream-deep);
  color: var(--navy);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
}

/* ----- Filters sidebar ----- */
.filter-group {
  padding: 1.25rem 0;
  border-bottom: 1px solid #EEE5D1;
}
.filter-group:last-child {
  border-bottom: none;
}
.filter-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 0.75rem;
}
.filter-option {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.35rem 0;
  color: var(--charcoal);
  cursor: pointer;
  transition: color 120ms ease;
  font-size: 0.92rem;
}
.filter-option:hover {
  color: var(--navy);
}
.filter-option input[type="checkbox"] {
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--teal);
  cursor: pointer;
}
.filter-chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.filter-chip {
  padding: 0.4rem 0.85rem;
  background: white;
  border: 1px solid #E3DCCB;
  color: var(--charcoal);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 140ms ease;
}
.filter-chip:hover {
  border-color: var(--teal);
}
.filter-chip.active {
  background: var(--navy);
  color: white;
  border-color: var(--navy);
}

/* ----- Gallery ----- */
.gallery-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 0.5rem;
  border-radius: 1.25rem;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}
.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
  transition: opacity 180ms ease;
}
.gallery-grid img:hover {
  opacity: 0.92;
}
.gallery-grid img:first-child {
  grid-row: span 2;
}

/* ----- Section headings ----- */
.section-kicker {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal-dark);
  margin-bottom: 0.75rem;
}
.section-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 600;
  color: var(--navy);
  line-height: 1.1;
  max-width: 44rem;
}

/* ----- Footer ----- */
.site-footer {
  background: var(--navy-deep);
  color: rgba(253, 248, 238, 0.85);
}
.site-footer a {
  color: inherit;
  transition: color 140ms ease;
}
.site-footer a:hover {
  color: var(--sunshine);
}

/* ----- Utilities ----- */
.container-x {
  max-width: 78rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media (max-width: 768px) {
  .hero-content { padding: 0 1.5rem 2.5rem; }
  .search-card { flex-direction: column; border-radius: 1.5rem; padding: 0.75rem; }
  .search-field + .search-field { border-left: none; border-top: 1px solid #E3DCCB; }
  .search-btn { width: 100%; border-radius: 999px; height: 2.75rem; margin-top: 0.35rem; }
  .gallery-grid { grid-template-columns: 1fr; grid-template-rows: auto; aspect-ratio: auto; }
  .gallery-grid img:first-child { grid-row: auto; aspect-ratio: 16/10; }
  .gallery-grid img:not(:first-child) { display: none; }
}
