/*
 Theme Name:   Traveling Happiness Child
 Template:     minimalistblogger
 Description:  Child theme of my-minimalist-blog, with styles/functions from travel-minimalist-blogger and Trading Happiness customizations
 Version:      1.0
*/


/* ==== Individual Card Link Container ====
   Used to contain each clickable card and control layout width
*/
.minimal-card-link {
  text-decoration: none;
  color: inherit;
  max-width: 300px;
  width: 100%;
  flex: 0 0 300px;
}

/* ==== Card Style ====
   Base styling for cards used in guide and itinerary sections
*/
.minimal-card {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 15px;
  background-color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: box-shadow 0.2s ease;
}

/* ==== Card Hover Effect ====
   Adds subtle elevation on hover
*/
.minimal-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  cursor: pointer;
}

/* ==== Card Image ====
   Ensures images are responsive and nicely spaced
*/
.minimal-card-img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  margin-bottom: 15px;
  display: block;
}

/* ==== Card Title & Excerpt ====
   Styling for card headings and text snippets
*/
.minimal-card-title {
  margin: 0 0 10px 0;
  font-size: 1.2em;
  font-weight: bold;
  color: inherit;
}

.minimal-card-excerpt {
  margin: 0;
  font-size: 1em;
  line-height: 1.5;
  color: inherit;
}

/* ==== Footer Site Info Cleanup ====
   Hides default theme credit and adds custom branding
*/
.site-info {
  font-size: 0;
}
.site-info::before {
  content: "© 2025 Trading Happiness";
  font-size: 14px;
}

/* ==== Horizontal Scroll Layout for Destination Cards ====
   Enables left-right scrollable card sections by region or category
*/
.scroll-container-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 2rem;
  width: 100%;
}

.card-scroll-row {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  gap: 20px;
  padding: 10px 0;
  margin: 0 40px;
  scrollbar-width: none; /* Firefox */
}

.card-scroll-row::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

/* ==== Scroll Buttons ====
   Left/right arrows positioned at edges of scroll container
*/
.scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  color: #999;
  width: 35px;
  height: 35px;
  font-size: 18px;
  cursor: pointer;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
}

.scroll-btn.left {
  left: 0;
}

.scroll-btn.right {
  right: 0;
}

.scroll-btn:hover {
  color: #333;
  border-color: #999;
}

/* ==== Typography & List Alignment for Destination Sections ====
   Applies consistent styling to intro paragraphs and lists
*/
.destination-intro {
  max-width: 700px;
  margin: auto;
  font-size: 1.05rem;
  line-height: 1.6;
}

.section-content {
  padding-left: 1rem;
}

.section-content ul,
.section-content dl {
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}

.section-content dt {
  font-weight: bold;
  margin-top: 0.75rem;
}

.section-content dd {
  margin-left: 1rem;
  margin-bottom: 0.25rem;
}

/* ==== Headings for Destination Page Sections ====
   Makes major headings on pages visually consistent
*/
.destination-cta h2,
.destination-transportation h2,
.destination-days h2,
.destination-best-time h2,
.destination-areas-to-stay h2 {
  margin-bottom: 0.5rem;
  font-size: 1.4rem;
}

/* ==== Social Media Footer Icons/Links ====
*/
.footer-social-icons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.footer-social-icons a {
  color: #333;
  font-size: 1.5rem;
  text-decoration: none;
}

.footer-social-icons a:hover {
  color: #000;
}

.footer-social-icons .custom-icon {
  width: 24px;
  height: 24px;
  vertical-align: middle;
}

.footer-social-icons img.custom-icon {
  width: 24px;
  height: 24px;
  display: inline-block;
  vertical-align: middle;
}

.site-footer {
  background-color: #fff; 
  color: inherit;
}

.footer-social-icons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
}

.footer-social-icons a {
  color: inherit;
  text-decoration: none;
  font-size: 24px;
}

.footer-social-icons img.custom-icon {
  width: 24px;
  height: 24px;
  vertical-align: middle;
  display: inline-block;
}

/* Prevent invisible overlays from blocking the map */
#mobile-menu-overlay, #smobile-menu {
  display: none;
  position: fixed; inset: 0;
  z-index: 9999;       /* only matters when opened */
}
#mobile-menu-overlay.is-open, #smobile-menu.is-open { display: block; }
#mobile-menu-overlay:not(.is-open), #smobile-menu:not(.is-open) { pointer-events: none; }

#mapgeo, .mapgeo-map, .mapgeo-container,
.igm-map, .interactive-geo-map,
[id^="mapgeo-"], [id^="map-"], .amcharts-chart-div, .leaflet-container {
  min-height: 420px;
  height: 420px;  /* switch to min-height + aspect-ratio later if you prefer */
}

.site-footer { position: relative; z-index: 1; }

.footer-social-icons a {
  position: relative;
  z-index: 2;
  pointer-events: auto;
}

/* --- Make sure hidden overlays don't swallow clicks --- */
#mobile-menu-overlay,
#smobile-menu {
  display: none;
  pointer-events: none;   /* don't intercept clicks when closed */
  position: fixed;
  inset: 0;
  z-index: 9999;          /* matters only when opened */
}

/* Only active when your JS toggles "is-open" */
#mobile-menu-overlay.is-open,
#smobile-menu.is-open {
  display: block;
  pointer-events: auto;
}
