/**
 * Global Styles - Boston Hidden Gems
 *
 * This file contains global CSS used across all pages of the website.
 * Originally from custom-css.less, compiled to plain CSS for CDN hosting.
 *
 * Loaded via jsDelivr CDN from GitHub repository.
 *
 * Usage: Include in header-script.html:
 * <link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/Hidden-Gems-Tours/bostonhiddengems-public@main/global-styles.css">
 */

/* ==========================================================================
   CSS CUSTOM PROPERTIES (Design System Variables)
   ========================================================================== */
:root {
  --primary-navy: #172436;
  --border-light: #cdd3da;
  --bg-drawer: #f7f9fc;
  --primary-gold: #FFD700;
  --star-gold: var(--primary-gold);
  --hover-background: #f0f2f5;
  --arrow-svg: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23666%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
}

/* ==========================================================================
   LIGHTBOX OVERLAY
   ========================================================================== */
.lightbox-overlay {
  z-index: 9000;
}

/* ==========================================================================
   SIMILAR TOUR BOX (Legacy Styles)
   ========================================================================== */
.similar-tour-box {
  width: 99%;
  box-shadow: 2px 2px 5px;
  border-radius: 20px;
  background: #d6e5fc;
}

.link-fill-box {
  display: flex;
  text-decoration: none;
  color: inherit;
}

.similar-tour-img {
  width: 130px;
  height: 130px;
  object-fit: cover;
  border-radius: 20px;
  margin-right: 10px;
}

.similar-tour-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex-grow: 1;
  width: calc(100% - 130px);
}

.similar-tour-title {
  font-size: 15px;
  font-weight: bold;
  margin: 0;
  text-align: center;
}

.similar-tour-info {
  font-size: 13px;
  margin: 5px 0 0;
  text-align: center;
}

/* Homepage tour box variant */
.home-tourbox-img {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 20px;
  margin-right: 10px;
}

/* ==========================================================================
   LIST ITEM STYLES (Full-size Clickable)
   ========================================================================== */
.list-item-content__button {
  opacity: 0;
  width: 100%;
  transform: translatey(-94%);
  border-radius: 0 !important;
  height: 37rem !important;
  margin-bottom: -37rem !important;
  margin-left: -0.8rem !important;
}

.list-item-content__button:hover {
  opacity: 0 !important;
}

.list-item {
  background: #ffffff;
  padding-top: 1.5rem !important;
  border-radius: 20px !important;
}

.list-item-content {
  margin-bottom: -2rem !important;
}

.list-item:hover {
  background: #eaeff6;
  border: 1px solid #113973;
}

/* ==========================================================================
   TOUR CARD SYSTEM
   Used across all tour listing pages for consistent design
   ========================================================================== */

/* --- TOUR GRID LAYOUT --- */
.tour-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
  margin-top: 20px;
}

/* --- TOUR CARDS --- */
.card {
  display: flex;
  flex-direction: column;
  background-color: var(--bg-drawer);
  border-radius: 20px;
  overflow: hidden;
  max-width: 600px;
  width: 100%;
  min-height: 480px;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--border-light);
  transition: 0.3s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.08);
  border: 1px solid var(--primary-navy);
}

/* --- CARD IMAGE CONTAINER --- */
.card-image-cont {
  width: 100%;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.card-image-cont::before {
  content: "";
  display: block;
  padding-top: 66%;
}

.card-image-cont img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- CARD CONTENT --- */
.card-content {
  padding: 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card h2 {
  font-size: 1.05em;
  font-weight: bold;
  margin: 20px 10px 10px;
  padding: 0 5px;
  height: 2.6em;
  line-height: 1.3;
  overflow-y: auto;
  display: block;
}

/* --- DESCRIPTION CONTAINER WITH FADE EFFECT --- */
.description-container {
  position: relative;
  padding: 0 15px;
  margin-bottom: 10px;
}

.description-container::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 12px;
  width: auto;
  height: 30px;
  background: linear-gradient(to bottom, transparent, var(--bg-drawer));
  pointer-events: none;
  z-index: 1;
}

/* --- CARD DETAILS --- */
.card p.card-details {
  font-size: 0.95em;
  color: #555;
  margin: 0;
  height: 6em;
  line-height: 1.5;
  overflow-y: auto;
  display: block;
  padding-bottom: 20px;
  padding-right: 8px;
  margin-right: -8px;
}

.card p.card-details::-webkit-scrollbar {
  width: 6px;
}

.card p.card-details::-webkit-scrollbar-thumb {
  background-color: var(--border-light);
  border-radius: 3px;
}

.card p.card-details::-webkit-scrollbar-track {
  background: transparent;
}

.card div.card-details {
  font-size: 0.9em;
  color: #777;
  margin-top: 10px;
  margin-bottom: 10px;
  padding: 10px 10px 25px 10px;
  text-align: center;
  line-height: 1.5;
}

/* --- MATERIAL ICONS IN CARDS --- */
.card-details .material-symbols-sharp {
  font-size: 1.2em;
  vertical-align: text-bottom;
  line-height: 1;
}

/* --- STAR RATINGS --- */
.stars-container {
  display: inline-block;
  position: relative;
  font-size: 16px;
  line-height: 1;
  letter-spacing: 2px;
  color: #e0e4e9;
}

.stars-active {
  position: absolute;
  top: 0;
  left: 0;
  color: var(--star-gold);
  overflow: hidden;
  white-space: nowrap;
  z-index: 1;
}

/* ==========================================================================
   FILTER CONTROLS SYSTEM
   For tour listings and search functionality
   ========================================================================== */

/* --- FILTER SECTION & CONTROLS --- */
.filter-section {
  margin-bottom: 40px;
  font-family: sans-serif;
  color: var(--primary-navy);
}

.filter-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

#toggle-filters-btn {
  height: 42px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid var(--border-light);
  color: var(--primary-navy);
  cursor: pointer;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  transition: border-color 0.25s ease, background-color 0.25s ease;
  background-color: transparent;
  padding: 0 18px;
  gap: 8px;
}

#toggle-filters-btn:hover {
  border-color: var(--primary-navy) !important;
  background-color: var(--hover-background);
}

/* --- SORT DROPDOWN STYLING --- */
.sort-group .multiselect {
  width: 180px;
}

.sort-group .selectBox select {
  height: 42px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid var(--border-light);
  background-color: white;
  color: var(--primary-navy);
  padding: 0 35px 0 18px;
  box-sizing: border-box;
  width: 100%;
  outline: none;
  transition: border-color 0.2s;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: var(--arrow-svg) !important;
  background-repeat: no-repeat !important;
  background-position: right 12px center !important;
  background-size: 9px auto !important;
}

.sort-group .selectBox:hover select {
  border-color: var(--primary-navy);
  background-color: var(--hover-background);
}

.sort-options {
  display: none;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  background: #fff;
  position: absolute;
  z-index: 999;
  width: 100%;
  top: calc(100% + 5px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.sort-options .option {
  display: flex;
  align-items: center;
  padding: 12px 15px;
  font-size: 14px;
  cursor: pointer;
  color: #333;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}

.sort-options .option:hover {
  background: #f0f4f8;
}

.sort-options .option.selected {
  background: #e8f2ff;
  color: var(--primary-navy);
  font-weight: 600;
}

/* Round corners for dropdown options */
.sort-options .option:first-child,
.sort-options .option:first-child:hover,
.sort-options .option:first-child.selected {
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

.sort-options .option:last-child,
.sort-options .option:last-child:hover,
.sort-options .option:last-child.selected {
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}

/* --- FILTER DRAWER --- */
.filter-drawer {
  max-height: 0;
  overflow: visible;
  transition: max-height 0.4s ease-out, opacity 0.3s;
  opacity: 0;
  pointer-events: none;
}

.filter-drawer.open {
  max-height: 1000px;
  opacity: 1;
  pointer-events: all;
  margin-bottom: 20px;
}

.filter-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
  background: var(--bg-drawer);
  padding: 20px;
  border-radius: 20px;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-end;
  width: 100%;
}

.filter-group {
  flex: 1 1 180px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.location-group {
  flex: 2 1 300px;
}

.group-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  margin-left: 4px;
  margin-bottom: 8px;
  color: #666;
  display: block;
}

.checkbox-list p.group-label {
  padding-left: 6px;
}

.filter-group input[type="number"],
.selectBox select,
#reset-btn {
  height: 42px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid var(--border-light);
  background-color: white;
  color: var(--primary-navy);
  padding: 0 12px;
  box-sizing: border-box;
  width: 100%;
  outline: none;
  transition: border-color 0.2s;
}

.filter-group .selectBox select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding: 0 35px 0 18px;
  background-image: var(--arrow-svg) !important;
  background-repeat: no-repeat !important;
  background-position: right 12px center !important;
  background-size: 9px auto !important;
  cursor: pointer;
}

.filter-group .selectBox:hover select {
  border-color: var(--primary-navy);
  background-color: var(--hover-background);
}

.filter-group.hours-group {
  flex: 1 1 220px;
  min-width: 200px;
}

.input-row {
  display: flex;
  gap: 8px;
  width: 100%;
}

.input-row input {
  flex: 1;
  min-width: 0;
  padding: 0 8px;
}

.multiselect {
  position: relative;
  width: 100%;
}

.selectBox {
  position: relative;
  width: 100%;
  cursor: pointer;
}

.overSelect {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: 1;
}

.checkbox-list {
  display: none;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  background: #fff;
  position: absolute;
  z-index: 999;
  width: 100%;
  top: calc(100% + 5px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
  max-height: 250px;
  overflow-y: auto;
}

.checkbox-list label {
  display: flex;
  align-items: center;
  padding: 8px 15px;
  font-size: 14px;
  cursor: pointer;
  color: #333;
}

.checkbox-list label:hover {
  background: #f0f4f8;
}

.checkbox-list input[type="checkbox"] {
  margin-right: 16px;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  cursor: pointer;
}

/* --- TOGGLE SWITCHES --- */
.switch {
  position: relative;
  width: 38px;
  height: 20px;
  flex-shrink: 0;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .3s;
  border-radius: 20px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--primary-navy);
}

input:checked + .slider:before {
  transform: translateX(18px);
}

.switch-container {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  height: 100%;
}

.switch-text {
  font-size: 13px;
  font-weight: 600;
}

#reset-btn:hover {
  border-color: var(--primary-navy);
  color: var(--primary-navy);
  background-color: var(--hover-background);
}

/* ==========================================================================
   TOUR DATA POINTS & ICONS
   ========================================================================== */
.tour-data-points .material-symbols-sharp {
  vertical-align: middle;
  line-height: 2.1em;
}

.similar-tour-info .material-symbols-sharp {
  vertical-align: -28%;
}

/* ==========================================================================
   UNDERLINE LINK STYLES
   ========================================================================== */
.underline {
  position: relative;
  display: inline-block;
}

.underline::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 3px;
  width: 100%;
  height: 1px;
  background-color: black;
}

.header-underline::after {
  height: 2.5px;
  background-color: #113973;
}

.new_site_title .underline::after {
  background-color: #113973;
}

/* ==========================================================================
   GALLERY CUSTOMIZATION
   ========================================================================== */
.sqs-gallery img {
  border-radius: 20px;
}

.sqs-gallery-thumbnails img {
  border-radius: 10px;
  padding: 1px 2.5px 0px;
}

/* ==========================================================================
   PRICING TABLE
   ========================================================================== */
.pricing-table th,
.pricing-table td {
  padding: 0 15px;
}

/* ==========================================================================
   SMOOTH SCROLLING & SCROLL MARGIN
   ========================================================================== */
html {
  scroll-behavior: smooth;
}

.sectitle {
  scroll-margin: 150px;
  padding: 20px;
  background-color: #EAEFF6;
  text-align: center;
  border-radius: 20px;
}

/* ==========================================================================
   HEADER & TITLE STYLES
   ========================================================================== */
.site_h1 {
  text-align: center;
  color: #113973;
  margin-bottom: 0px;
  font-weight: bold;
  text-shadow: #EA9C6A 0px 0 8px;
}

.site_h3 {
  text-align: center;
  color: #113973;
  font-size: 35px;
}

.site_title {
  background: rgba(234, 239, 246, 0.8);
  border-radius: 20px;
  margin: 30px;
  padding: 5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.tour-header {
  font-size: 48px;
  font-weight: bold;
  text-align: center;
  margin-top: 0px;
  margin-bottom: 0px;
  padding: 0 5px;
}

.new_site_title {
  padding: 70px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* ==========================================================================
   TOUR PAGE ELEMENTS
   ========================================================================== */
.tbl {
  text-align: center;
  margin: auto;
}

.stars {
  color: #FFD700;
}

.half-star {
  position: relative;
  display: inline-block;
  color: #FFD700;
}

.half-star::before {
  content: '★';
  position: absolute;
  left: 0;
  color: #FFD700;
  overflow: hidden;
}

.arrow {
  border: solid black;
  border-width: 0 2px 2px 0;
  display: inline-block;
  padding: 5px;
  transform: rotate(45deg);
  -webkit-transform: rotate(45deg);
  position: relative;
  top: -2px;
}

.text_button {
  background: none;
  border: 1px solid black;
  border-radius: 20px;
  padding: 20px;
}

#booking {
  scroll-margin: 150px;
  border: 1px solid #aaaaaa;
  border-radius: 10px;
  padding: 4px 10px;
}

.calendar-loading {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: -1;
  color: #808080;
  font-style: italic;
}

/* ==========================================================================
   PHONE LOGO IN SOCIAL ICONS
   ========================================================================== */
.sqs-svg-icon--list a:nth-of-type(5) svg {
  display: none;
}

.sqs-svg-icon--list a:nth-of-type(5) {
  background-image: url(https://static1.squarespace.com/static/62db227779f36e51d2786802/t/650bdbc27eaf1802dc74ecc9/1695275970286/phone_logo_white_blue_border.png);
  background-size: 90%;
  background-repeat: no-repeat;
}

.header-menu-actions-action:nth-of-type(5) svg {
  display: none;
}

.header-menu-actions-action:nth-of-type(5) {
  background-image: url(https://static1.squarespace.com/static/62db227779f36e51d2786802/t/650bdbc27eaf1802dc74ecc9/1695275970286/phone_logo_white_blue_border.png);
  margin-top: 4.25%;
  background-size: 80%;
  background-repeat: no-repeat;
}

/* ==========================================================================
   MOBILE RESPONSIVE
   ========================================================================== */
@media only screen and (max-width: 767px) {
  .tour-header {
    font-size: 38px;
  }

  .new_site_title {
    padding: 20px;
  }
}

@media only screen and (min-width: 640px) {
  .header-actions-action--social .icon--fill:nth-of-type(5) svg {
    display: none;
  }

  .header-actions-action--social .icon--fill:nth-of-type(5) {
    background-image: url(https://static1.squarespace.com/static/62db227779f36e51d2786802/t/650bdbc27eaf1802dc74ecc9/1695275970286/phone_logo_white_blue_border.png);
    margin-top: 1%;
    background-size: 80%;
    background-repeat: no-repeat;
  }
}

@media screen and (max-width: 1325px) {
  .cta-arrows {
    color: #ffffff;
    font-size: 0.1px;
  }
}
