/* ====== In the Know — Shared Styles ====== */
/* Mobile-first. Breakpoints: 640px, 768px, 1024px */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue: #2563eb;
  --blue-hover: #1d4ed8;
  --bg: #f8fafc;
  --surface: #ffffff;
  --text: #1e293b;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --gold: #f59e0b;
  --radius: 10px;
  --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-hover: 0 10px 25px rgba(0,0,0,0.1), 0 4px 10px rgba(0,0,0,0.05);
}

body {
  font-family: system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 640px) {
  .container { padding: 0 24px; }
}

/* ====== Header ====== */
.header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.header__logo {
  font-weight: 700;
  font-size: 16px;
  color: var(--text);
  text-decoration: none;
}

.header__nav {
  display: flex;
  gap: 8px;
}

.header__link {
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 6px;
  transition: all 0.15s;
}

.header__link:hover {
  color: var(--text);
  background: var(--bg);
}

.header__link--active {
  color: var(--blue);
  font-weight: 600;
}

/* ====== Breadcrumbs ====== */
.breadcrumbs {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
}

.breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  font-size: 13px;
}

.breadcrumbs__item + .breadcrumbs__item::before {
  content: '/';
  margin: 0 8px;
  color: var(--text-muted);
}

.breadcrumbs__link {
  color: var(--blue);
  text-decoration: none;
}

.breadcrumbs__link:hover {
  text-decoration: underline;
}

.breadcrumbs__item--current {
  color: var(--text-muted);
}

/* ====== Hero ====== */
.hero {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: #fff;
  padding: 48px 0 40px;
  text-align: center;
}

.hero__title {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.hero__subtitle {
  font-size: 16px;
  color: #94a3b8;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.5;
}

.hero__count {
  margin-top: 16px;
  font-size: 14px;
  color: var(--blue);
  font-weight: 600;
}

@media (min-width: 640px) {
  .hero { padding: 64px 0 56px; }
  .hero__title { font-size: 40px; }
  .hero__subtitle { font-size: 18px; }
}

/* ====== Filters ====== */
.filters {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  position: sticky;
  top: 56px;
  z-index: 90;
}

.filters__bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 4px;
}

.filters__bar::-webkit-scrollbar { display: none; }

.filter-btn {
  flex-shrink: 0;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}

.filter-btn:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.filter-btn--active {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

/* ====== Listing Grid ====== */
.listings {
  padding: 24px 0 48px;
}

.listings__grid {
  display: grid;
  gap: 16px;
}

@media (min-width: 640px) {
  .listings__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .listings__grid { grid-template-columns: repeat(3, 1fr); }
}

.listings__empty {
  text-align: center;
  padding: 64px 16px;
  color: var(--text-muted);
  font-size: 16px;
  grid-column: 1 / -1;
}

/* ====== Listing Card ====== */
.listing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.2s;
  box-shadow: var(--shadow);
}

.listing-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
  border-color: var(--blue);
}

.listing-card--hidden {
  display: none;
}

.listing-card__link {
  display: block;
  padding: 20px;
  text-decoration: none;
  color: inherit;
}

.listing-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
  gap: 8px;
}

.listing-card__cats {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.listing-card__cat {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--blue);
  background: #eff6ff;
  padding: 2px 8px;
  border-radius: 4px;
}

.listing-card__cat--more {
  color: var(--text-muted);
  background: var(--bg);
}

.listing-card__rating {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}

.listing-card__stars {
  color: var(--gold);
  font-size: 14px;
}

.listing-card__name {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text);
  line-height: 1.3;
}

.listing-card__desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 12px;
}

.listing-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-muted);
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.listing-card__city i {
  margin-right: 4px;
  font-size: 11px;
}

/* ====== Listing Detail Page ====== */
.listing-hero {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: #fff;
  padding: 36px 0 36px;
}

.listing-hero__cats {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.listing-hero__cat {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #fff;
  background: rgba(37, 99, 235, 0.5);
  padding: 3px 10px;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.15s;
}

.listing-hero__cat:hover {
  background: var(--blue);
}

/* ====== County Nav ====== */
.county-nav {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}

.county-nav__bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.county-nav__bar::-webkit-scrollbar { display: none; }

.county-nav__btn {
  flex-shrink: 0;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.15s;
  white-space: nowrap;
}

.county-nav__btn:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.county-nav__btn--active {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

/* ====== County Section (hub page) ====== */
.county-section {
  margin-bottom: 32px;
}

.county-section__title {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 4px;
}

.county-section__link {
  color: var(--text);
  text-decoration: none;
}

.county-section__link:hover {
  color: var(--blue);
}

.county-section__count {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.listing-hero__title {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.listing-hero__city {
  font-size: 15px;
  color: #94a3b8;
  margin-bottom: 10px;
}

.listing-hero__city i {
  margin-right: 4px;
}

.listing-hero__rating {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
}

.listing-hero__stars {
  color: var(--gold);
  font-size: 18px;
}

.listing-hero__score {
  font-weight: 700;
  font-size: 16px;
}

.listing-hero__reviews,
.listing-hero__price {
  color: #94a3b8;
}

.listing-hero__price::before {
  content: '·';
  margin-right: 6px;
}

@media (min-width: 640px) {
  .listing-hero { padding: 48px 0; }
  .listing-hero__title { font-size: 36px; }
}

/* ====== Listing Layout ====== */
.listing-layout {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-top: 24px;
  padding-bottom: 48px;
}

@media (min-width: 768px) {
  .listing-layout {
    flex-direction: row;
    align-items: flex-start;
  }
}

.listing-main {
  flex: 1;
  min-width: 0;
}

.listing-sidebar {
  width: 100%;
}

@media (min-width: 768px) {
  .listing-sidebar {
    width: 320px;
    flex-shrink: 0;
    position: sticky;
    top: 120px;
  }
}

/* ====== Listing Sections ====== */
.listing-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}

.listing-section__title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
}

.listing-section__text {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ====== Listing Details ====== */
.listing-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.listing-detail {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.listing-detail__icon {
  width: 20px;
  color: var(--blue);
  font-size: 16px;
  margin-top: 2px;
  flex-shrink: 0;
  text-align: center;
}

.listing-detail__label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 1px;
}

.listing-detail__value {
  font-size: 15px;
  color: var(--text);
}

.listing-detail__value a {
  color: var(--blue);
  text-decoration: none;
}

.listing-detail__value a:hover {
  text-decoration: underline;
}

/* ====== Map Embed ====== */
.listing-map__embed {
  margin-bottom: 12px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--bg);
  line-height: 0;
}

.listing-map__embed iframe {
  display: block;
}

.listing-map__actions {
  text-align: center;
}

/* ====== Sidebar Card ====== */
.sidebar-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
}

.sidebar-card__title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
}

.sidebar-card__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-size: 14px;
}

.sidebar-card__row + .sidebar-card__row {
  border-top: 1px solid var(--border);
}

.sidebar-card__rating {
  color: var(--gold);
  font-weight: 600;
}

.sidebar-card__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
}

/* ====== Buttons ====== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s;
  border: 2px solid transparent;
}

.btn--primary {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}

.btn--primary:hover {
  background: var(--blue-hover);
  border-color: var(--blue-hover);
}

.btn--outline {
  background: transparent;
  color: var(--blue);
  border-color: var(--blue);
}

.btn--outline:hover {
  background: #eff6ff;
}

.btn--ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: transparent;
}

.btn--ghost:hover {
  color: var(--blue);
  background: var(--bg);
}

.btn--full {
  width: 100%;
}

/* ====== Sections ====== */
.section {
  padding: 48px 0;
}

.section--alt {
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.section__title {
  font-size: 22px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 16px;
}

/* ====== About ====== */
.about__inner {
  max-width: 600px;
  text-align: center;
}

.about__text {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 12px;
}

.about__text a {
  color: var(--blue);
}

/* ====== Footer ====== */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 24px 0;
  margin-top: auto;
}

.footer__inner {
  display: flex;
  justify-content: center;
}

.footer__copy {
  font-size: 13px;
  color: var(--text-muted);
}

.footer__copy a {
  color: var(--blue);
  text-decoration: none;
}

.footer__copy a:hover {
  text-decoration: underline;
}

/* ====== Stars ====== */
.stars {
  color: var(--gold);
}
