/*
Theme Name: TIEholidays Luxury Fixed v3.5
Theme URI: https://tieholidays.example
Author: TIEholidays
Author URI: https://tieholidays.example
Description: Luxury travel theme (full-width, responsive) with Tours, Destinations, Regions, Offers; repeater fields for We Love, Day-by-Day Itinerary, Terms & Conditions, Includes, Excludes; Flatpickr availability; currency switcher; CSV importers.
Version: 3.5.0
License: GPL-2.0-or-later
Text Domain: tieholidays-luxury
*/

/* === Base Colors & Variables === */
:root {
  /* Brand (from logo) */
  --primary:#289DB9;         /* teal */
  --primary-600:#218AA3;
  --primary-700:#1A6E82;

  --secondary:#0A2B56;       /* navy */
  --secondary-700:#071F3E;
  --secondary-800:#05172E;

  /* Semantic aliases used across theme */
  --gold: var(--primary);    /* legacy variable name */
  --blue: var(--primary);
  --navy: var(--secondary);

  --row-divider:#E6E7EB;
  --panel-bg:#F5F6F8;
  --icon-dark:#333B4A;
}


/* === Panel Lists === */
.panel-list {
  background: var(--panel-bg);
  border: 1px solid #E9ECF2;
  border-radius: 12px;
  padding: 14px 16px;
}

.panel-title {
  font-weight: 700;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: .35rem;
}

.panel-title .icon-heart::before { content:"\2665"; color: var(--gold); }
.panel-title .icon-calendar::before { content:"\1F4C5"; }
.panel-title .icon-doc::before { content:"\1F4C4"; }
.panel-title .icon-plus::before { content:"\2795"; }
.panel-title .icon-minus::before { content:"\2796"; }
.panel-title [class^="icon-"]::before { display:inline-block; width:1.1rem; text-align:center; opacity:.95; }

.list-ruled ul { list-style:none; padding-left:0; margin:0; }
.list-ruled ul>li, .list-ruled>li {
  padding:10px 0;
  border-bottom:1px solid var(--row-divider);
  position:relative;
  padding-left:1.4rem;
}
.list-ruled ul>li:last-child, .list-ruled>li:last-child { border-bottom:0; }

/* Icons per section */
.panel-list.we-love ul>li::before,
.panel-list.tnc ul>li::before,
.panel-list.includes ul>li::before {
  content:"\2714"; color:var(--icon-dark); font-weight:700; position:absolute; left:0; top:10px;
}
.panel-list.excludes ul>li::before {
  content:"\2716"; color:#7B8794; position:absolute; left:0; top:10px;
}

/* Itinerary Day Counter */
.panel-list.itinerary ul { counter-reset:day; }
.panel-list.itinerary ul>li::before {
  counter-increment:day;
  content:"Day " counter(day) ":";
  font-weight:700;
  color:var(--navy);
  position:absolute;
  left:0;
  top:10px;
}
.panel-list.itinerary ul>li { padding-left:4.5rem; }

/* === Footer === */
.footer {
  background:var(--secondary-800);
  color:#cfd6e6;
  padding:3rem 0;
  margin-top:4rem;
}
.footer a { color:#cfd6e6; }
.footer a:hover { color:#fff; }
.footer-hr { border-color:rgba(255,255,255,.08); }
.footer-links li { margin:.25rem 0; }
.footer .text-secondary { color:#9aa4b5 !important; }
.footer-social .social-ico {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:34px; height:34px;
  border-radius:50%;
  border:1px solid rgba(255,255,255,.3);
  color:#fff; font-size:.8rem;
  transition:all .2s ease;
}
.footer-social .social-ico:hover {
  background:var(--primary);
  border-color:var(--primary);
  color:#fff;
}

/* === Core Card & Hero === */
.card-lux {
  border:0;
  border-radius:18px;
  background:#fff;
  box-shadow:0 12px 36px rgba(0,0,0,.07);
}

.navbar {
  background:linear-gradient(180deg,var(--secondary-800) 0%,var(--secondary) 100%);
}
.navbar .navbar-brand, .navbar .nav-link { color:#fff; }
.navbar .nav-link:hover { color:var(--blue); }

/* Ensure the logo stays readable against the dark navbar */
.navbar .site-logo{
  display:inline-flex;
  align-items:center;
  background:#ffffff;
  padding:6px 10px;
  border-radius:14px;
  box-shadow:0 6px 18px rgba(0,0,0,.12);
  padding:8px 12px;
  border-radius:14px;
  box-shadow:0 6px 18px rgba(0,0,0,.18);
  border:1px solid rgba(10,43,86,.12);
}

.navbar .site-logo .custom-logo-link,
.navbar .site-logo .custom-logo-link:hover{ display:inline-flex; }
.navbar .site-logo img{
  display:block;
  height:44px;
  width:auto;
}
@media (max-width: 576px){
  .navbar .site-logo{ padding:5px 8px; border-radius:12px; }
  .navbar .site-logo img{ height: 46px; }
  .site-title{ display:none; } /* keep header uncluttered on small screens */
}
.currency-switch {
  color:#fff;
  border:1px solid rgba(255,255,255,.25);
  border-radius:999px;
  padding:.25rem .6rem;
}

/* Hero */
.tour-hero { position:relative; min-height:60vh; }
.tour-hero-img { width:100%; height:60vh; object-fit:cover; display:block; }
.tour-hero-overlay {
  position:absolute; inset:0;
  display:flex; flex-direction:column;
  align-items:center; justify-content:center;
  text-align:center;
  padding:clamp(16px,3vw,32px);
  background:linear-gradient(180deg, rgba(0,0,0,.25), rgba(0,0,0,.55));
}
.tour-hero-title { font-size: clamp(28px, 5vw, 52px); letter-spacing:.3px; }
.tour-hero-tagline { font-size: clamp(14px, 2.2vw, 18px); }

@media (max-width: 768px){
  .tour-hero { min-height:48vh; }
  .tour-hero-img { height:48vh; }
}

/* === Why Choose Us === */
.why-choose-us .wcu-item {
  background:#fff;
  box-shadow:0 6px 18px rgba(0,0,0,.06);
  border:1px solid rgba(0,0,0,.05);
  transition:transform .2s ease, box-shadow .2s ease;
}
.why-choose-us .wcu-item:hover {
  transform:translateY(-3px);
  box-shadow:0 10px 24px rgba(0,0,0,.10);
}
.why-choose-us .wcu-icon {
  width:56px; height:56px;
  background:rgba(0,0,0,.04);
}
.why-choose-us .wcu-icon svg {
  display:block; width:28px; height:28px;
}
@media (prefers-color-scheme: dark) {
  .why-choose-us .wcu-item { background:#101214; border-color:rgba(255,255,255,.08); }
  .why-choose-us .wcu-icon { background:#ffffff; }
}

/* === Tour Headings === */
.card-lux h3 {
  border-bottom: 1px solid #eee;
  padding-bottom: .4rem;
  margin-bottom: 1rem;
  font-weight: 700;
  color: var(--gold);
}
.panel-list .row-text { display:block; line-height:1.5; }

/* === Availability Calendar (Clean Layout) === */
.flatpickr-calendar {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  border-radius: 12px;
  border: 1px solid #e0e3ea;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  overflow: hidden;
}

.flatpickr-day {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 54px !important;
  line-height: 1.1;
  padding: 0 !important;
  position: relative;
  font-size: 0.9rem;
  text-align: center;
  overflow: visible;
}

.flatpickr-day.has-price .fp-price-label {
  display: block;
  font-size: 11px;
  line-height: 1;
  color: #666;
  margin-top: 3px;
  pointer-events: none;
  font-weight: 500;
}

.flatpickr-day.selected.has-price .fp-price-label {
  color: #fff !important;
  font-weight: 600;
}

.flatpickr-day.has-price:hover {
  background: rgba(0, 123, 255, 0.08);
  border-radius: 6px;
}

.flatpickr-months {
  border-bottom: 1px solid #e6e8ec;
  margin-bottom: 4px;
  padding-bottom: 4px;
}
.flatpickr-weekdays {
  font-size: 0.8rem;
  color: #666;
}

.availability-calendar { text-align: center; }
#tour-date-price {
  font-size: 0.95rem;
  color: #555;
  text-align: center;
  margin-top: 0.75rem;
}

@media (max-width: 768px) {
  .flatpickr-calendar { max-width: 100%; }
  .panel-list { padding: 10px 12px; }
}

/* Optional weekend dimming */
.flatpickr-weekday:nth-child(6),
.flatpickr-weekday:nth-child(7),
.flatpickr-day:nth-child(6n),
.flatpickr-day:nth-child(7n) {
  color: #999;
}
/* === Final Calendar Fix: Proper date + price stacking === */
.flatpickr-day {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center;
  align-items: center;
  text-align: center;
  height: 58px !important;
  width: 46px !important;
  line-height: 1.1;
  padding: 0 !important;
  vertical-align: middle !important;
}

.flatpickr-day.has-price {
  position: relative;
  overflow: visible;
}

.flatpickr-day .fp-price-label {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  color: #555;
  line-height: 1.1;
  font-weight: 500;
  pointer-events: none;
}

.flatpickr-day.selected .fp-price-label {
  color: #fff !important;
  font-weight: 600;
}

.flatpickr-day.has-price:hover {
  background: rgba(0, 123, 255, 0.08);
  border-radius: 6px;
}

/* tighten spacing so calendar fits perfectly */
.flatpickr-innerContainer {
  padding-bottom: 6px;
}
/* === Homepage Hero Search Box === */
.tour-hero .filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  background: rgba(255,255,255,0.97);
  padding: 1.25rem 1.5rem;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  max-width: 720px;
  margin: 0 auto;
}

.tour-hero .filters select,
.tour-hero .filters input,
.tour-hero .filters button {
  border-radius: 8px;
  font-size: 0.95rem;
}

.tour-hero .filters .btn {
  background: var(--gold);
  color: #fff;
  border: none;
  padding: .6rem 1.2rem;
  transition: all 0.2s ease;
}

.tour-hero .filters .btn:hover {
  background: #967528;
  transform: translateY(-1px);
}

.tour-hero .filters label {
  font-weight: 600;
  font-size: 0.85rem;
  color: #333;
}

/* Responsive hero form */
@media (max-width: 768px) {
  .tour-hero .filters {
    padding: 1rem;
    gap: 0.75rem;
  }
  .tour-hero .filters .col-md-4 {
    flex: 1 1 100%;
  }
}
.tour-hero + .container {
  position: relative;
  z-index: 5;
}
.tour-hero + .container .bg-white {
  box-shadow: 0 10px 25px rgba(0,0,0,0.12);
  border-radius: 12px;
}
@media (max-width: 768px){
  .tour-hero + .container { margin-top: -1rem !important; }
}
/* ============================================================
   FIX: Responsive Hero Banner (Desktop + Tablet + Mobile)
   ============================================================ */

/* Better structure */
.tour-hero {
  position: relative;
  width: 100%;
  height: 60vh;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.tour-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.tour-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.25), rgba(0,0,0,.55));
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: clamp(12px, 3vw, 32px);
  text-align: center;
}

/* Headings scale properly */
.tour-hero-title {
  font-size: clamp(28px, 6vw, 52px);
  line-height: 1.1;
  font-weight: 700;
  color: #fff;
  margin-bottom: .25rem;
}

.tour-hero-tagline {
  font-size: clamp(14px, 2.5vw, 18px);
  color: rgba(255,255,255,0.85);
  margin-bottom: 1rem;
}

/* ===========================================
   FIX: RESPONSIVE HERO BANNER FOR TABLET
   =========================================== */
@media (max-width: 992px) {
  .tour-hero {
    height: 52vh;
    min-height: 320px;
  }
  .tour-hero-img {
    height: 100%;
  }
}

/* ===========================================
   FIX: RESPONSIVE HERO BANNER FOR MOBILE
   =========================================== */
@media (max-width: 767px) {

  .tour-hero {
    height: 46vh;
    min-height: 260px;
  }

  .tour-hero-img {
    height: 100%;
  }

  .tour-hero-overlay {
    padding: 12px;
  }

  .tour-hero-title {
    font-size: 24px;
  }

  .tour-hero-tagline {
    font-size: 14px;
  }

  /* Search box spacing fix */
  .tour-hero .filters {
    padding: 0.85rem !important;
    gap: 0.6rem;
    margin-top: 1rem;
    max-width: 95%;
  }

  .tour-hero .filters select,
  .tour-hero .filters input,
  .tour-hero .filters button {
    font-size: 0.9rem;
  }

  .tour-hero .filters .btn {
    padding: 0.55rem 1rem;
  }
}

/* ===========================================
   FIX: MAKE SEARCH BOX SIT BELOW HERO NICELY
   =========================================== */
.tour-hero + .container {
  margin-top: -2.5rem;
  position: relative;
  z-index: 20;
}

@media (max-width: 768px){
  .tour-hero + .container {
    margin-top: -1.4rem;
  }
}
.tourGallerySwiper {
  width: 100%;
  padding-bottom: 30px;
}

.tourGallerySwiper .swiper-slide img {
  border-radius: 12px;
  height: 260px;
  object-fit: cover;
  width: 100%;
}

.swiper-button-next,
.swiper-button-prev {
  color: var(--gold);
  transition: 0.3s;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  color: #111;
}
/* Wrapper keeps gallery small + centered */
.gallery-wrapper-small {
  max-width: 900px;        /* smaller size */
  margin: 0 auto;          /* center */
  padding: 0 15px;
}

/* Image wrapper */
.tour-gallery-image-wrapper-small {
  width: 100%;
  height: 180px;           /* smaller height */
  overflow: hidden;
  border-radius: 10px;
}

/* Make images uniform */
.tour-gallery-img-small {
  width: 100%;
  height: 100%;
  object-fit: cover;       /* crop neatly */
  border-radius: 10px;
}

/* Navigation buttons */
.small-nav {
  color: var(--gold) !important;
}

/* Bullet active color */
.swiper-pagination-bullet-active {
  background: var(--gold) !important;
}
.navbar .navbar-brand,
.navbar .nav-link {
  color: #fff;
}

.navbar .nav-link {
  padding: 0.5rem 0.9rem;  /* ✅ nice spacing around menu titles */
}

.navbar .nav-link:hover,
.navbar .nav-link:focus {
  color: #f5f5f5;
}
.site-logo img {
    height: 36px !important;
    width: auto !important;
}

.site-title {
    font-size: 1.2rem;
    letter-spacing: .5px;
}
/* Ensure logo automatically adjusts size */
.site-logo img,
.custom-logo {
    max-height: 48px;   /* Change this value if needed */
    height: auto;
    width: auto !important;
    object-fit: contain;
    display: block;
}


/* === Brand Theme Overrides (Logo Colors) === */
a { color: var(--primary-700); }
a:hover { color: var(--primary); }

/* Buttons */
.btn-primary,
.btn-blue {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.btn-primary:hover,
.btn-blue:hover,
.btn-primary:focus,
.btn-blue:focus {
  background: var(--primary-600);
  border-color: var(--primary-600);
  color:#fff;
}
.btn-outline-primary {
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline-primary:hover,
.btn-outline-primary:focus {
  background: var(--primary);
  border-color: var(--primary);
  color:#fff;
}

/* Badges / accents */
.badge.text-bg-light { border:1px solid rgba(0,0,0,.06); }

/* Navbar */
.navbar { background: linear-gradient(180deg, var(--secondary-800) 0%, var(--secondary) 100%); }
.navbar .nav-link:hover { color: rgba(255,255,255,.92); text-decoration: underline; text-underline-offset: 6px; }

/* Footer */
.footer { background: var(--secondary-800); }
.footer-social .social-ico:hover { background: var(--primary); border-color: var(--primary); }

/* Headings using legacy gold var */
.card-lux h3,
.panel-title { color: var(--primary); }
.panel-title .icon-heart::before { color: var(--primary); }

/* === Home Hero (background cover) === */
.tour-hero-cover{
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: clamp(420px, 72vh, 760px);
  display: flex;
}
.tour-hero-cover .tour-hero-overlay{
  width:100%;
  min-height: inherit;
  background:
    radial-gradient(1200px 600px at 50% 40%, rgba(40,157,185,.15), rgba(10,43,86,0) 60%),
    linear-gradient(180deg, rgba(5,23,46,.35), rgba(5,23,46,.72));
}
.tour-hero-fallback{
  position:absolute; inset:0;
  background:
    radial-gradient(900px 420px at 40% 35%, rgba(40,157,185,.25), rgba(10,43,86,0) 60%),
    linear-gradient(135deg, var(--secondary-800), var(--secondary));
}

/* Hero search card */
.hero-search-card{
  width: min(980px, 100%);
  backdrop-filter: blur(10px);
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(255,255,255,.35);
}
.hero-search-card .form-label{ font-weight:600; color: rgba(10,43,86,.92); }
.hero-search-card .form-select{
  border-radius: 12px;
  border-color: rgba(10,43,86,.18);
}
.hero-search-card .btn{ border-radius: 12px; padding:.7rem 1rem; font-weight:700; }

@media (max-width: 768px){
  .tour-hero-cover{ min-height: clamp(360px, 58vh, 520px); }
  .tour-hero-overlay{ justify-content: flex-end; padding-bottom: 18px; }
  .tour-hero-tagline{ margin-bottom: 12px !important; }
  .hero-search-card{ padding: 12px !important; }
  .hero-search-card .form-label{ display:none; }
}

/* Reduce jumpiness when hero contains form */
.tour-hero-title{ text-shadow: 0 6px 24px rgba(0,0,0,.35); }
