/* Visual refresh experiment (2026-04-11): style-only modernization for legacy templates. */
@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@400;500;700;800&family=Fraunces:opsz,wght@9..144,700&display=swap');

:root {
  --bg-page: #f6efe5;
  --bg-shell: #fffaf5;
  --ink: #2f2c29;
  --ink-soft: #5b5047;
  --brand: #8f1f28;
  --brand-dark: #5c1016;
  --accent: #d8983c;
  --line: #dfd0bf;
  --shadow: 0 18px 40px rgba(56, 24, 12, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  font: 500 16px/1.45 "Barlow", "Trebuchet MS", sans-serif;
  color: var(--ink);
  margin: 0;
  padding: 20px 14px 28px;
  background:
    radial-gradient(1200px 450px at 15% 0%, rgba(211, 160, 86, 0.26), transparent 70%),
    linear-gradient(180deg, #f0e4d4 0%, var(--bg-page) 44%, #f5ede1 100%);
}

h1,
h2 {
  margin: 0;
  line-height: 1.08;
}

body h1,
.mainheader h1 {
  font: 700 60px/1.02 "Fraunces", Georgia, serif;
  letter-spacing: -0.03em;
  color: var(--brand-dark);
  text-wrap: balance;
}

body h2,
.mainheader h2 {
  font: 700 34px/1.08 "Barlow", "Trebuchet MS", sans-serif;
  margin-top: 8px;
  color: var(--brand);
}

body a {
  color: var(--brand);
  text-decoration: none;
  transition: color 0.18s ease, opacity 0.18s ease;
}

body a:hover {
  color: var(--brand-dark);
  text-decoration: underline;
}

.page-shell {
  width: min(980px, 100%);
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--bg-shell);
  box-shadow: var(--shadow);
  overflow: hidden;
  animation: shell-enter 0.45s ease-out;
}

.page-shell > tbody > tr > td {
  border-color: var(--line);
}

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

.header-grid,
.region-strip,
.map-layout,
.detail-nav-grid,
.detail-layout,
.detail-main,
.detail-info-grid {
  width: 100%;
  border-collapse: collapse;
}

.header-grid > tbody > tr > td,
.region-strip > tbody > tr > td,
.map-layout > tbody > tr > td,
.detail-nav-grid > tbody > tr > td,
.detail-layout > tbody > tr > td,
.detail-main > tbody > tr > td,
.detail-info-grid > tbody > tr > td {
  padding: 14px 16px;
  vertical-align: top;
}

.mainheader {
  padding-top: 2px;
}

#homecontact.navigation {
  text-align: right;
  margin-bottom: 10px;
}

.navigation {
  font: 700 13px/1.45 "Barlow", "Trebuchet MS", sans-serif;
  color: var(--ink);
  letter-spacing: 0.01em;
}

.navigation a {
  font: 700 13px/1.45 "Barlow", "Trebuchet MS", sans-serif;
}

.site-search {
  margin-top: 8px;
}

.site-search input[type="text"] {
  width: 220px;
  max-width: 100%;
  border: 1px solid #cdbba7;
  border-radius: 999px;
  padding: 7px 12px;
  background: #fff;
  color: var(--ink);
}

.site-search input[type="submit"] {
  margin-left: 6px;
  border: 0;
  border-radius: 999px;
  padding: 8px 14px;
  background: linear-gradient(180deg, #9f2830, #821a23);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.region-nav {
  background: linear-gradient(180deg, #fff 0%, #f9f1e8 100%);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
}

.breadcrumb-nav {
  background: linear-gradient(180deg, #fff 0%, #f9f1e8 100%);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  font: 700 13px/1.45 "Barlow", "Trebuchet MS", sans-serif;
}

.breadcrumb-nav .crumb-sep {
  margin: 0 6px;
  color: #8f7d6c;
}

.breadcrumb-nav .crumb-current {
  color: var(--brand-dark);
}

.map-layout .ad-column,
.detail-layout .ad-column {
  opacity: 0.92;
}

.map-layout {
  table-layout: fixed;
  width: 100%;
}

.sidebar-column {
  width: 235px;
  min-width: 235px;
}

#mapDiv,
#map {
  width: 100% !important;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.85);
  background: #f1ece4;
}

#mapDiv {
  height: 620px !important;
}

#map {
  height: 320px !important;
}

.sidebar-list {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 8px 10px;
  height: 620px !important;
  overflow-y: scroll !important;
  overflow-x: hidden !important;
}

.sidebar-filter {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 10px;
  margin-bottom: 8px;
}

.sidebar-filter label {
  display: block;
  font: 700 12px/1.3 "Barlow", "Trebuchet MS", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.sidebar-filter input[type="text"] {
  width: 100%;
  border: 1px solid #cfbfad;
  border-radius: 10px;
  padding: 8px 10px;
  font: 600 14px/1.2 "Barlow", "Trebuchet MS", sans-serif;
}

.sidebar-filter-count {
  margin: 7px 0 0;
  font: 600 12px/1.3 "Barlow", "Trebuchet MS", sans-serif;
  color: var(--ink-soft);
}

.side-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px dashed #eadac6;
}

.side-item:last-child {
  border-bottom: 0;
}

.side-item > a:first-child {
  font: 600 14px/1.25 "Barlow", "Trebuchet MS", sans-serif;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.side-map-link {
  font: 700 11px/1 "Barlow", "Trebuchet MS", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
  opacity: 0.86;
}

.legendbar,
.footerbar {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, #fff, #f8eee3);
  padding: 10px 16px;
}

.linkpanel {
  font: 400 15px/1.35 "Barlow", "Trebuchet MS", sans-serif;
}

.detail-shell h1 {
  font-size: clamp(38px, 6.1vw, 66px);
}

.list-shell {
  width: min(760px, 100%);
}

.list-nav {
  margin: 10px 0 6px;
}

.list-toolbar {
  margin: 14px 0 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(180deg, #fff 0%, #f9f0e6 100%);
}

.list-toolbar label {
  display: block;
  font: 700 13px/1.4 "Barlow", "Trebuchet MS", sans-serif;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 7px;
}

.list-toolbar input[type="search"] {
  width: 100%;
  border: 1px solid #c7b8a8;
  border-radius: 10px;
  padding: 10px 12px;
  font: 600 16px/1.3 "Barlow", "Trebuchet MS", sans-serif;
  color: var(--ink);
  background: #fff;
}

.list-count,
.list-empty {
  margin: 8px 0 0;
  font: 600 14px/1.35 "Barlow", "Trebuchet MS", sans-serif;
  color: var(--ink-soft);
}

.list-empty {
  color: var(--brand-dark);
}

.region-list {
  margin-top: 8px;
}

.region-section {
  margin-top: 20px;
}

.region-section:first-child {
  margin-top: 0;
}

.region-heading {
  font: 800 30px/1.08 "Barlow", "Trebuchet MS", sans-serif;
  margin: 0 0 12px;
}

.region-heading a {
  color: var(--brand-dark);
}

.winery-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.winery-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 12px 13px;
  box-shadow: 0 5px 14px rgba(61, 27, 16, 0.08);
}

.winery-card h3 {
  margin: 0 0 6px;
  font: 700 21px/1.2 "Fraunces", Georgia, serif;
  letter-spacing: -0.01em;
}

.winery-card h3 a {
  color: var(--brand-dark);
}

.winery-card p {
  margin: 6px 0 0;
}

.winery-card-region {
  font: 800 12px/1.25 "Barlow", "Trebuchet MS", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--brand);
}

.winery-card-address {
  font: 500 14px/1.35 "Barlow", "Trebuchet MS", sans-serif;
  color: var(--ink);
}

.winery-card-meta {
  font: 500 13px/1.35 "Barlow", "Trebuchet MS", sans-serif;
  color: var(--ink-soft);
}

.winery-card-meta span {
  font-weight: 700;
  color: var(--ink);
}

.detail-copy p,
.detail-copy,
.detail-media {
  font-size: 18px;
  line-height: 1.46;
}

.detail-copy p {
  margin: 10px 0;
}

.detail-media img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line);
}

.note-box {
  margin: 8px 16px 14px;
  padding: 10px 12px;
  border-left: 4px solid var(--accent);
  background: #fff5e8;
  font-size: 14px;
  line-height: 1.4;
}

.desktop-ad-unit {
  min-height: 600px;
}

.mobile-map-ad {
  display: none;
  margin-top: 12px;
}

@media (max-width: 980px) {
  body {
    padding: 10px 8px 20px;
  }

  .header-grid > tbody > tr > td,
  .region-strip > tbody > tr > td,
  .map-layout > tbody > tr > td,
  .detail-nav-grid > tbody > tr > td,
  .detail-layout > tbody > tr > td,
  .detail-main > tbody > tr > td,
  .detail-info-grid > tbody > tr > td {
    display: block;
    width: auto !important;
    padding: 12px 12px;
  }

  #homecontact.navigation {
    text-align: left;
  }

  .site-search input[type="text"] {
    width: calc(100% - 100px);
    min-width: 180px;
  }

  #mapDiv {
    height: 420px !important;
  }

  .sidebar-list {
    height: auto !important;
    max-height: 260px;
  }

  .map-layout .ad-column,
  .detail-layout .ad-column {
    display: none !important;
  }

  .sidebar-column {
    width: auto !important;
    min-width: 0 !important;
  }

  .mobile-map-ad {
    display: block;
  }

  .winery-card-grid {
    grid-template-columns: 1fr;
  }

  .region-heading {
    font-size: 25px;
  }
}
