/*!
 * Log Price Guide — homepage (hero, search, photo tiles, listing cards)
 * Depends on lpg-shared-chrome.css
 */

.submitted-thanks {
  margin: 0;
  padding: 16px 28px;
  background: var(--soft, #f8fafc);
  color: var(--ink, #111827);
  text-align: center;
  border-bottom: 1px solid var(--line, #e5e7eb);
}
.submitted-thanks p {
  margin: 0 auto;
  max-width: 720px;
  font-size: 16px;
  line-height: 1.45;
}
.submitted-thanks[hidden] { display: none; }

.hero {
  position: relative;
  min-height: 0;
  color: var(--ink);
  padding: 48px 28px 56px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  text-align: center;
  background-color: var(--paper);
  overflow: hidden;
}
.hero picture {
  display: block;
  width: 100%;
  max-width: 720px;
  margin: 0 0 28px;
  border-radius: var(--radius, 12px);
  overflow: hidden;
  border: 1px solid var(--line, #e5e7eb);
  aspect-ratio: 16 / 9;
  background: var(--soft, #f8fafc);
}
.hero-photo {
  position: static;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero::after {
  content: none;
}
.hero h1 {
  position: relative;
  z-index: 1;
  margin: 0 0 16px;
  font-size: 56px;
  font-weight: 700;
  max-width: 920px;
  width: 100%;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-shadow: none;
}
.hero p {
  position: relative;
  z-index: 1;
  margin: 0 0 28px;
  max-width: 640px;
  width: 100%;
  font-size: 20px;
  font-weight: 400;
  color: var(--muted);
  opacity: 1;
  text-shadow: none;
}
.hero .hero-contact {
  margin: -8px 0 20px;
  font-weight: 500;
  color: var(--ink);
}
.hero .hero-contact a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.hero .hero-contact a:hover,
.hero .hero-contact a:focus-visible {
  color: var(--ink);
}
.hero .search {
  position: relative;
  z-index: 1;
  width: 100%;
  margin: 0 auto;
  text-align: left;
}

.search {
  display: grid;
  grid-template-columns: 1.6fr 1fr auto;
  gap: 10px;
  max-width: 760px;
  width: 100%;
  background: var(--paper);
  padding: 10px;
  border-radius: var(--radius, 12px);
  border: 1px solid var(--line, #e5e7eb);
  box-shadow: var(--shadow, 0 1px 2px rgba(17, 24, 39, 0.06));
}
.search .field {
  border: 0;
  border-radius: var(--radius-input, 8px);
  padding: 0 16px;
  color: var(--muted);
  font-size: 16px;
  background: var(--panel);
  display: flex;
  align-items: center;
  min-height: 55px;
}
.search .field input,
.search .field select {
  width: 100%;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  min-height: 55px;
}
.search .field input::placeholder { color: var(--muted); }
.search .field input:focus,
.search .field select:focus { outline: none; }
.search .go {
  background: var(--accent, #C2410C);
  color: var(--on-accent, #fff);
  border: 0;
  border-radius: var(--radius-pill, 999px);
  padding: 0 22px;
  min-height: var(--touch);
  height: 55px;
  min-width: var(--touch);
  font-weight: 600;
  font-size: 16px;
  display: grid;
  place-items: center;
  cursor: pointer;
  font-family: inherit;
}
.search .go:hover { background: var(--accent-hover, #9A3412); }

.section {
  padding: 40px 28px 12px;
  max-width: 1100px;
  margin: 0 auto;
}
.section h2 {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 600;
}
.section .lede {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 15px;
  max-width: 640px;
}

.welcome {
  display: grid;
  grid-template-columns: 160px 1fr 160px;
  gap: 28px;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: 64px 28px 32px;
  text-align: center;
}
.welcome-media {
  margin: 0;
  border-radius: var(--radius-lg, 8px);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--panel, #f8fafc);
  border: 1px solid var(--line, #e5e7eb);
}
.welcome-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.welcome-copy h2 {
  margin: 0 0 8px;
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.welcome-kicker {
  margin: 0 0 14px;
  font-size: 20px;
  font-weight: 500;
  color: var(--muted);
}
.welcome-copy h2 + .welcome-kicker + p,
.welcome-copy p:last-child {
  margin: 18px auto 0;
  max-width: 560px;
  color: var(--muted);
}
.welcome-rule {
  display: block;
  width: 48px;
  height: 1px;
  margin: 0 auto;
  background: var(--line, #e5e7eb);
  border: 0;
}
.welcome-copy .welcome-rule {
  margin: 4px auto 0;
}

.browse {
  max-width: 1100px;
  margin: 0 auto;
  padding: 12px 28px 8px;
}
.browse h2 {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 600;
}
.browse .lede {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 15px;
  max-width: 640px;
}
.browse-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.browse-tile {
  position: relative;
  display: block;
  border-radius: var(--radius-lg, 8px);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  min-height: 132px;
  background: var(--soft, #f8fafc);
  text-decoration: none;
  color: var(--ink);
  border: 1px solid var(--line, #e5e7eb);
}
.browse-tile img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.browse-tile span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 12px;
  background: var(--ink, #111827);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
}
.browse-tile:hover span {
  color: #fff;
}

.supplier-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding: 0 28px 16px;
  max-width: 1100px;
  margin: 0 auto;
}

.card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg, 8px);
  overflow: hidden;
  background: var(--paper);
  box-shadow: var(--shadow, 0 1px 2px rgba(17, 24, 39, 0.06));
}
.card:hover {
  border-color: #d1d5db;
  box-shadow: var(--shadow-hover, 0 6px 16px rgba(17, 24, 39, 0.08));
}
.card.is-featured,
.card.is-premium {
  border-color: var(--line, #e5e7eb);
  box-shadow: var(--shadow, 0 1px 2px rgba(17, 24, 39, 0.06));
}
.listing-featured-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  background: var(--sage, #f3f4f6);
  color: var(--sage-ink, #374151);
  border: 1px solid var(--line, #e5e7eb);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
  padding: 3px 8px;
  border-radius: var(--radius-pill, 999px);
}
.card .thumb {
  height: 180px;
  background: var(--panel, #f8fafc);
  overflow: hidden;
  position: relative;
}
.card .thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.card .body {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 14px 14px 16px;
  min-height: 148px;
  box-sizing: border-box;
}
.card h3 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.25;
  padding-right: 4px;
}
.card .headline {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
  padding-right: 4px;
}
.card .price-equiv {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.35;
  padding-right: 4px;
}
.card a.view {
  display: inline-block;
  margin-top: auto;
  align-self: flex-start;
  max-width: 100%;
  padding-right: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink, #111827);
  text-decoration: none;
  border-bottom: 1px solid var(--line, #e5e7eb);
}
.card a.view:hover {
  border-bottom-color: var(--ink, #111827);
  color: var(--ink, #111827);
}

.listings-more,
.empty-listings {
  max-width: 1100px;
  margin: 0 auto 40px;
  padding: 0 28px;
  font-size: 14px;
  color: var(--muted);
}
.listings-more a,
.empty-listings a {
  font-weight: 600;
  color: var(--ink, #111827);
}

.county-browse .county-browse-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 16px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}
.county-browse .county-browse-list li {
  margin: 0;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.county-browse .county-browse-list a {
  font-weight: 600;
}
.county-browse .county-browse-list span {
  display: block;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}
.county-browse-more {
  margin: 0;
  font-size: 14px;
}
.county-browse-more a {
  font-weight: 600;
}

.photo-tiles,
.trust.photo-tiles {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 22px 16px 24px;
  background: transparent;
  border: 0;
}
.photo-tile {
  position: relative;
  margin: 0;
  border-radius: var(--radius-lg, 8px);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  min-height: 132px;
  background: var(--soft, #f8fafc);
  border: 1px solid var(--line, #e5e7eb);
}
.photo-tile img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.photo-tile figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 10px 12px;
  background: var(--ink, #111827);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
}

@media (max-width: 800px) {
  .search { grid-template-columns: 1fr; }
  .search .go {
    width: 100%;
    min-height: var(--touch);
    height: auto;
    padding: 12px 18px;
  }
  .supplier-cards { grid-template-columns: 1fr 1fr; padding: 0 16px 16px; }
  .hero { padding: 32px 16px 40px; min-height: 0; }
  .hero h1 { font-size: 34px; }
  .hero p { font-size: 17px; }
  .section { padding: 28px 16px 8px; }
  .welcome {
    grid-template-columns: 1fr;
    padding: 36px 16px 20px;
  }
  .welcome-media { display: none; }
  .welcome-copy h2 { font-size: 28px; }
  .browse { padding: 8px 16px; }
  .browse-grid { grid-template-columns: 1fr 1fr; }
  .listings-more,
  .empty-listings { padding: 0 16px; margin-bottom: 32px; }
  .county-browse .county-browse-list { grid-template-columns: 1fr; }
  .photo-tiles,
  .trust.photo-tiles {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 18px 12px 20px;
  }
}

@media (max-width: 520px) {
  .supplier-cards { grid-template-columns: 1fr; }
}
