/*
Theme Name: Tourist Istanbul Bosphorus BUSINESS + PAY (Adults/Children) ADMIN SCHEDULE + Time Slots
Theme URI: https://touristanbulbosphorus.com
Author: Eren Yonar
Description: Unlimited: booking request no longer blocks date automatically. Date blocks only when confirmed or paid online. Adult 10€ pp, children 0-7 free. Max 300.
Version: 4.7.9
Text Domain: tib
*/

:root{--bg:#f4f6f9;--text:#0b1220;--muted:#5b657a;--primary:#001f3f;--accent:#ff6600;--card:#ffffff;--border:rgba(11,18,32,.10);--shadow:0 10px 30px rgba(0,0,0,.08);--radius:16px}
*{box-sizing:border-box}html,body{margin:0;padding:0}
body{font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;background:var(--bg);color:var(--text);line-height:1.55}
a{color:inherit}img{max-width:100%;height:auto;display:block}
.container{width:min(1100px,92%);margin-inline:auto}.section{padding:56px 0}.section--tight{padding:36px 0}
.grid{display:grid;gap:18px}.grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.card{background:var(--card);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow);overflow:hidden}
.card__body{padding:18px}.card__title{font-size:20px;margin:0 0 8px}.card__meta{color:var(--muted);font-size:14px}
.site-header{position:sticky;top:0;z-index:50;background:rgba(0,31,63,.92);backdrop-filter:blur(8px);border-bottom:1px solid rgba(255,255,255,.08)}
.header-inner{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0}
.brand{display:flex;align-items:center;gap:10px;text-decoration:none}
.brand__logo{width:40px;height:40px;border-radius:12px;overflow:hidden;background:rgba(255,255,255,.10);display:flex;align-items:center;justify-content:center}
.brand__name{color:#fff;font-weight:800;letter-spacing:.2px}
.brand__tagline{color:rgba(255,255,255,.75);font-size:12px;margin-top:2px}
.nav{display:flex;align-items:center;gap:16px}.nav a{color:#fff;text-decoration:none;font-weight:650;opacity:.95}.nav a:hover{opacity:1;text-decoration:underline}
.nav-toggle{display:none;border:1px solid rgba(255,255,255,.18);background:rgba(255,255,255,.08);color:#fff;padding:10px 12px;border-radius:14px}
.hero{position:relative;min-height:78vh;display:flex;align-items:center;color:#fff;overflow:hidden}
.hero__bg{position:absolute;inset:0;background-size:cover;background-position:center;filter:saturate(1.05) contrast(1.02);transform:scale(1.02)}
.hero__overlay{position:absolute;inset:0;background:linear-gradient(90deg,rgba(0,10,30,.78),rgba(0,10,30,.35))}
.hero__content{position:relative;padding:48px 0}.hero h1{font-size:48px;margin:0 0 10px;line-height:1.05}.hero p{font-size:18px;margin:0 0 20px;color:rgba(255,255,255,.88);max-width:60ch}
.pill{display:inline-flex;gap:10px;align-items:center;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.18);padding:8px 12px;border-radius:999px;font-size:13px;color:rgba(255,255,255,.92)}
.btn{display:inline-flex;align-items:center;justify-content:center;padding:12px 18px;border-radius:999px;border:1px solid transparent;text-decoration:none;font-weight:750;gap:10px;cursor:pointer}
.btn--primary{background:var(--accent);color:#fff}.btn--ghost{background:rgba(255,255,255,.12);border-color:rgba(255,255,255,.18);color:#fff}.btn--outline{background:#fff;border-color:var(--border);color:var(--text)}
.btn:hover{transform:translateY(-1px);transition:.15s ease}
.tour-thumb{aspect-ratio:16/10;background:#e9edf5}.badge{display:inline-flex;align-items:center;gap:8px;border:1px solid var(--border);background:rgba(0,31,63,.06);padding:6px 10px;border-radius:999px;font-size:13px;color:var(--primary)}
.form{display:grid;gap:12px}.field{display:grid;gap:6px;text-align:left}.field label{font-weight:700;font-size:13px}
.field input,.field select,.field textarea{padding:12px 12px;border-radius:14px;border:1px solid var(--border);outline:none;font-size:15px;background:#fff}
.field input:focus,.field select:focus,.field textarea:focus{border-color:rgba(255,102,0,.55);box-shadow:0 0 0 3px rgba(255,102,0,.15)}
.notice{padding:12px 14px;border-radius:14px;border:1px solid var(--border);background:rgba(0,31,63,.04)}
.site-footer{background:#000814;color:rgba(255,255,255,.85);padding:44px 0}.site-footer a{color:#fff}
.whatsapp-float{position:fixed;bottom:18px;right:18px;z-index:80;background:#25D366;color:#fff;padding:14px 16px;border-radius:999px;text-decoration:none;font-weight:900;box-shadow:0 12px 30px rgba(0,0,0,.18)}
@media (max-width:900px){.grid-3{grid-template-columns:1fr}.grid-2{grid-template-columns:1fr}.hero{min-height:72vh}.hero h1{font-size:38px}.nav{display:none;position:absolute;top:62px;right:4%;left:4%;background:rgba(0,31,63,.98);border:1px solid rgba(255,255,255,.10);border-radius:18px;padding:12px;flex-direction:column;gap:12px}.nav.is-open{display:flex}.nav-toggle{display:inline-flex}}


/* v4.7 Premium booking UI */
.tib-booking-form{
  margin-top: 12px;
}
.tib-booking-form .field label{
  font-size:12px;
  letter-spacing:.2px;
  text-transform:uppercase;
  color: rgba(11,18,32,.78);
}
.tib-booking-form .field small{
  display:none; /* keep form clean */
}
.tib-booking-form input, .tib-booking-form select, .tib-booking-form textarea{
  border-radius: 14px;
  padding: 12px 12px;
}
.tib-booking-form textarea{resize:vertical; min-height: 54px;}
.tib-booking-actions{
  display:flex; gap:10px; flex-wrap:wrap; align-items:center;
  margin-top: 6px;
}
.tib-booking-actions .btn{
  padding:12px 16px;
}
.tib-booking-summary{
  display:flex; align-items:center; justify-content:space-between;
  gap:10px; flex-wrap:wrap;
  padding: 10px 12px;
  border:1px dashed rgba(11,18,32,.18);
  border-radius: 14px;
  background: rgba(0,31,63,.03);
  margin: 10px 0 12px;
}
.tib-booking-summary b{font-size:16px;}
.tib-booking-pill{
  display:inline-flex; align-items:center; gap:8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(11,18,32,.10);
  background: #fff;
  font-size: 13px;
  color: rgba(11,18,32,.80);
}
@media (min-width: 901px){
  .tib-booking-card{
    position: sticky;
    top: 86px;
  }
}
@media (max-width: 900px){
  .tib-booking-actions .btn{flex:1; min-width: 160px;}
  .tib-booking-summary{position:sticky; bottom:10px; z-index: 30;}
}


/* v4.7.4 Site Icon Logo */
.brand__logo img{
    height:40px;
    width:auto;
    display:block;
}


/* v4.7.5 Mobile alignment fixes */
@media (max-width: 900px){
  .header-inner{padding:10px 0}
  .brand{gap:10px}
  .brand__logo{width:40px;height:40px;border-radius:12px}
  .brand__name{font-size:14px;line-height:1.1}
  .brand__tagline{font-size:11px;line-height:1.1}

  .hero__content{padding:34px 0}
  .hero h1{font-size:32px;line-height:1.08}
  .hero p{font-size:15px}

  .pill{font-size:12px;gap:8px;padding:7px 10px}
  .btn{width:100%;justify-content:center}
  .btn--ghost,.btn--outline{background:rgba(255,255,255,.14)}
  
  .grid{gap:14px}
  .card__body{padding:16px}
  .card__title{font-size:18px}
  .badge{font-size:12px;padding:6px 10px}

  /* Booking form */
  .tib-booking-form .grid.grid-2{grid-template-columns:1fr}
  .tib-booking-summary{
    gap:8px;
    align-items:flex-start;
  }
  .tib-booking-summary .tib-booking-pill{flex:1 1 auto; justify-content:flex-start}
  .tib-booking-summary b{font-size:15px}
  .tib-booking-actions{gap:10px}
  .tib-booking-actions .btn{min-width:0}
  
  /* Footer spacing */
  .site-footer{padding:34px 0}
  .whatsapp-float{right:14px;bottom:14px}
}

/* Prevent horizontal scroll on mobile */
body{overflow-x:hidden}
.container{overflow-x:clip}

/* Fix images inside logo container */
.brand__logo img{max-height:40px;max-width:100%}

/* Ensure nav dropdown full width on mobile */
@media (max-width:900px){
  .nav{left:4%; right:4%}
  .nav a{width:100%; padding:10px 12px; border-radius:12px; text-align:left}
}


/* v4.7.6 Targeted mobile fixes based on screenshots */
@media (max-width: 900px){
  /* Prevent floating WhatsApp from covering content */
  body{padding-bottom:96px;} /* space for floating button */
  .whatsapp-float{
    right:12px;
    bottom:12px;
    padding:12px 14px;
    font-size:16px;
    border-radius:999px;
  }

  /* Booking summary: make pills full width and aligned */
  .tib-booking-summary{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:10px;
    align-items:stretch;
  }
  .tib-booking-summary .tib-booking-pill{
    width:100%;
    justify-content:flex-start;
  }
  .tib-booking-summary > span:last-child{
    grid-column:1 / -1;
    text-align:right;
  }

  /* Booking action buttons: stack neatly, same height */
  .tib-booking-actions{
    display:grid;
    grid-template-columns:1fr;
    gap:12px;
  }
  .tib-booking-actions .btn{
    width:100%;
    min-width:0;
    border-radius:18px;
    padding:14px 16px;
    font-size:16px;
  }
  /* Keep primary standout */
  .tib-booking-actions .btn--primary{
    box-shadow:0 10px 26px rgba(0,0,0,.12);
  }
}

/* Make hero pills wrap better and avoid overlaying with float */
@media (max-width: 900px){
  .hero .pill{flex-wrap:wrap}
  .hero__content > div{gap:10px}
}


/* v4.7.7 Hero pill alignment (mobile) */
.hero__content{display:flex;flex-direction:column;align-items:flex-start}
.hero__content .pill{
  align-self:flex-start;
  margin: 0 0 14px 0;
}
@media (max-width: 900px){
  .hero__content .pill{
    margin: -6px 0 14px 0; /* lift up a bit */
  }
}


/* v4.7.8 Center hero main buttons only */
.hero__content > div:first-of-type{
  display:flex;
  justify-content:center;
  width:100%;
  margin-top:18px;
}
@media (max-width:900px){
  .hero__content > div:first-of-type{
    flex-direction:column;
    align-items:center;
    gap:14px;
  }
  .hero__content > div:first-of-type .btn{
    width:90%;
    max-width:420px;
  }
}
