/* Premium Rental Module */
:root {
  --ph-rental-gold: var(--ph-gold, #c9a962);
  --ph-rental-gold-light: #e8d5a3;
  --ph-rental-dark: #1a1a1a;
  --ph-rental-glass: rgba(255,255,255,0.96);
}

.ph-rental-cta { margin-top: 1rem; width: 100%; }
.ph-rental-cta--inline { margin-top: 0; width: auto; flex: 1 1 auto; min-width: 0; }
.ph-rental-cta__btn--inline {
  width: 100%; min-height: 48px; padding: 0 1.25rem; font-size: inherit;
  border-radius: 0; box-sizing: border-box;
}

.ph-rental-cta__btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  width: 100%; padding: 1rem 1.5rem; border: 1px solid var(--ph-rental-gold);
  background: transparent; color: var(--ph-rental-gold); font-size: 0.85rem;
  font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase;
  cursor: pointer; transition: all 0.35s ease; text-decoration: none;
}
.ph-rental-cta__btn:hover { background: var(--ph-rental-gold); color: #fff; }
.ph-rental-cta__hint { margin: 0.5rem 0 0; font-size: 0.75rem; color: #888; text-align: center; }

.ph-rental-plp-badge {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  padding: 0.3rem 0.65rem; font-size: 0.65rem; letter-spacing: 0.12em;
  text-transform: uppercase; background: var(--ph-rental-gold); color: #fff;
}

/* Modal */
.ph-rental-modal {
  position: fixed; inset: 0; z-index: 99999; display: flex; justify-content: flex-end;
  pointer-events: none; opacity: 0; visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s;
}
/* Closed modal children still capture clicks without this (blocks PDP Kirala button). */
.ph-rental-modal:not(.is-open),
.ph-rental-modal:not(.is-open) * {
  pointer-events: none !important;
}
.ph-rental-modal.is-open {
  pointer-events: auto;
  opacity: 1;
  visibility: visible;
}
.ph-rental-modal.is-open * {
  pointer-events: auto;
}
.ph-rental-modal__backdrop {
  position: absolute; inset: 0; background: rgba(0,0,0,0.55); backdrop-filter: blur(6px);
}
.ph-rental-modal__panel {
  position: relative; width: min(920px, 100vw); height: 100%;
  background: var(--ph-rental-glass); box-shadow: -20px 0 60px rgba(0,0,0,0.2);
  overflow: hidden; transform: translateX(100%);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.ph-rental-modal.is-open .ph-rental-modal__panel { transform: translateX(0); }
.ph-rental-modal__close {
  position: absolute; top: 1rem; right: 1rem; z-index: 5;
  border: none; background: rgba(255,255,255,0.9); width: 36px; height: 36px;
  border-radius: 50%; font-size: 1.5rem; line-height: 1; cursor: pointer; color: #666;
}
.ph-rental-modal__split { display: flex; height: 100%; }
.ph-rental-modal__visual {
  width: 38%; min-width: 260px; background: #faf8f4; border-right: 1px solid #eee;
  display: flex; flex-direction: column; overflow-y: auto;
}
.ph-rental-modal__visual-img {
  height: 220px; background-size: cover; background-position: center top;
}
.ph-rental-modal__visual-meta { padding: 1.5rem; flex: 1; }
.ph-rental-modal__visual-meta h2 { font-size: 1.1rem; font-weight: 400; margin: 0.35rem 0 1rem; }
.ph-rental-modal__eyebrow {
  font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ph-rental-gold);
}
.ph-rental-modal__main { flex: 1; padding: 2rem 1.75rem 1.5rem; overflow-y: auto; }

.ph-rental-progress { margin-bottom: 1.5rem; }
.ph-rental-progress__bar { height: 2px; background: #e8e8e8; margin-bottom: 0.75rem; }
.ph-rental-progress__bar span {
  display: block; height: 100%; background: var(--ph-rental-gold);
  transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.ph-rental-steps { display: flex; gap: 0.5rem; }
.ph-rental-step { flex: 1; text-align: center; font-size: 0.75rem; color: #aaa; }
.ph-rental-step__label { display: block; }
.ph-rental-step.is-active .ph-rental-step__label,
.ph-rental-step.is-done .ph-rental-step__label { color: var(--ph-rental-gold); font-weight: 600; }

.ph-rental-panes { position: relative; min-height: 280px; }
.ph-rental-pane {
  display: none; opacity: 0; transform: translateX(12px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.ph-rental-pane.is-active { display: block; opacity: 1; transform: translateX(0); }
.ph-rental-modal.is-open .ph-rental-pane.is-active .ph-rental-tab,
.ph-rental-modal.is-open .ph-rental-pane.is-active .ph-rental-next,
.ph-rental-modal.is-open .ph-rental-pane.is-active .ph-rental-submit {
  animation: phRentalStagger 0.5s ease backwards;
}
.ph-rental-modal.is-open .ph-rental-pane.is-active .ph-rental-next { animation-delay: 0.15s; }

@keyframes phRentalStagger {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.ph-rental-tabs { display: flex; gap: 0.5rem; margin-bottom: 1rem; }
.ph-rental-tab {
  flex: 1; padding: 0.75rem; border: 1px solid #ddd; background: #fff;
  cursor: pointer; font-size: 0.85rem;
}
.ph-rental-tab.is-active {
  border-color: var(--ph-rental-gold); background: rgba(201,169,98,0.08); color: var(--ph-rental-gold);
}
.ph-rental-packages { display: grid; gap: 0.75rem; margin-bottom: 1rem; }
.ph-rental-package {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1rem; border: 1px solid #e8e8e8; cursor: pointer; transition: border-color 0.2s;
}
.ph-rental-package:has(input:checked) { border-color: var(--ph-rental-gold); background: rgba(201,169,98,0.06); }
.ph-rental-package input { margin-right: 0.75rem; }
.ph-rental-monthly-preview {
  padding: 0.75rem 1rem; background: #faf8f4; border-left: 3px solid var(--ph-rental-gold);
  font-size: 0.85rem; margin-bottom: 1rem;
}

.ph-rental-calendar-skeleton { padding: 1rem 0; }
.ph-skeleton {
  background: linear-gradient(90deg, #eee 25%, #f5f5f5 50%, #eee 75%);
  background-size: 200% 100%; animation: phShimmer 1.2s infinite; border-radius: 4px;
}
.ph-skeleton--block { height: 200px; margin-bottom: 0.75rem; }
.ph-skeleton--line { height: 14px; margin-bottom: 0.5rem; }
.ph-skeleton--line.short { width: 60%; }
@keyframes phShimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

.ph-rental-calendar-wrap { margin-bottom: 1rem; }
.ph-rental-input {
  width: 100%; padding: 0.75rem; border: 1px solid #ddd; margin-bottom: 0.75rem; font-size: 0.9rem;
}
.ph-rental-suggestions { margin: 1rem 0; padding: 1rem; background: #fff9f0; border: 1px solid #f0e6d0; }
.ph-rental-suggestions__title { font-size: 0.8rem; margin: 0 0 0.5rem; color: #666; }
.ph-rental-suggest-btn {
  display: block; width: 100%; text-align: left; padding: 0.6rem 0.75rem; margin-bottom: 0.35rem;
  border: 1px solid #e0d5c0; background: #fff; cursor: pointer; font-size: 0.85rem;
}
.ph-rental-suggest-btn:hover { border-color: var(--ph-rental-gold); }

.ph-rental-receipt { margin-top: 1rem; font-size: 0.85rem; }
.ph-rental-receipt__row {
  display: flex; justify-content: space-between; padding: 0.35rem 0; border-bottom: 1px solid #eee;
}
.ph-rental-receipt__total {
  display: flex; justify-content: space-between; padding: 0.75rem 0 0; margin-top: 0.5rem;
  border-top: 2px solid var(--ph-rental-gold); font-size: 1rem; font-weight: 600;
}
.ph-rental-receipt__eta { font-size: 0.75rem; color: #888; margin-top: 0.75rem; }

.ph-rental-error { color: #c0392b; font-size: 0.85rem; }
.ph-rental-next, .ph-rental-submit {
  width: 100%; padding: 1rem; margin-top: 1rem; border: none;
  background: var(--ph-rental-dark); color: #fff; letter-spacing: 0.1em;
  text-transform: uppercase; font-size: 0.8rem; cursor: pointer; transition: background 0.3s;
}
.ph-rental-next:hover, .ph-rental-submit:hover { background: var(--ph-rental-gold); }
.ph-rental-submit.is-success { background: var(--ph-rental-gold); }

.ph-rental-contract { display: flex; gap: 0.5rem; font-size: 0.8rem; margin: 1rem 0; cursor: pointer; }
.ph-rental-contract-text {
  max-height: 100px; overflow-y: auto; font-size: 0.75rem; color: #666;
  padding: 0.75rem; background: #f9f9f9; margin-bottom: 1rem;
}
.ph-rental-link { font-size: 0.8rem; color: var(--ph-rental-gold); }
.ph-rental-variants { margin-bottom: 1rem; }
.ph-rental-variants__title { font-size: 0.8rem; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 0.5rem; }
.ph-rental-variant-group { margin-bottom: 0.75rem; }
.ph-rental-variant-group label { font-size: 0.8rem; display: block; margin-bottom: 0.25rem; }

/* Customer panel */
.ph-rental-list-card {
  border: 1px solid #eee; padding: 1.25rem; margin-bottom: 1rem; transition: box-shadow 0.3s;
}
.ph-rental-list-card:hover { box-shadow: 0 8px 30px rgba(0,0,0,0.06); }
.ph-rental-list-card__thumb { width: 64px; height: 80px; object-fit: cover; border-radius: 2px; }
.ph-rental-filter-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.25rem; }
.ph-rental-filter-chip {
  padding: 0.4rem 1rem; border: 1px solid #ddd; font-size: 0.8rem; text-decoration: none; color: #333;
}
.ph-rental-filter-chip.is-active { background: var(--ph-rental-dark); color: #fff; border-color: var(--ph-rental-dark); }
.ph-rental-empty { text-align: center; padding: 3rem 1rem; }
.ph-rental-empty__cta { margin-top: 1rem; }

.ph-rental-badge {
  display: inline-block; padding: 0.25rem 0.75rem; font-size: 0.7rem;
  letter-spacing: 0.05em; border-radius: 2px; color: #fff;
}

/* Timeline */
.ph-rental-timeline {
  display: flex; flex-direction: column; gap: 0; margin: 2rem 0; position: relative; padding-left: 1.5rem;
}
.ph-rental-timeline::before {
  content: ''; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 2px; background: #e0e0e0;
}
.ph-rental-timeline.is-terminal::before { background: linear-gradient(#e0e0e0, #e57373); }
.ph-rental-timeline__item {
  position: relative; padding: 0.75rem 0 0.75rem 1.5rem; font-size: 0.9rem; color: #999;
}
.ph-rental-timeline__item::before {
  content: ''; position: absolute; left: -1.5rem; top: 1rem; width: 14px; height: 14px;
  border-radius: 50%; background: #e0e0e0; border: 2px solid #fff; box-shadow: 0 0 0 1px #e0e0e0;
}
.ph-rental-timeline__item.is-done { color: #333; }
.ph-rental-timeline__item.is-done::before { background: var(--ph-rental-gold); box-shadow: 0 0 0 1px var(--ph-rental-gold); }
.ph-rental-timeline__item.is-active { color: var(--ph-rental-gold); font-weight: 600; }
.ph-rental-timeline__item.is-active::before {
  background: var(--ph-rental-gold); box-shadow: 0 0 0 4px rgba(201,169,98,0.25);
  animation: phPulse 2s ease infinite;
}
.ph-rental-timeline__item.is-fail { color: #c0392b; }
.ph-rental-timeline__item.is-fail::before { background: #c0392b; box-shadow: 0 0 0 1px #c0392b; }
.ph-rental-timeline__date { display: block; font-size: 0.7rem; color: #aaa; font-weight: 400; margin-top: 0.15rem; }
.ph-rental-timeline__icon { margin-right: 0.35rem; }
@keyframes phPulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(201,169,98,0.25); }
  50% { box-shadow: 0 0 0 8px rgba(201,169,98,0.1); }
}

/* Passport / concierge */
.ph-rental-passport {
  border: 1px solid #e8e0d0; padding: 1.5rem; background: linear-gradient(135deg, #faf8f4, #fff);
  margin-bottom: 2rem; position: relative;
}
.ph-rental-passport::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--ph-rental-gold);
}
.ph-rental-passport__qr { text-align: center; margin: 1rem 0; }
.ph-rental-passport__qr img { max-width: 140px; }
.ph-rental-concierge {
  padding: 1.25rem; background: #1a1a1a; color: #fff; margin-bottom: 1.5rem;
}
.ph-rental-concierge a { color: var(--ph-rental-gold-light); }
.ph-rental-cargo-card {
  display: flex; align-items: center; gap: 1rem; padding: 1rem; border: 1px solid #eee; margin: 1rem 0;
}
.ph-rental-countdown { font-size: 1.25rem; color: var(--ph-rental-gold); font-weight: 600; }
.ph-rental-hero-delivered {
  padding: 1.5rem; background: rgba(201,169,98,0.12); border-left: 4px solid var(--ph-rental-gold);
  margin-bottom: 1.5rem;
}

@media print {
  body * { visibility: hidden; }
  .ph-rental-passport, .ph-rental-passport * { visibility: visible; }
  .ph-rental-passport { position: absolute; left: 0; top: 0; width: 100%; border: none; }
  .no-print { display: none !important; }
}

/* Admin calendar grid */
.ph-admin-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 1px; background: #ddd; }
.ph-admin-cal__head { background: #f5f5f5; padding: 0.5rem; text-align: center; font-size: 0.75rem; font-weight: 600; }
.ph-admin-cal__cell { background: #fff; min-height: 90px; padding: 0.35rem; font-size: 0.7rem; position: relative; }
.ph-admin-cal__day { font-weight: 600; margin-bottom: 0.25rem; }
.ph-admin-cal__event {
  display: block; padding: 2px 4px; margin-bottom: 2px; border-radius: 2px;
  color: #fff; font-size: 0.65rem; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

@media (max-width: 767px) {
  .ph-rental-modal__panel { width: 100vw; }
  .ph-rental-modal__split { flex-direction: column; }
  .ph-rental-modal__visual { width: 100%; min-width: 0; max-height: 200px; flex-direction: row; }
  .ph-rental-modal__visual-img { width: 120px; height: 100%; flex-shrink: 0; }
  .ph-rental-modal__visual-meta { padding: 1rem; }
  .ph-rental-receipt { display: none; }
  .ph-rental-modal__main { padding: 1.25rem 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  .ph-rental-modal, .ph-rental-modal__panel, .ph-rental-pane, .ph-rental-progress__bar span,
  .ph-rental-timeline__item.is-active::before { transition: none; animation: none; }
}

/* Hub & showcase */
.ph-rental-hub-hero { padding: 4rem 0 2rem; background: #1a1a1a; color: #fff; text-align: center; }
.ph-rental-hub-hero__eyebrow { letter-spacing: 0.2em; font-size: 0.7rem; color: var(--ph-rental-gold); text-transform: uppercase; }
.ph-rental-hub-hero__title { font-weight: 400; font-size: clamp(1.75rem, 4vw, 2.5rem); margin: 0.5rem 0; }
.ph-rental-hub-hero__lead { color: #ccc; max-width: 520px; margin: 0 auto; }
.ph-rental-hub { padding: 2rem 0 4rem; }
.ph-rental-hub__filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem; }
.ph-rental-hub__chip {
  padding: 0.4rem 1rem; border: 1px solid #ddd; border-radius: 999px; text-decoration: none; color: #333; font-size: 0.85rem;
}
.ph-rental-hub__chip.is-active { background: #1a1a1a; color: #fff; border-color: #1a1a1a; }
.ph-rental-hub__toolbar { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem; align-items: center; }
.ph-rental-hub__promise { padding: 1rem; background: #faf8f4; border-left: 3px solid var(--ph-rental-gold); margin-bottom: 2rem; font-size: 0.9rem; }
.ph-rental-hub__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.5rem; }
.ph-rental-hub__card { border: 1px solid #eee; }
.ph-rental-hub__card-img { display: block; position: relative; aspect-ratio: 3/4; overflow: hidden; }
.ph-rental-hub__card-img img { width: 100%; height: 100%; object-fit: cover; }
.ph-rental-hub__card-tag { position: absolute; top: 8px; left: 8px; background: rgba(26,26,26,0.85); color: #fff; font-size: 0.65rem; padding: 4px 8px; letter-spacing: 0.05em; }
.ph-rental-hub__card-body { padding: 1rem; }
.ph-rental-hub__card-body h2 { font-size: 1rem; font-weight: 500; margin: 0 0 0.5rem; }
.ph-rental-hub__from { color: var(--ph-rental-gold); font-size: 0.85rem; margin: 0 0 0.75rem; }
.ph-rental-showcase { padding: 4rem 0; background: #faf8f4; }
.ph-rental-showcase__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; }
.ph-rental-showcase__eyebrow { letter-spacing: 0.15em; font-size: 0.7rem; color: var(--ph-rental-gold); text-transform: uppercase; margin: 0; }
.ph-rental-showcase__title { font-weight: 400; font-size: 1.75rem; margin: 0.25rem 0 0; }
.ph-rental-showcase__grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; }
@media (max-width: 991px) { .ph-rental-showcase__grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 575px) { .ph-rental-showcase__grid { grid-template-columns: repeat(2, 1fr); } }
.ph-rental-showcase__item { text-decoration: none; color: inherit; }
.ph-rental-showcase__img { aspect-ratio: 3/4; overflow: hidden; margin-bottom: 0.5rem; }
.ph-rental-showcase__img img { width: 100%; height: 100%; object-fit: cover; }
.ph-rental-showcase__name { display: block; font-size: 0.85rem; }
.ph-rental-showcase__price { display: block; font-size: 0.75rem; color: var(--ph-rental-gold); }
.ph-rental-plp-from { font-size: 0.75rem; color: var(--ph-rental-gold); margin: 0.25rem 0 0; }
.ph-rental-plp-preview {
  position: absolute; bottom: 0; left: 0; right: 0; background: rgba(26,26,26,0.92); color: #fff;
  font-size: 0.65rem; padding: 0.5rem; opacity: 0; pointer-events: none; transition: opacity 0.2s; z-index: 5;
}
.ph-rental-plp-preview.is-visible { opacity: 1; }
.ph-rental-plp-preview ul { margin: 0; padding-left: 1rem; }
.ph-rental-faq { margin: 2rem 0; padding: 1.5rem; border: 1px solid #eee; }
.ph-rental-faq__title { font-size: 1.1rem; font-weight: 500; margin-bottom: 1rem; }
.ph-rental-faq__item { border-top: 1px solid #eee; padding: 0.75rem 0; }
.ph-rental-faq__item summary { cursor: pointer; font-weight: 500; }
.ph-rental-checkout-hero { padding: 3rem 0 1.5rem; text-align: center; background: #faf8f4; }
.ph-rental-checkout-hero__eyebrow { color: var(--ph-rental-gold); letter-spacing: 0.15em; font-size: 0.7rem; text-transform: uppercase; }
.ph-rental-checkout__card { padding: 1.5rem; border: 1px solid #eee; margin-bottom: 1.5rem; }
.ph-rental-checkout__total { text-align: right; color: var(--ph-rental-gold); }
.ph-rental-checkout__preview { margin-bottom: 1.5rem; }
.ph-rental-checkout__preview pre { background: #f5f5f5; padding: 1rem; font-size: 0.8rem; white-space: pre-wrap; }
.ph-rental-checkout__wa {
  display: block; text-align: center; background: #25D366; color: #fff; padding: 1rem; font-size: 1.1rem;
  text-decoration: none; border-radius: 4px;
}
.ph-rental-checkout__back { display: block; text-align: center; margin-top: 1rem; }

/* Return flow */
.ph-rental-return {
  margin: 1.5rem 0; padding: 1.5rem; border: 1px solid #e8e4dc; background: #faf8f4;
}
.ph-rental-return__head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.ph-rental-return__badge--warn { background: #dc3545; color: #fff; font-size: 0.7rem; padding: 0.25rem 0.5rem; border-radius: 3px; }
.ph-rental-return__countdown { font-size: 1.1rem; margin-bottom: 1rem; }
.ph-rental-return__cta { min-width: 180px; }
.ph-rental-return__steps { display: flex; gap: 0.5rem; margin-bottom: 1rem; }
.ph-rental-return__steps span {
  width: 28px; height: 28px; border-radius: 50%; border: 1px solid #ccc; display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; color: #999;
}
.ph-rental-return__steps span.is-active { background: #1a1a1a; color: #fff; border-color: #1a1a1a; }
.ph-rental-return__steps span.is-done { background: var(--ph-rental-gold); color: #fff; border-color: var(--ph-rental-gold); }
.ph-rental-return__pane { display: none; }
.ph-rental-return__pane.is-active { display: block; }
.ph-rental-return__address { background: #fff; padding: 1rem; border: 1px solid #eee; margin-bottom: 1rem; }
.ph-rental-return__instr { font-size: 0.9rem; color: #555; }
.ph-rental-return__thanks { color: var(--ph-rental-gold); font-weight: 500; }
