/* Iguana Bay Booking — carte de réservation façon Airbnb */
.ibb-card {
  --ibb-ink: #1c2b28;
  --ibb-muted: #6b7d79;
  --ibb-line: #d5e3df;
  --ibb-accent: #2a7c6f;
  --ibb-accent-d: #1c534a;
  --ibb-soft: #e7f4f1;
  --ibb-busy: #b9c6c3;
  position: relative;
  background: #fff;
  border: 1px solid var(--ibb-line);
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: 0 18px 44px -24px rgba(14, 41, 37, .35);
  color: var(--ibb-ink);
  font-family: inherit;
  font-size: 15px;
  line-height: 1.45;
}
.ibb-card *, .ibb-inline * { box-sizing: border-box; }
.ibb-card [hidden], .ibb-inline [hidden] { display: none !important; }
.ibb-card button { font: inherit; letter-spacing: 0; text-transform: none; }
.ibb-card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.1rem; }
.ibb-price { margin: 0; }
.ibb-price strong { font-size: 1.45rem; font-weight: 700; }
.ibb-price span { color: var(--ibb-muted); }
.ibb-min { margin: 0; font-size: .82rem; color: var(--ibb-muted); }

.ibb-box { border: 1px solid #b7c9c4; border-radius: 12px; }
.ibb-dates { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid #b7c9c4; }
.ibb-field {
  display: flex; flex-direction: column; align-items: flex-start; gap: .1rem;
  width: 100%; padding: .7rem .9rem; background: none; border: 0; text-align: left;
  cursor: pointer; border-radius: 11px; color: var(--ibb-ink); position: relative;
}
.ibb-dates .ibb-field:first-child { border-right: 1px solid #b7c9c4; border-radius: 11px 0 0 0; }
.ibb-dates .ibb-field:last-child { border-radius: 0 11px 0 0; }
.ibb-field.is-active { box-shadow: inset 0 0 0 2px var(--ibb-ink); }
.ibb-label { font-size: .64rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.ibb-val { font-size: .92rem; color: var(--ibb-ink); }
.ibb-guests { position: relative; }
.ibb-guests-toggle { flex-direction: row; flex-wrap: wrap; align-items: center; }
.ibb-guests-toggle .ibb-label { width: 100%; }
.ibb-guests-toggle svg { position: absolute; right: .9rem; top: 50%; transform: translateY(-50%); }
.ibb-guests-toggle[aria-expanded="true"] svg { transform: translateY(-50%) rotate(180deg); }

.ibb-guests-pop, .ibb-pop {
  position: absolute; z-index: 30; background: #fff; border-radius: 18px;
  box-shadow: 0 10px 40px rgba(14, 41, 37, .22), 0 0 0 1px rgba(14,41,37,.06);
}
.ibb-guests-pop { left: 0; right: 0; top: calc(100% + 8px); padding: 1rem 1.2rem; }
.ibb-grow { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .85rem 0; border-bottom: 1px solid #eef3f2; }
.ibb-grow strong { display: block; font-size: .95rem; }
.ibb-grow small { display: block; color: var(--ibb-muted); font-size: .8rem; }
.ibb-step { display: flex; align-items: center; gap: .7rem; }
.ibb-step button {
  width: 32px; height: 32px; border-radius: 50%; border: 1px solid #b7c9c4; background: #fff;
  color: var(--ibb-ink); cursor: pointer; font-size: 1.1rem; line-height: 1; display: grid; place-items: center;
}
.ibb-step button:hover:not(:disabled) { border-color: var(--ibb-ink); }
.ibb-step button:disabled { opacity: .3; cursor: not-allowed; }
.ibb-step output { min-width: 1.2rem; text-align: center; }
.ibb-note { font-size: .78rem; color: var(--ibb-muted); margin: .8rem 0 .2rem; }
.ibb-link { background: none; border: 0; padding: 0; text-decoration: underline; font-weight: 600; cursor: pointer; color: var(--ibb-ink); }
.ibb-guests-close { float: right; margin-top: .3rem; }

.ibb-pop { right: -1px; top: 5.6rem; width: min(680px, calc(100vw - 2rem)); padding: 1.4rem 1.5rem 1.1rem; }
.ibb-pop-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: .6rem; }
.ibb-pop-head strong { display: block; font-size: 1.15rem; }
.ibb-pop-head small { color: var(--ibb-muted); font-size: .84rem; }
.ibb-pop-foot { display: flex; justify-content: flex-end; margin-top: .6rem; }
.ibb-btn-dark { background: var(--ibb-ink); color: #fff; border: 0; border-radius: 10px; padding: .6rem 1.1rem; cursor: pointer; font-weight: 600; }

/* Calendrier */
.ibb-cal { position: relative; }
.ibb-cal-nav { position: absolute; left: 0; right: 0; top: .2rem; display: flex; justify-content: space-between; pointer-events: none; }
.ibb-nav {
  pointer-events: auto; width: 34px; height: 34px; border-radius: 50%; border: 0; background: none;
  display: grid; place-items: center; cursor: pointer; color: var(--ibb-ink);
}
.ibb-nav:hover:not(:disabled) { background: #f1f5f4; }
.ibb-nav:disabled { opacity: .25; cursor: default; }
.ibb-months { display: grid; gap: 2rem; }
.ibb-months-2 { grid-template-columns: 1fr 1fr; }
.ibb-month-title { text-align: center; font-weight: 700; margin: .45rem 0 .9rem; text-transform: capitalize; }
.ibb-grid { display: grid; grid-template-columns: repeat(7, 1fr); row-gap: 2px; }
.ibb-dow { text-align: center; font-size: .72rem; color: var(--ibb-muted); padding-bottom: .4rem; }
.ibb-day {
  aspect-ratio: 1; border: 0; background: none; padding: 0; cursor: pointer; position: relative;
  display: grid; place-items: center; color: var(--ibb-ink); font-size: .88rem; font-weight: 600;
}
.ibb-day span { width: 100%; height: 100%; max-width: 44px; max-height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid transparent; }
.ibb-day:not([aria-disabled]):hover span { border-color: var(--ibb-ink); }
.ibb-day[aria-disabled] { cursor: default; }
.ibb-day.is-off span, .ibb-day.is-past span { color: #b5c1be; font-weight: 400; }
.ibb-day.is-booked span { color: #b5c1be; text-decoration: line-through; font-weight: 400; }
.ibb-day.is-min span { color: #9aa8a5; }
.ibb-day.is-range { background: var(--ibb-soft); }
.ibb-day.is-start, .ibb-day.is-end { background: linear-gradient(90deg, transparent 50%, var(--ibb-soft) 50%); }
.ibb-day.is-end { background: linear-gradient(90deg, var(--ibb-soft) 50%, transparent 50%); }
.ibb-day.is-start.is-end { background: none; }
.ibb-day.is-start span, .ibb-day.is-end span { background: var(--ibb-ink); color: #fff; text-decoration: none; }
.ibb-day.is-preview span { background: #fff; color: var(--ibb-ink); border-color: var(--ibb-ink); }
.ibb-day.is-today span::after { content: ""; position: absolute; bottom: 6px; width: 4px; height: 4px; border-radius: 50%; background: var(--ibb-accent); }

.ibb-submit {
  width: 100%; margin-top: 1rem; padding: .95rem 1rem; border: 0; border-radius: 12px; cursor: pointer;
  background: linear-gradient(90deg, #2a7c6f, #1c534a); color: #fff; font-size: 1rem; font-weight: 700;
  transition: filter .2s, transform .2s;
}
.ibb-submit:hover:not(:disabled) { filter: brightness(1.08); }
.ibb-submit:disabled { opacity: .6; cursor: progress; }
.ibb-msg { text-align: center; color: var(--ibb-muted); font-size: .84rem; margin: .7rem 0 0; }
.ibb-breakdown { margin-top: 1.1rem; }
.ibb-breakdown p { display: flex; justify-content: space-between; gap: 1rem; margin: 0 0 .6rem; font-size: .95rem; }
.ibb-breakdown p span:first-child { text-decoration: underline; text-decoration-color: #c9d6d3; text-underline-offset: 3px; }
.ibb-total { border-top: 1px solid var(--ibb-line); padding-top: .9rem; margin-top: .9rem !important; font-weight: 800; font-size: 1.02rem !important; }
.ibb-total span:first-child { text-decoration: none !important; }
.ibb-deposit { display: block !important; font-size: .8rem !important; color: var(--ibb-muted); }
.ibb-secure { display: flex; align-items: center; justify-content: center; gap: .4rem; margin: 1rem 0 0; font-size: .78rem; color: var(--ibb-muted); }
.ibb-card .woocommerce-error, .ibb-card .woocommerce-message, .ibb-card .woocommerce-info {
  list-style: none; margin: 0 0 1rem; padding: .75rem .9rem; border-radius: 10px; background: #fdecea; color: #8a2c22; font-size: .88rem;
}

/* Calendrier en ligne sur la fiche villa */
.ibb-inline { max-width: 760px; }
.ibb-inline-title { font-size: 1.4rem; font-weight: 600; margin: 0 0 .2rem; color: #1c2b28; }
.ibb-inline-sub { color: #6b7d79; margin: 0 0 1.4rem; font-size: .92rem; }
.ibb-inline .ibb-day span { max-width: 48px; max-height: 48px; }
.ibb-legend { display: flex; flex-wrap: wrap; gap: 1.2rem; margin-top: 1rem; font-size: .8rem; color: #6b7d79; }
.ibb-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: .4rem; vertical-align: -1px; }
.lg-free { border: 1.5px solid #1c2b28; }
.lg-busy { background: #dfe7e5; }
.lg-sel { background: #1c2b28; }

/* Paiement */
.ibb-checkout-note { background: #eef8f5; border: 1px solid #cfe7e0; border-radius: 12px; padding: .9rem 1.1rem; margin: 1rem 0; font-size: .9rem; }
.ibb-checkout-note p { margin: 0 0 .3rem; }
.ibb-checkout-note p:last-child { margin: 0; }

@media (max-width: 700px) {
  .ibb-pop {
    position: fixed; left: 0; right: 0; bottom: 0; top: auto; width: 100%;
    border-radius: 22px 22px 0 0; max-height: 88vh; overflow: auto; padding: 1.2rem 1rem 1rem;
  }
  .ibb-pop { z-index: 1001; }
  .ibb-card.is-picking::after { content: ""; position: fixed; inset: 0; background: rgba(14,41,37,.35); z-index: 1000; }
  html.ibb-picking .vp-mobilebar { display: none; }
  html.ibb-picking { overflow: hidden; }
  .ibb-months { gap: 1.2rem; }
}

/* ---------- Calendrier des disponibilités (libre / occupé) ---------- */
.ibbo { --free: #d8f1e6; --free-ink: #1b6b4f; --busy: #f6d4d1; --busy-ink: #9b2c22; --closed: #eef1f0; --closed-ink: #9aa7a4; color: #1c2b28; }
.ibbo-tabs { display: flex; justify-content: center; gap: .4rem; margin: 0 auto 1.4rem; padding: .35rem; width: max-content; max-width: 100%; background: #fff; border-radius: 999px; border: 1px solid #dbe8e4; }
.ibbo-tabs button { border: 0; background: none; padding: .6rem 1.3rem; border-radius: 999px; cursor: pointer; font: inherit; font-size: .93rem; color: #3a4d4a; letter-spacing: 0; text-transform: none; }
.ibbo-tabs button.is-on { background: #1c534a; color: #fff; }
.ibbo-legend { display: flex; justify-content: center; flex-wrap: wrap; gap: 1.4rem; margin-bottom: 1.6rem; font-size: .88rem; color: #3a4d4a; }
.ibbo-legend i { display: inline-block; width: 14px; height: 14px; border-radius: 4px; margin-right: .45rem; vertical-align: -2px; }
.ibbo-legend .st-free { background: var(--free); border: 1px solid #9fd8be; }
.ibbo-legend .st-busy { background: var(--busy); border: 1px solid #e6a59f; }
.ibbo-legend .st-closed { background: var(--closed); border: 1px solid #d6dedc; }
.ibbo-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.2rem; }
.ibbo-month { background: #fff; border: 1px solid #e1ece9; border-radius: 16px; padding: 1rem .9rem 1.1rem; }
.ibbo-mtitle { margin: 0 0 .7rem; text-align: center; font-weight: 700; text-transform: capitalize; font-size: .95rem; }
.ibbo-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.ibbo-dow { text-align: center; font-size: .66rem; color: #8a9a97; padding-bottom: .2rem; }
.ibbo-d { display: grid; place-items: center; aspect-ratio: 1; border-radius: 7px; font-size: .78rem; font-weight: 600; text-decoration: none; }
.ibbo-d.st-free { background: var(--free); color: var(--free-ink); }
a.ibbo-d.st-free:hover { background: #1b6b4f; color: #fff; }
.ibbo-d.st-busy { background: var(--busy); color: var(--busy-ink); text-decoration: line-through; }
.ibbo-d.st-closed { background: var(--closed); color: var(--closed-ink); font-weight: 400; }
.ibbo-d.st-past { color: #c3ccca; font-weight: 400; }
.ibbo-foot { text-align: center; margin: 1.4rem 0 0; font-size: .88rem; color: #6b7d79; }
.ibbo-foot a { color: #1c534a; font-weight: 600; }
@media (max-width: 1100px) { .ibbo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 800px) { .ibbo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; } .ibbo-month { padding: .8rem .6rem .9rem; } }
@media (max-width: 480px) { .ibbo-grid { grid-template-columns: 1fr; } .ibbo-d { font-size: .85rem; } }

/* Stripe : séparateur « — OU — » des boutons express, inutile avec notre mise en page */
#wc-stripe-express-checkout-button-separator{display:none!important}
#wc-stripe-express-checkout-element{margin-bottom:1.5rem}

/* Paiement express (Apple Pay / Google Pay) dans l'encart de paiement */
.ibb-express { margin: 1rem 0 .4rem; }
.ibb-express[hidden] { display: none !important; }
.ibb-express-t { margin: 0 0 .5rem; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: #6b7c79; font-weight: 600; }
.ibb-express #wc-stripe-express-checkout-element { margin: 0 !important; }
.ibb-express-or { display: flex; align-items: center; gap: .8rem; margin: .9rem 0 0; color: #6b7c79; font-size: .82rem; }
.ibb-express-or::before, .ibb-express-or::after { content: ""; flex: 1; height: 1px; background: #d9e5e2; }
