/* 
Theme Name: SF City Guides Theme
Author: HyperArts
Author URI: http://hyperarts.com
Template: genesis
Version: 2.0
*/

/* Raw styles are in assets/css/saas/main.css */
/* Compiled styles are in /dist/main.css */

body.page-template-page-findtour #today-events .single, body.page-template-page-findtour #tomorrow-events .single, body.page-template-page-findtour #yesterday-events .single, body.page-template-page-findtour #topic-events .single {
overflow: visible !important;
}

.single-tour .info_icons {
	margin-bottom: 20px;
	display: flex !important;
}
 
.single-tour .info_icons .icon-label {
	display: inline !important;
}

/* do not display the hover boxes on single tour page */
.single-tour .icon-wrap:hover::after { opacity: 0 !important; }
.single-tour .icon-wrap:hover::before { opacity: 0 !important; }

div.tour-details {
	margin-left: 5px;
	max-width: 100% !important;
}

div.info_icons { 
	position: relative; 
	left: 5px; 
	top: 2px; 
	max-width: 100% !important;}

/* Base (desktop default) */
.info_icons {
  display: inline-flex !important;
  align-items: center;
  gap: 7px;          /* space between icon items */
  flex-wrap: wrap;   /* allow wrapping when needed */
}

.icon-wrap {
  position: relative;
  display: inline-flex !important;
  align-items: center;
  cursor: pointer;
  gap: 7px;          /* space between icon and label */
}

.icon-wrap img {
  width: 20px !important;
  height: 20px !important;
  object-fit: contain !important;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.icon-wrap:hover img {
  transform: scale(1.15);
  filter: brightness(1.2);
}

/* Tooltip BELOW icon (desktop) */
.icon-wrap::after {
  content: attr(data-title);
  position: absolute;
  top: 130%;
  left: 50%;
  transform: translateX(-50%);
  background-color: #9e3103;
  color: #fff;
  padding: 5px 10px;
  border-radius: 4px;
  font-family: sans-serif;
  font-size: 13px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 2;
}

.icon-wrap:hover::after { opacity: 1 !important; }

.icon-wrap::before {
  content: "";
  position: absolute;
  top: 120%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-bottom-color: #9e3103;
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 1;
}

.icon-wrap:hover::before { opacity: 1 !important; }

/* Hidden by default (desktop) */
.icon-label {
  display: none !important;
  font-family: sans-serif;
  font-size: 14px;
  color: #9e3103;
  font-weight: 500;
  white-space: nowrap;
}

/* ---------- MOBILE: one flex row that wraps as needed ---------- */
@media (max-width: 550px) {
  .info_icons {
    display: flex;         /* keep flex row */
    flex-wrap: wrap;       /* wrap to next line when needed */
    gap: 10px 14px;        /* a bit more breathing room on mobile */
    justify-content: flex-start;
  }

  /* turn off tooltips on touch */
  .icon-wrap::before,
  .icon-wrap::after { display: none; }

  /* show inline labels on mobile */
  .icon-label { display: inline !important; }

  /* simplify hover effects on mobile */
  .icon-wrap img {
    transform: none !important;
    filter: none !important;
  }
}
