/* -------------------------------------------------------
 * POURPLAN CUSTOM.CSS — ORGANIZED AND UPDATED
 * -----------------------------------------------------*/

/* === Global Typography === */
body {
  font-family: 'IBM Plex Sans', sans-serif;
  color: #1E1E1E;
}

/* Section Headings */
h2 {
  font-size: 1.5rem;
  color: #343434;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Subsection Headings */
h3 {
  font-size: 1.25rem;
  color: #555;
  font-weight: 500;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  letter-spacing: 0.25px;
}

/* Minor Headings */
h4, h5, h6 {
  color: #666;
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.25px;
}

/* === Layout and Section Spacing === */
.section {
  padding-top: 3.125rem;
  padding-bottom: 3.125rem;
}

.section.hero {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.section.compact {
  padding-top: 3.125rem;
  padding-bottom: 3.125rem;
}

/* === Typography Utility === */
.heading {
  font-family: 'Inter', sans-serif;
  color: #1E1E1E;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 2rem;
}

/* === Buttons === */
.btn-pill {
  background-color: #7B1E3A;
  border-radius: 999px;
  padding: 0.375rem 1rem;
  font-weight: 600;
  color: white;
  text-decoration: none;
}

.btn-pill:hover {
  background-color: #691832;
  color: white;
  text-decoration: none;
}

.btn-primary {
  background-color: #7B1E3A;
  border-color: #7B1E3A;
}

.btn-primary:hover {
  background-color: #691832;
  border-color: #691832;
}

.btn-outline-burgundy {
  color: #7B1E3A;
  border: 1px solid #7B1E3A;
  background-color: transparent;
  transition: all 0.2s ease-in-out;
}

.btn-outline-burgundy:hover {
  background-color: #7B1E3A;
  color: #fff;
}

.btn-burgundy {
  background-color: #7B1E3A;
  border: 2px solid #7B1E3A;
  color: white;
}

.btn-burgundy:hover {
  background-color: #5a1629;
  border-color: #5a1629;
  color: white;
}

/* stop hyperlink underline from showing on hover */
a.btn-pill::after,
a.btn-primary::after,
a.btn-outline-burgundy::after {
  content: none !important;
}

/* === Cards and Boxes === */
.card {
  border-radius: 1rem;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.card-img-top {
  border-top-left-radius: 1rem;
  border-top-right-radius: 1rem;
}

.tasting-fee-card {
  background-color: #f9f9f9;
  border: none;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.feature-box {
  background-color: #fff;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  height: 100%;
}

/* === Images === */

.img-rounded {
  border-radius: 1rem;
  display: block;
  max-width: 100%;
  height: 100%;
  object-fit: cover;
}

/* === Badges === */

/* Inherit base pill styling */
.badge-pill-muted,
.badge-chardonnay,
.badge-success,
.badge-burgundy-soft,
.badge-pink-soft {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.45rem;
  font-size: 0.8125rem;
  font-weight: 500;
  border-radius: 999px;
  line-height: 1.2;
  white-space: nowrap;
}

.badge-pill-muted {
  background-color: #e0e0e0;
  color: #1E1E1E;
}

.badge-chardonnay {
  background-color: #F3E5AB;
  color: #1E1E1E;
}

.badge-success {
  background-color: #198754;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.45rem;
  font-weight: 500;
  border-radius: 999px;
  line-height: 1.2;
  white-space: nowrap;
  z-index: 2;
}

.badge-burgundy-soft {
  background-color: #EBD3DA;
  color: #1E1E1E;
}

.badge-pink-soft {
  background-color: #FFF0F3;
  color: #1E1E1E;
}

.badge-pill-overlay {
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(4px);
  border-radius: 999px;
  font-weight: 500;
  line-height: 1.2;
  padding: 0.25rem 0.75rem;
  font-size: 0.875rem;
  z-index: 2;
}

/* === Color Utilities === */
.text-burgundy {
  color: #7B1E3A;
}

/* === Background Utilities === */
.bg-gray-100 {
  background-color: #F8F9FA;
}

.bg-chardonnay {
  background-color: #F3E5AB;
}

.bg-chardonnay-muted {
  background-color: rgba(243, 229, 171, 0.25);
}

.bg-rosé {
  background-color: #FFB6C1;
  color: #1E1E1E;
}

/* === Image Styling === */
.object-fit-cover {
  object-fit: cover;
}

/* === Link Styling === */
a {
  color: #7B1E3A; /* Burgundy */
  text-decoration: none;
  position: relative;
  transition: color 0.2s ease;
}

a:hover,
a:focus {
  color: #7B1E3A;
  font-weight: 600;
}

a:hover::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  height: 2px;
  width: 100%;
  background: #7B1E3A;
}

.link-text-only {
  position: relative;
  color: #7B1E3A;
  text-decoration: none;
  font-weight: 500;
}

.link-text-only:hover {
  color: #691832;
}

.link-text-only:hover::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  height: 2px;
  width: 100%;
  background: #691832;
}

.text-link-with-icon {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  font-weight: 500;
  color: #7B1E3A;
  text-decoration: none;
  position: relative;
  transition: color 0.2s ease;
}

.text-link-with-icon:hover {
  color: #691832;
}

.text-link-with-icon:hover::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  height: 2px;
  width: 100%;
  background: #691832;
}

.link-with-icon i,
.link-text-only-icon {
  color: #7B1E3A;
}

a:hover img {
  text-decoration: none;
}

/* Remove ::after underline for links that contain only images */
a:hover:has(img):not(:has(span, strong, em, p, h1, h2, h3, h4, h5, h6))::after {
  content: none;
}

.region-column {
  column-count: 1;                /* Wrap into 2 columns automatically */
  column-gap: 1.5rem;
  break-inside: avoid;
}

.region-column.two-column {
  column-count: 2;
  column-gap: 1.5rem;
}


.region-column a {
  display: block;
  margin-bottom: 0.3rem;
  break-inside: avoid;
}

.dropdown-menu {
  height: fit-content;
  max-height: none; /* ~10 rows + region titles */
  overflow-y: auto;  /* optional scroll if needed */
  padding: 2rem 3rem;
}

/* Responsive regions dropdown */
.regions-dropdown {
  min-width: 70vw;
  max-width: 90vw;
  padding: 1.5rem;
}

@media (max-width: 767.98px) {
  .regions-dropdown {
    /* Completely override Bootstrap positioning on mobile */
    position: fixed !important;
    top: 60px !important;  /* Just below navbar */
    left: 0 !important;
    right: 0 !important;
    bottom: auto !important;
    transform: none !important;
    margin: 0 !important;
    
    /* Full width with small margins */
    width: calc(100vw - 1rem) !important;
    max-width: calc(100vw - 1rem) !important;
    min-width: calc(100vw - 1rem) !important;
    margin-left: 0.5rem !important;
    margin-right: 0.5rem !important;
    
    /* Styling */
    padding: 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    background: white;
    z-index: 1050; /* Above other content */
    
    /* Scrolling if needed */
    max-height: calc(100vh - 80px);
    overflow-y: auto;
  }
  
  .regions-dropdown .row {
    margin: 0 !important;
  }
  
  .regions-dropdown .col-12 {
    padding: 0.25rem !important;
  }
  
  .regions-dropdown .col-md-4 {
    /* Force single column on mobile */
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }
}

.region-card {
  height: 10rem;
  background-size: cover;
  background-position: center;
  border-radius: 1rem;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: flex-end;
  transition: transform 0.2s ease;
}

.region-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.region-card-content {
  background: rgba(0, 0, 0, 0.5);
  padding: 1rem;
  width: 100%;
}

.region-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.25rem;
}

.region-meta {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
}

/* === Filter & Sort Bar === */
.filter-bar .form-label,
.filter-bar .form-select,
.filter-bar .form-check-input {
  font-size: 0.875rem;
}

.filter-bar {
  padding: 1rem 1.25rem;
}

/* === Recently Added, Needs to be Organized === */
.hero-bg {
  min-height: 36rem;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: left center;
  background-repeat: no-repeat;
}

@media (max-width: 767.98px) {
  .hero-bg {
    min-height: 24rem; /* or 20rem if you want it really tight */
    background-position: center center; /* center the image better for mobile */
  }
}

.hero-bg .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.5));
  z-index: 1;
}

.hero-bg .container {
  position: relative;
  z-index: 2;
}

/* === Heading Modifiers for Background Context === */
.heading-on-dark {
  color: white;
}

.heading-on-light {
  color: #1E1E1E;
}

.heading-burgundy {
  color: #7B1E3A;
}

.heading-overlay-block {
  background-color: rgba(255, 255, 255, 0.65);
  display: inline-block;
  padding: 0.5rem 1.25rem;
  border-radius: 0.5rem;
}

.btn-outline-white {
  color: #7B1E3A;
  background-color: white;
  border: 1px solid white;
}

.btn-outline-white:hover {
  background-color: #f8f8f8;
  color: #691832;
  border-color: #f8f8f8;
}

/* === Hero Section Enhancements === */

.hero .heading {
  font-size: 3.25rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

@media (max-width: 767.98px) {
  .hero .heading {
    font-size: 2rem;
  }
}

.subheading {
  font-family: 'Inter', sans-serif;     /* match headings */
  font-size: 1.25rem;
  font-weight: 500;
  color: #1E1E1E;
  line-height: 1.6;
  margin-top: 1rem;
}

.subheading-on-dark {
  color: white;
}


/* === Section Padding Fixes === */

/* Prevent bottom margin collapse or stacking from children */
.section > *:last-child {
  margin-bottom: 0 !important;
}

/* Trim excess space from card elements inside sections */
.section .card p:last-child,
.section .card a:last-child {
  margin-bottom: 0 !important;
}

/* === Bold Feature Card Styles === */
.feature-box-dark {
  color: white;
  padding: 2rem;
  border-radius: 1rem;
  text-align: center;
}

.feature-box-dark .heading {
  color: white;
  margin-top: 1rem;
}

.feature-box-dark i {
  color: white;
}

.feature-box-dark p {
  color: rgba(255, 255, 255, 0.85);
}

/* Specific background color variants */
.bg-dark-gray {
  background-color: #1E1E1E;
}

.bg-burgundy {
  background-color: #7B1E3A;
}

.feature-box-light {
  background-color: #E9ECEF; /* Gray 200 */
  color: #1E1E1E;
  padding: 2rem;
  border-radius: 1rem;
  text-align: center;
}

.feature-box-light .heading {
  color: #1E1E1E;
  margin-top: 1rem;
}

.feature-box-light i {
  color: #7B1E3A;
}

.feature-box-light p {
  color: #555;
}

body, html {
  margin: 0;
  padding: 0;
}

.site-footer {
  background-color: #1E1E1E;
  padding-top: 2rem;
  padding-bottom: 2rem;
  margin-top: 0 !important;
}

.bento-image {
  border-radius: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  max-width: 100%;
  height: auto;
}

/* === FAQ Accordion Styles === */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background-color: white;
  border-radius: 1rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}

.faq-item.active {
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.faq-question {
  background: none;
  border: none;
  width: 100%;
  padding: 1rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 1.125rem;
  font-family: 'Inter', sans-serif;
  color: #1E1E1E;
  cursor: pointer;
  transition: background 0.2s ease;
}

.faq-question:hover {
  background-color: #F8F9FA;
}

.faq-question i {
  transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 1.25rem 1rem 1.25rem;
  display: none;
  font-size: 1rem;
  color: #555;
  font-family: 'IBM Plex Sans', sans-serif;
  line-height: 1.6;
}

.faq-item.active .faq-answer {
  display: block;
}

.hero-secondary {
  min-height: 20rem;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* === Top nav === */
.navbar-nav .nav-link,
.nav-link {
  color: #1E1E1E;
  font-weight: 600;
  text-decoration: none;
  margin-left: 1rem;
  margin-right: 1rem;
  transition: color 0.2s ease;
}

.navbar-nav .nav-link:hover,
.nav-link:hover {
  color: #7B1E3A; /* Burgundy */
  text-decoration: none;
}

/* Fix stray bullet dot */
.navbar-nav {
  list-style: none !important;
  padding-left: 0;
  margin-bottom: 0;
}

.navbar-nav,
.navbar-nav li,
.navbar-nav li::marker {
  list-style: none !important;
  padding: 0;
  margin: 0;
  display: inline-block;
}

.navbar-nav li::marker {
  content: none !important;
  display: none !important;
}

.navbar-nav {
  display: flex;
  flex-direction: row;
  padding-left: 0;
}

/* Remove Bootstrap caret */
.nav-link.dropdown-toggle::after {
  display: none;
}

.caret-soft {
  font-size: 0.9rem;
  margin-left: 0.4em;
  vertical-align: middle;
  color: #7B1E3A;
}

.nav-link.dropdown-toggle::after {
  content: '▾'; /* softer caret */
  font-size: 0.75rem;
  margin-left: 0.4em;
  vertical-align: middle;
  color: #7B1E3A;
}

.navbar {
  background-color: #ffffff; /* white background */
}

.navbar .nav-link {
  color: #1e1e1e; /* dark gray */
}

.navbar .nav-link:hover,
.navbar .nav-link:focus {
  color: #7b1e3a; /* burgundy */
}

.dropdown-menu {
  border-radius: 1rem; /* rounded corners */
  border: none;
}

.dropdown-item:hover {
  background-color: #f8f9fa;
  color: #7b1e3a;
}

h6.fw-bold {
  color: #7b1e3a; /* burgundy for section titles */
}

.link-region {
  display: inline-block;
  width: fit-content;
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
  color: #7B1E3A;
  font-weight: 500;
  text-decoration: none;
  position: relative;
}

.link-region:hover {
  color: #691832;
}

.link-region:hover::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  height: 2px;
  width: 100%;
  background: #691832;
}


/* Heat Map Styling */
.heatmap-container {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.heatmap-grid {
  display: grid;
  grid-template-columns: 4rem repeat(10, 1fr); /* 4rem for labels, rest even */
  gap: 0.2rem;
  align-items: center;
}

.heatmap-price-label {
  font-size: 0.8rem;
  font-weight: 500;
  text-align: center;
}

.heatmap-label {
  font-size: 0.9rem;  /* Or 1rem if you'd prefer a full size boost */
  font-weight: 500;
  display: flex;
  align-items: center;
  height: 100%;
}

.heatmap-cell {
  height: 20px;
  border-radius: 6px;
}

.heatmap-label-spacer {
  width: 4rem;
}

/* === Photo Gallery === */
.carousel-caption-attribution {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  background-color: rgba(0, 0, 0, 0.35); /* more transparent black */
  color: #999; /* darker gray */
  font-size: 0.75rem;
  font-family: inherit;
  padding: 0.25rem 0.75rem;
  border-radius: 1em;
  max-width: 90%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  z-index: 10;
}

.carousel-caption-attribution a {
  color: #CCC !important; /* match text color */
  text-decoration: none;
}

.ratio > .position-relative {
  height: 100%;
  width: 100%;
}

/* === Favorites === */
/* === Favorites Button === */
.favorite-toggle {
  border: none;
  background: none;
  padding: 0.25rem 0.5rem;
  display: inline-flex;
  align-items: center;
  color: #7B1E3A;
  transition: color 0.2s ease;
}

.favorite-toggle:hover,
.favorite-toggle:focus {
  color: #691832;
}

.favorite-toggle .icon-favorite {
  width: 20px;
  height: 20px;
  stroke-width: 2;
}

/* Active/favorited state */
.favorite-toggle.favorited .icon-favorite {
  fill: #7B1E3A;
  stroke: #7B1E3A;
}

/* === Enhanced Favorites Features === */
.visited-toggle {
  transition: all 0.2s ease;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.25rem 0.5rem;
  user-select: none;
}

.visited-toggle:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

.notes-toggle {
  transition: all 0.2s ease;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.25rem 0.5rem;
  user-select: none;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.notes-toggle:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

.favorites-card .badge {
  font-size: 0.75rem;
}

.favorites-card .bg-light {
  border-left: 3px solid #7B1E3A;
}

.favorites-card {
  transition: transform 0.2s ease;
}

.favorites-card:hover {
  transform: translateY(-2px);
}

/* Search and filter controls */
#favorites-controls .input-group-text {
  background-color: #f8f9fa;
  border-color: #dee2e6;
  color: #6c757d;
}

#favorites-controls .form-control:focus,
#favorites-controls .form-select:focus {
  border-color: #7B1E3A;
  box-shadow: 0 0 0 0.2rem rgba(123, 30, 58, 0.25);
}

/* Modal enhancements */
.modal-content {
  border-radius: 1rem;
  border: none;
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175);
}

.modal-header {
  border-bottom: 1px solid #e9ecef;
  padding: 1.5rem;
}

.modal-body {
  padding: 1.5rem;
}

.modal-footer {
  border-top: 1px solid #e9ecef;
  padding: 1.5rem;
}

/* Empty state enhancements */
#favorites-empty i[data-lucide="heart"] {
  opacity: 0.3;
}

/* Results count styling */
#resultsCount {
  font-weight: 500;
}

/* === Debugging Styles === 
* {
  outline: 1px solid red;
}
*/

/* === Favorites List View === */
.favorites-list-item {
  transition: background-color 0.2s ease;
}

.favorites-list-item:hover {
  background-color: #f8f9fa;
}

.favorites-list-item:last-child {
  border-bottom: none !important;
}

.favorites-list-item .min-width-0 {
  min-width: 0; /* Allows text truncation */
}

/* === Compact Cards === */
.favorites-card .card {
  /* Removed max-height - let cards expand to fit content */
}

.favorites-card .row.g-0 {
  min-height: 120px; /* Minimum height to match image */
}

.favorites-card .card-body {
  padding: 0.875rem; /* Slightly tighter than 1rem but not cramped */
}

/* === District Drawer Compact Styling === */
.district-drawers .faq-accordion {
  gap: 0.5rem; /* Reduce gap between items */
}

.district-drawers .faq-question {
  padding: 0.75rem 1rem; /* Reduce padding */
  font-size: 0.95rem; /* Smaller font size */
  font-weight: 500; /* Less bold */
}

.district-drawers .faq-answer {
  padding: 0.5rem 1rem 0.75rem 1rem; /* Add top padding for breathing room */
  font-size: 0.9rem; /* Smaller text */
  line-height: 1.5; /* Tighter line height */
}

.district-drawers .faq-answer p {
  margin-bottom: 0.5rem; /* Reduce paragraph spacing */
}

.district-drawers .faq-answer .mb-3 {
  margin-bottom: 0.75rem !important; /* Reduce spacing between sections */
}

.district-drawers .faq-answer strong {
  font-size: 0.85rem; /* Smaller strong text */
  font-weight: 600;
}

/* Even more compact for region pages */
@media (max-width: 768px) {
  .district-drawers .faq-question {
    font-size: 0.9rem;
    padding: 0.6rem 0.9rem;
  }

  .district-drawers .faq-answer {
    padding: 0.4rem 0.9rem 0.6rem 0.9rem;
    font-size: 0.85rem;
  }
}