/*
 * SoFun site refresh
 *
 * Cosmetic changes that used to be injected through Google Tag Manager
 * (Custom HTML tags in GTM-P342JNC), moved into the site's own code
 * (ticket 300406). The markup they need now comes from the Blade templates,
 * so nothing here depends on scripts rewriting the page after load.
 *
 * Loaded after dist/styles.css and homepage-custom.css. Many rules keep
 * !important because they override theme rules that already use it.
 *
 * Sections:
 *   1. Header
 *   2. Category pages (/categories/{slug})
 *   3. Categories index (/categories)
 *   4. Breadcrumbs on phones
 *   5. Interaction polish (hover, tap, date fields, dropdown gap)
 */

/* =========================================================================
   1. Header
   ========================================================================= */

#sticky-header{height:auto!important;min-height:0!important}
#sticky-header>.container{padding:0!important;margin:0!important;max-width:none!important;width:100%!important}
#sticky-header .columns{display:flex!important;align-items:center;flex-wrap:nowrap;gap:14px;height:56px;margin:0 auto!important;padding:0 16px!important;max-width:1240px;box-sizing:border-box}
#sticky-header .columns>div{display:contents!important}

#sticky-header a.burger{order:1;margin:0!important;display:inline-flex!important;align-items:center}

#sticky-header a.main-logo{order:2;display:block!important;flex:none;width:71px;height:30px;margin:0!important;padding:0!important}
#sticky-header a.main-logo img{display:block!important;width:100%!important;height:100%!important;max-height:none!important;margin:0!important;object-fit:contain;object-position:left center}

#sticky-header .header-dropdown{order:3}
#sticky-header .lang-menu{order:5;margin-left:auto!important}
#sticky-header .user-control>a.btn--discount{order:6;margin-left:auto!important;display:inline-flex!important}
#sticky-header .is-flex.align-center>a.btn{order:6;display:none!important}
#sticky-header .user-link,#sticky-header .user-control>a[href*="/login"]{order:7}
#sticky-header .user-sign-out{order:8}

#sticky-header a.btn--discount,#sticky-header .is-flex.align-center>a.btn{align-items:center;background:transparent!important;color:#de222a!important;border:1px solid #de222a!important;box-shadow:none!important;white-space:nowrap;text-transform:uppercase!important;font:400 12.5px/1.2 Roboto,Arial,sans-serif!important;letter-spacing:.06em!important;padding:8px 14px!important;height:auto!important;margin:0!important;border-width:1px!important;border-radius:10px!important}

/* Signed-in user: round badge with the first letter of the name */
#sticky-header .user-link{display:inline-flex!important;align-items:center;justify-content:center;flex:none;width:32px;height:32px;margin-left:12px!important;border:1px solid #f3c9cb;border-radius:50%;background:#fdf1f1;color:#de222a!important;text-decoration:none!important}
#sticky-header .user-link .user-initial{display:block;font:700 13px Roboto,Arial,sans-serif;color:#de222a}

#sticky-header .user-sign-out{display:none!important}
#sticky-header .lang-menu{display:none!important}

.product,.section-page{padding-top:57px!important}

@media (max-width:1023px){
  #sticky-header .user-control>a[href*="/login"]{display:inline-flex!important;align-items:center;justify-content:center;flex:none;width:32px;height:32px;padding:0!important;margin:0 0 0 12px!important;border:1px solid #e5dbd2!important;border-radius:50%!important;font-size:0!important;background:#fff!important;color:#de222a!important;box-shadow:none!important}
  #sticky-header .user-control>a[href*="/login"] i{font-size:15px!important;margin:0!important}
}

@media (min-width:1024px){
  #sticky-header .columns{height:68px;gap:22px;max-width:960px;padding:0!important}
  body:has(.product) #sticky-header .columns{max-width:906px!important}
  #sticky-header a.burger{display:none!important}
  #sticky-header a.main-logo{width:90px;height:38px}

  /* "Things to do in Sofia" dropdown */
  #sticky-header .header-dropdown{display:block!important;margin:0!important;position:relative;border:0!important;box-shadow:none!important;background:transparent!important;width:auto!important;min-width:0!important;height:auto!important;padding:0!important}
  #sticky-header .header-dropdown>div{display:flex!important;align-items:center;gap:6px;padding:8px 10px!important;border-radius:8px;cursor:pointer;width:auto!important;height:auto!important;border:0!important}
  #sticky-header .header-dropdown>div:hover{background:#f6f1ec}
  #sticky-header .header-dropdown>div span{font:500 16px Roboto,Arial,sans-serif!important;color:#1c1410!important}
  #sticky-header .header-dropdown-arrow{border:0!important;width:auto!important;height:auto!important;background:none!important;display:inline-flex!important}
  #sticky-header .header-dropdown-arrow i{color:#1c1410!important;font-size:14px!important}
  #sticky-header .header-dropdown-inner{min-width:280px!important;width:280px!important;left:0!important}

  /* Language switch as text: BG | EN */
  #sticky-header .lang-menu{display:flex!important;gap:6px;align-items:center}
  #sticky-header .lang-menu a.lang{display:inline-block!important;font:500 14px Roboto,Arial,sans-serif;color:#5c4a3e!important;text-decoration:none!important;padding:0 0 0 6px!important;margin:0!important;border-left:1px solid #e5dbd2;width:auto!important;height:auto!important}
  #sticky-header .lang-menu a.lang:first-child{border-left:0;padding-left:0!important}
  #sticky-header .lang-menu a.lang.is-selected{font-weight:700;color:#1c1410!important}

  #sticky-header .user-control>a.btn--discount{display:none!important}
  #sticky-header .is-flex.align-center>a.btn{display:inline-flex!important;padding:10px 16px!important;margin-left:0!important}
  #sticky-header .user-link{width:38px;height:38px;margin-left:16px!important}
  #sticky-header .user-link .user-initial{font-size:14px}
  #sticky-header .user-control>a[href*="/login"]{display:inline-flex!important;align-items:center;justify-content:center;width:38px;height:38px;padding:0!important;margin:0 0 0 16px!important;border:1px solid #e5dbd2!important;border-radius:50%!important;font-size:0!important;background:#fff!important;color:#de222a!important}
  #sticky-header .user-control>a[href*="/login"] i{font-size:17px!important;margin:0!important}
  #sticky-header .user-sign-out{display:inline-flex!important;margin-left:4px!important;color:#8a7a6e!important}

  .product,.section-page{padding-top:69px!important}
}
@media (min-width:1216px){#sticky-header .columns{max-width:1152px}}
@media (min-width:1408px){#sticky-header .columns{max-width:1344px}}

/* =========================================================================
   2. Category pages (/categories/{slug})
   ========================================================================= */

/* Section labels: "Browse by type" / "More in this category" */
.section-label{font:600 13px/1.2 Roboto,Arial,sans-serif;letter-spacing:.06em;text-transform:uppercase;color:#8a7a6e;margin:2px 0 10px}
.section-label--spaced{margin-top:22px}

/* Service cards: image on top, title and "from" price below */
.tours .columns{margin:0 -8px!important}
.tours .column.is-4{padding:8px!important;display:flex!important}
.tours .column.is-4>.box-service{width:100%}
.tours .box-service{background:#fff!important;height:auto!important;min-height:0!important;border-radius:14px!important;overflow:hidden;border:1px solid #eee5dc;box-shadow:0 1px 2px rgba(28,20,16,.05),0 6px 16px rgba(28,20,16,.06)!important;transition:transform .15s,box-shadow .15s}
.tours .box-service:hover{transform:translateY(-2px);box-shadow:0 2px 4px rgba(28,20,16,.06),0 12px 26px rgba(28,20,16,.1)!important}
.tours .box-service::before,.tours .box-service::after,.tours .box-service>a::before,.tours .box-service>a::after,.tours .box-service .content::before,.tours .box-service .content::after{display:none!important;content:none!important}
.tours .box-service>a{display:flex!important;flex-direction:column;height:100%!important;position:static!important;color:#1c1410!important;text-decoration:none!important;background:none!important}
.tours .service-card__img{position:relative;display:block;aspect-ratio:16/10;background:#efe7df center/cover no-repeat}
.tours .box-service .content{position:static!important;inset:auto!important;height:auto!important;padding:12px 14px 14px!important;margin:0!important;background:none!important;display:flex!important;flex-direction:column;gap:6px;justify-content:flex-start!important}
.tours .box-service h2{font:600 17px/1.3 Roboto,Arial,sans-serif!important;color:#1c1410!important;margin:0!important;padding:0!important;text-shadow:none!important;letter-spacing:0!important}
.tours .box-service .content,.tours .box-service h2,.tours .service-card__meta{text-align:left!important;align-items:flex-start!important}
.tours .service-card__meta{font:400 14px/1.3 Roboto,Arial,sans-serif;color:#6b5a4e}
.tours .service-card__meta b{font-weight:700;color:#1c1410}
.tours .service-card__img .discount-label{position:absolute!important;top:10px;left:10px;right:auto!important;float:none!important;margin:0!important;padding:4px 9px!important;border-radius:999px!important;background:#fff!important;box-shadow:0 1px 3px rgba(0,0,0,.18);animation:none!important}
.tours .service-card__img .discount-label span{color:#de222a!important;font:600 12.5px/1.2 Roboto,Arial,sans-serif!important;background:none!important;padding:0!important}

/* Subcategory tiles: one grid with the activity count under the name */
.column.is-9>.boxes-holder{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:0 0 6px!important;padding:0!important}
.is-9>.boxes-holder>.column{width:auto!important;max-width:none!important;padding:0!important;margin:0!important;flex:none!important;display:flex!important}
.is-9>.boxes-holder .box-category{width:100%;height:auto!important;min-height:0!important;margin:0!important;padding:0!important;border-radius:14px!important;overflow:hidden;border:1px solid #eee5dc;background:#fff!important;box-shadow:0 1px 2px rgba(28,20,16,.05),0 6px 16px rgba(28,20,16,.06)!important;transition:transform .15s}
.is-9>.boxes-holder .box-category:hover{transform:translateY(-2px)}
.is-9>.boxes-holder .box-category>a{display:flex!important;flex-direction:column;position:relative;height:100%;color:#1c1410!important;text-decoration:none!important;align-items:stretch!important}
.is-9>.boxes-holder .category-image{width:100%!important;aspect-ratio:4/3;border-radius:0!important;display:block!important;height:auto!important;margin:0!important}
.is-9>.boxes-holder .category-image img{width:100%!important;height:100%!important;object-fit:cover;display:block;max-width:none!important}
.is-9>.boxes-holder .category-heading{box-sizing:border-box;width:100%!important;padding:10px 12px 12px!important;margin:0!important;text-align:left!important;display:block!important}
.is-9>.boxes-holder .category-heading h3,.is-9>.boxes-holder .category-heading{text-align:left!important}
.is-9>.boxes-holder .category-heading h3{font:600 16px/1.25 Roboto,Arial,sans-serif!important;color:#1c1410!important;margin:0!important}
.is-9>.boxes-holder .category-count{display:block;font:400 13px/1.3 Roboto,Arial,sans-serif;color:#6b5a4e;margin-top:3px}

@media (min-width:1024px){
  .sidebar-menu{box-shadow:none!important;border:1px solid #eee5dc!important;border-radius:14px!important}
}

@media (max-width:1023px){
  .section-page .column.is-3{padding-bottom:0!important;margin-bottom:0!important}

  /* Sidebar categories become a horizontal row of chips, current one first */
  .sidebar-menu{box-shadow:none!important;border:0!important;padding:0!important;background:none!important;margin:0!important}
  .sidebar-menu .categories-container{max-height:none!important;height:auto!important;overflow:visible!important;-webkit-mask:none!important;mask:none!important}
  .sidebar-menu .categories-container::after,.sidebar-menu .categories-container>ul::after,.sidebar-menu .categories-container>ul::before{display:none!important;content:none!important}
  .sidebar-menu .categories-container>ul{display:flex!important;flex-wrap:nowrap;gap:8px;overflow-x:auto;scrollbar-width:none;margin:0 -12px!important;padding:2px 12px 4px!important}
  .sidebar-menu .categories-container>ul::-webkit-scrollbar{display:none}
  .sidebar-menu .categories-container>ul>li{flex:none;display:block!important;border:0!important;margin:0!important;padding:0!important}
  .sidebar-menu .categories-container>ul>li.is-current{order:-1}
  .sidebar-menu .sub-menu,.sidebar-menu .menu-item-icon,.sidebar-menu .menu-item-count,.sidebar-menu .categories-toggle-btn{display:none!important}
  .sidebar-menu a.menu-item{display:inline-flex!important;align-items:center;padding:8px 14px!important;margin:0!important;border:1px solid #e5dbd2!important;border-radius:999px!important;background:#fff!important;white-space:nowrap;height:auto!important;min-height:0!important}
  .sidebar-menu a.menu-item .menu-item-content,.sidebar-menu a.menu-item .menu-item-content span{display:inline!important;margin:0!important;padding:0!important;font:500 14px/1.2 Roboto,Arial,sans-serif!important;color:#3d2f27!important}
  .sidebar-menu a.menu-item.active{background:#de222a!important;border-color:#de222a!important}
  .sidebar-menu a.menu-item.active .menu-item-content span{color:#fff!important}

  .tours .column.is-4{width:100%!important;flex:none!important}

  .column.is-9>.boxes-holder{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .is-9>.boxes-holder .category-image{aspect-ratio:16/10}
  .is-9>.boxes-holder .category-heading{padding:8px 10px 10px!important}
  .is-9>.boxes-holder .category-heading h3{font-size:15px!important}
}
@media (min-width:560px) and (max-width:1023px){.tours .column.is-4{width:50%!important}}

/* =========================================================================
   3. Categories index (/categories): "Not sure what to pick?" box
   ========================================================================= */

.not-sure-box{background:#faf5ef;border:1px solid #e6d6c6;border-radius:16px;padding:22px 18px;text-align:center;margin:28px 0 8px}
.not-sure-box__title{font:700 20px/1.25 Roboto,Arial,sans-serif;color:#1c1410;margin-bottom:6px}
.not-sure-box__text{font:400 15px/1.45 Roboto,Arial,sans-serif;color:#2b2420;max-width:460px;margin:0 auto 14px}
.not-sure-box a{display:inline-flex;align-items:center;justify-content:center;height:48px;padding:0 22px;border-radius:12px;background:#25d366;color:#fff!important;font:600 16px Roboto,Arial,sans-serif;text-decoration:none!important}

/* =========================================================================
   4. Breadcrumbs on phones: only "‹ previous page"
   ========================================================================= */

@media (max-width:767px){
  nav.breadcrumb li{display:none!important}
  nav.breadcrumb li.breadcrumb-back{display:flex!important;min-width:0;max-width:100%}
  nav.breadcrumb li.breadcrumb-back::before{content:none!important;display:none!important}
  nav.breadcrumb li.breadcrumb-back a{padding-left:0!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block}
  nav.breadcrumb li.breadcrumb-back a::before{content:"\2039";margin-right:7px;font-size:1.35em;line-height:1;vertical-align:-1px}
}

/* =========================================================================
   5. Interaction polish
   ========================================================================= */

/* Hidden scrollbars, smooth scrolling */
html,body,*{scrollbar-width:none!important;-ms-overflow-style:none!important}
html::-webkit-scrollbar,body::-webkit-scrollbar,*::-webkit-scrollbar{width:0!important;height:0!important;display:none!important}
@media (prefers-reduced-motion:no-preference){html{scroll-behavior:smooth}}

/* Date fields: the whole field opens the calendar (see js/site-ux.js) */
input[type=date],input[type=date]::-webkit-calendar-picker-indicator,:has(> input[type=date]){cursor:pointer}

/* Hover feedback for mouse users */
@media (hover:hover) and (pointer:fine){
  .btn,button,input[type=submit],.box-service,.box-category,summary,[data-p],footer a,nav.breadcrumb a,.description-body a{transition:transform .18s ease,box-shadow .18s ease,filter .18s ease,opacity .18s ease,background-color .18s ease,border-color .18s ease,color .18s ease}
  .btn:hover,button:hover,input[type=submit]:hover{filter:brightness(1.07);box-shadow:0 6px 16px rgba(0,0,0,.14)}
  .btn:not(.pulse-anim):hover,input[type=submit]:hover{transform:translateY(-1px)}
  .btn:not(.pulse-anim):active,input[type=submit]:active{transform:translateY(0);box-shadow:none}
  .box-service:hover,.box-category:hover{box-shadow:0 12px 28px rgba(0,0,0,.14)}
  footer a:hover,nav.breadcrumb a:hover,.description-body a:hover{opacity:.78;text-decoration:underline;text-underline-offset:3px}
  [data-p]:hover{filter:brightness(.97);box-shadow:0 0 0 2px rgba(240,149,79,.55)}
  summary:hover{opacity:.8}
  :has(> input[type=date]):hover{box-shadow:0 0 0 2px rgba(240,149,79,.55);border-radius:10px}
}

/* Touch screens: feedback on tap instead of hover */
a,button,summary,label,[onclick],[role=button],[data-p],[data-o]{-webkit-tap-highlight-color:transparent}
@media (hover:none){
  .btn,button,.box-service,.box-category,[data-p],summary{transition:transform .12s ease,filter .12s ease,opacity .12s ease}
  .btn:active,button:active,[data-p]:active{filter:brightness(.92)}
  .btn:not(.pulse-anim):active{transform:scale(.97)}
  .box-service:active,.box-category:active{filter:brightness(.95);transform:scale(.985)}
  summary:active{opacity:.6}
}

/* Phones: 16px form fields so iOS does not zoom in on focus */
@media (pointer:coarse){
  input[type=text],input[type=email],input[type=tel],input[type=search],input[type=number],input[type=date],input:not([type]),textarea,select{font-size:16px!important}
}

/* "Things to do in Sofia" dropdown: stays open while the mouse crosses the gap under the button */
.header-dropdown-inner::before{content:"";position:absolute;left:-1px;right:-1px;top:-34px;height:34px;background:transparent}
.header-dropdown:not(:hover) .header-dropdown-inner{transition-delay:.15s}
