/*------------------------------------------------------------------------
# Custom Foundry Theming
# ------------------------------------------------------------------------
    1.   SVGs
    2.   Footer components
    3.   Typography
    4.   Buttons
    5.   Views
    6.   Webform
    7.   Feature boxes
    8.   Spacing
    9.   Menu
    10.  Leaflet Icons & Tooltips  
--------------------------------------------------------------------------------*/

/* 01. SVGs
 --------------------------------------------------------------------------------*/
#logo-winter {
  stroke-width: 0px;
  width: 640px;
  height: 412px;
}
#logo-cream {
  fill: #f8f2e5;
}
#logo-red {
  fill: #a3332c;
}
 @media (max-width: 767px) {
    #logo-winter {
        width: 270px;
        height: 174px;
    }
}
@media (min-width: 768px) {
    #logo-winter {
        width: 640px;
        height: 412px;
    }
}

/* 02. Footer components
 --------------------------------------------------------------------------------*/
.social-inline li {
    display: inline-block;
    margin: 0 10px;
}

/* 03. Typography
 --------------------------------------------------------------------------------*/

body {
  font-size: 18px !important;
  line-height: 24px !important;
  font-family: 'Karla', monospace !important;
}

@media (max-width: 767px) {
  p {
    font-size: 18px !important;
  }
}
h1,
.h1 {
  font-size: 78px !important;
  line-height: 70px !important;
  letter-spacing: 4px !important;
  font-weight: 800 !important;
  font-family: 'Gloock', sans-serif !important;
  color: #99352e !important;
}
h1.uppercase {
    margin: 0px !important;
}
h2,
.h2 {
  font-size: 36px !important;
  line-height: 42px !important;
  font-weight: 400 !important;
  font-family: 'Gloock', sans-serif !important;
  color: #99352e;
}
@media (max-width: 767px) {
    h1.uppercase {
    letter-spacing: 1px !important;
    }
}
@media (max-width: 767px) {
  h1 {
    font-size: 34px !important;
    line-height: 34px !important;
  }
}
@media (max-width: 767px) {
  h1.large { /* where is this used? */
    font-size: 48px !important;
    line-height: 42px !important;
  }
}
@media (max-width: 767px) {
  h2,
  .h2 {
    font-size: 28px !important;
    line-height: 33px !important;
  }
}

@media (max-width: 767px) {
  h3.uppercase {
    margin-bottom: 16px;
    }
}

/* 04. Buttons
 --------------------------------------------------------------------------------*/
.rmore {
  padding: 6px;
  display: block;
  width: 100%;
  line-height: 36px;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 6px;
  background: #E5F2EF;
  color: #20302C;
  text-align: center;
  transition: all 0.3s ease;
  -webkit-transition: all 0.3s ease;
  -moz-transition: all 0.3s ease;
}
.rmore:hover {
  background: #5f8f83;
  color: #fff;
}
.btn-rounded-md {
    border-radius: 6px !important;
    margin-bottom: 0px !important;
}
/* 05. Views
 --------------------------------------------------------------------------------*/
.views-display-link {
    font-family: "Karla", Helvetica, Arial, sans-serif;
    padding: 18px 26px 18px 26px;
    min-width: 200px;
    line-height: 46px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 25px;
    color: #f8f2e6;
    background: #99352e;
    text-align: center;
    transition: all 0.3s ease;
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    margin-right: 8px;
    margin-bottom: 24px;
}
.views-display-link:hover {
    color: #f8f2e6;
    background: #d56c5d;
    text-decoration: none;
}
.view-footer {
    text-align: center;
}

/* 06. Webform
 --------------------------------------------------------------------------------*/
.paragraph--type--paragraph-webform-block {
  padding: 0px 0px 96px 0px !important;
}
.form-control {
    background-color: #f8f2e6;
}
.progress-tracker {
    margin: 36px auto;
}
.progress-step.is-active .progress-marker::before {
    background-color: #b1e3cd;
    color: #406058;
    font-weight: 700;
}
.webform-progress-tracker .progress-step:not(.is-active) .progress-marker::before, .webform-progress-tracker .progress-step:hover .progress-marker::before, .webform-progress-tracker .progress-step .progress-marker::after {
    background-color: #406058;
}
.webform-progress-tracker .progress-step .progress-text {
    color: #406058;
}
.webform-options-display-buttons .webform-options-display-buttons-wrapper .radio, .webform-options-display-buttons .webform-options-display-buttons-wrapper .form-check {
    height: 100%;
}
.webform-options-display-buttons .form-check-label {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 5px 10px 5px;
    border: none;
    border-radius: 6px;
    background-color: #f8f2e6;
    padding: 10px;
    width: 100%;
    height: 100%;
}
.webform-options-display-buttons .form-check-input:checked ~ .form-check-label {
    border-color: none;
    color: #fff;
    background-color: #5f8f83;
}
.webform-element-description {
    font-size: 16px;
    margin-bottom: 24px;
    border-left: 3px solid #99352e;
    padding-left: 12px;
}

.table {
    --bs-table-color: var(--bs-body-color);
    --bs-table-bg: transparent;
    --bs-table-border-color: var(--bs-border-color);
    --bs-table-accent-bg: transparent;
    --bs-table-striped-color: var(--bs-body-color);
    --bs-table-striped-bg: rgba(0, 0, 0, 0.05);
    --bs-table-active-color: var(--bs-body-color);
    --bs-table-active-bg: rgba(0, 0, 0, 0.1);
    --bs-table-hover-color: var(--bs-body-color);
    --bs-table-hover-bg: rgba(0, 0, 0, 0.075);
    width: 100%;
    margin-bottom: 1rem;
    color: var(--bs-table-color);
    vertical-align: top;
    border-color: var(--bs-table-border-color);
}
tr {
    border-bottom: none;
    padding: 0.1em 0.6em;
    background: none;
}
tr.odd {
    background: none;
}
.table-striped>tbody>tr:nth-of-type(odd)>* {
    --bs-table-accent-bg: none;
}

/* 07. Feauture boxes
 --------------------------------------------------------------------------------*/
.feature.boxed.bg-maroon {
  background: #99352e;
  border-radius: 6px;
  color: #fff !important;
}
.feature.boxed.bg-orange {
  background: #e0932e;
  border-radius: 6px;
  color: #fff !important;
}
.feature.boxed.bg-pink {
  background: #f3c0bb;
  border-radius: 6px;
  color: #fff !important;
}
.feature.boxed.bg-cream {
  background: #f4e5c5;
  border-radius: 6px;
}
.feature.boxed.bg-darkpink {
  background: #d56c5d;
  border-radius: 6px;
  color: #fff !important;
}
.feature.bordered-white {
  padding: 32px;
  border: 1px solid #fff;
}
.feature h2 {
  color: #f8f2e6 !important;
}
.feature-1 i {
    color: #f8f2e6 !important;
}

/* Rounding classes for Vendor cards */
.rounded-top {
  border-top-left-radius: 6px; /* Rounds top corners of images  */
  border-top-right-radius: 6px;
}
.rounded-bottom {
  border-bottom-left-radius: 6px;
  border-bottom-right-radius: 6px;
}
.rounded {
  border-radius: 6px;
}

/* 08. Spacing
 --------------------------------------------------------------------------------*/
.paragraph--type--paragraph-image-bg-block {
  padding: 32px 0px 32px 0px !important;
}

/* Global Equal Height Utility */

/* Desktop and above */
@media (min-width: 768px) {
  .row.equal-height {
    display: flex;
    flex-wrap: wrap;
  }

  .row.equal-height > [class*="col-"] {
    display: flex;
    flex-direction: column;
  }

  .row.equal-height > [class*="col-"] > * {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
  }

  /* Child elements inside, optional polish */
  .row.equal-height > [class*="col-"] > * > * {
    flex-grow: 0;
  }

  .row.equal-height > [class*="col-"] > * > *:last-child {
    margin-top: auto;
  }
}

/* Mobile: natural stacking (no fixed height) */
@media (max-width: 767.98px) {
  .row.equal-height {
    display: block;
  }

  .row.equal-height > [class*="col-"] {
    display: block;
  }

  .row.equal-height > [class*="col-"] > * {
    display: block;
    height: auto;
  }
}

/* 09. Menu
 --------------------------------------------------------------------------------*/
nav.transparent.fixed .menu > li > span,
.menu.nav > li > span,
.menu > li > ul li span,
.menu.nav > li > a {
  font-size: 21px;
  text-transform: none;
  font-weight: 800;
  letter-spacing: 1px;
  color: #d56c5d !important;
  opacity: 1;
  padding: 13px 15px;
  line-height: 30px;
  display: block;
  transition: all 0.3s ease;
  -webkit-transition: all 0.3s ease;
  -moz-transition: all 0.3s ease;
  max-width: 100%;
  white-space: normal;
}
nav.transparent .mobile-toggle.active .navbar-toggle {
    color: #292929;
}
.navbar-nav {
  margin: 0 !important;
  flex-direction: inherit;
}

.menu-text {
  font-weight: 800 !important;
  font-family: 'Gloock', sans-serif !important;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #99352e;
}
nav.transparent.fixed .menu > li > span,
.menu.nav > li > span,
.menu > li > ul li span,
.menu.nav > li > a:active {
  color: #d56c5d;
}
.menu li a.is-active {
    color: #99352e !important;
}
nav.transparent {
    background: rgba(245, 230, 197, 0.5) !important;
}
nav.transparent .nav-utility, nav.transparent .nav-bar {
    border-bottom: 1px solid rgba(255, 255, 255, 0.5) !important;
}

/* 10. Leaflet Icons & Tooltips
 --------------------------------------------------------------------------------*/
/* --- Unique Icon Sizing (CSS Override) --- */

/* Attraction, Business, Stall (Example: 32x32px) */
.leaflet-marker-icon.attraction,
.leaflet-marker-icon.business,
.leaflet-marker-icon.stall,
.leaflet-marker-icon.parking,
.leaflet-marker-icon.bus-stop {
  width: 32px !important;
  height: 32px !important;
  /* Anchor (to pin the bottom-center of the icon to the map point) */
  margin-left: -20px !important; 
  margin-top: -15px !important;
}

/* Venue (Example: 48x48px icon) */
.leaflet-marker-icon.venue {
  width: 48px !important;
  height: 48px !important;
  /* Icon Anchor Adjustment */
  margin-left: -30px !important; 
  margin-top: -25px !important;
}

/* --- Global Tooltip Base Styles --- */

/* Ensure the tip inherits the custom background color */
.leaflet-tooltip-tip {
    background: transparent;
    /* !important is often needed here */
    border-right-color: #333 !important; 
}

/* Base font and box shadow (optional) */
.leaflet-tooltip-pane .leaflet-tooltip {
    font-family: Arial, sans-serif;
    font-weight: 600;
    white-space: nowrap; /* Essential to prevent text wrapping */
    box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

/* --- Combined Styles for Specific Icon Types --- */

/* Attraction Tooltip Styles (Aesthetics + Positioning) */
.leaflet-tooltip.attraction {
    /* Aesthetics */
    background-color: #ed1c24; /* Red color */
    border: none;    
    color: #fff !important; 
    border-radius: 4px;
    padding: 4px 8px;
    
    /* Positioning (Example: Pushing it further away) */
    margin-left: 12px !important; 
    margin-top: 0 !important; 
}

/* Ensure the tip color matches the Attraction background */
.leaflet-tooltip.attraction .leaflet-tooltip-tip {
    background-color: #ed1c24;    
}

.leaflet-tooltip.attraction a {
    color: #ffffff !important; /* Force all links to be white */
    text-decoration: none !important; /* Optional: remove underline */
}


/* Venue Tooltip Styles (Aesthetics + Positioning) */
.leaflet-tooltip.venue {
    /* Aesthetics */
    background-color: #1a1a1a;
    border: none;
    color: white; 
    border-radius: 4px;
    padding: 4px 8px;

    /* Positioning (Example: Nudging it down slightly) */
    margin-left: 14px !important; 
    margin-top: 0 !important;
}

/* Ensure the tip color matches the Venue background */
.leaflet-tooltip.venue .leaflet-tooltip-tip {
    border-right-color: #1a1a1a !important;
}
.leaflet-tooltip.venue a {
    color: #ffffff !important; /* Force all links to be white */
    text-decoration: none !important; /* Optional: remove underline */
}

/* Business Tooltip Styles (Aesthetics + Positioning) */
.leaflet-tooltip.business {
    /* Aesthetics */
    background-color: #98352d;
    border: none;
    color: white; 
    border-radius: 4px;
    padding: 4px 8px;

    /* Positioning (Example: Nudging it down slightly) */
    margin-left: 12px !important; 
    margin-top: 0 !important;
}

/* Ensure the tip color matches the Venue background */
.leaflet-tooltip.business .leaflet-tooltip-tip {
    border-right-color: #98352d !important;
}
.leaflet-tooltip.business a {
    color: #ffffff !important; /* Force all links to be white */
    text-decoration: none !important; /* Optional: remove underline */
}

/* Parking Tooltip Styles (Aesthetics + Positioning) */
.leaflet-tooltip.parking {
    /* Aesthetics */
    background-color: #1979ff;
    border: none;
    color: white; 
    border-radius: 4px;
    padding: 4px 8px;

    /* Positioning (Example: Nudging it down slightly) */
    margin-left: 12px !important; 
    margin-top: 0 !important;
}

/* Ensure the tip color matches the Venue background */
.leaflet-tooltip.parking .leaflet-tooltip-tip {
    border-right-color: #1979ff !important;
}
.leaflet-tooltip.parking a {
    color: #ffffff !important; /* Force all links to be white */
    text-decoration: none !important; /* Optional: remove underline */
}

/* Hide the permanent tooltip for the 'bus-stop' locations */
.leaflet-tooltip.bus-stop {
    display: none !important;
}
/* Hide the permanent tooltip for the 'parking' locations */
.leaflet-tooltip.parking {
    display: none !important;
}

/* EXPOSED FILTERS - DELETE OR KEEP */

/* Display radio/checkbox items inline */
.views-exposed-form .form-check {
  display: inline-block;
  margin: 0.25rem;
}

/* Style the label like a pill */
.views-exposed-form .form-check-label {
  display: inline-block;
  padding: 0.4rem 1rem;
  border-radius: 9999px;
  background-color: #f3c1bb;
  color: #333;
  cursor: pointer;
  transition: all 0.2s ease;
}

/* Hide the default radio/checkbox element */
.views-exposed-form .form-check-input {
  display: none;
}

/* Highlight selected pill */
.views-exposed-form .form-check-input:checked + .form-check-label {
  background-color: #98352d;
  color: #fff;
}

/* Hover effect */
.views-exposed-form .form-check-label:hover {
  color: #fff;
}
