/* Prices modal styles */
/* PRICES MODAL (More info) - Sagres Surf School */
.pm-backdrop{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.55);
  display:none;
  align-items:center;
  justify-content:center;
  z-index:999999; /* above navbar + bootstrap */
  padding:16px;
}

.pm-backdrop.is-open{ display:flex; }

.pm-backdrop,
.pm-backdrop *{
  -webkit-box-sizing:border-box;
  box-sizing:border-box;
}

.pm-card{
  width:100%;
  max-width:760px;
  background:#fff;
  border-radius:14px;
  box-shadow:0 18px 40px rgba(0,0,0,.25);
  overflow:hidden;
  position:relative;
}

/* avoid bootstrap affecting headings inside */
.pm-card h3, .pm-card h4, .pm-card p, .pm-card ul, .pm-card li{ margin:0; }

.pm-header{
  padding:16px 18px 12px;
  border-bottom:1px solid rgba(0,0,0,.08);
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}

.pm-title{
  margin:0;
  font-weight:900;
  font-size:20px;
  line-height:1.2;
  color:#111827;
}

.pm-close{
  background:transparent;
  border:none;
  font-size:28px;
  line-height:1;
  font-weight:900;
  cursor:pointer;
  color:#111;
  padding:0 4px;
}

.pm-body{
  padding:14px 18px 16px;
  max-height:min(74vh,640px);
  overflow:auto;
  color:#111827;
}

.pm-sub{
  margin:0 0 10px;
  color:#556;
  font-weight:800;
}

.pm-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:12px;
  margin: 10px 0 14px;
}

.pm-box{
  background:#f8fafc;
  border:1px solid rgba(0,0,0,.06);
  border-radius:12px;
  padding:12px;
}

.pm-box h4{
  margin:0;
  font-weight:900;
  font-size:16px;
  color:#111827;
}

.pm-box small{
  color:#64748b;
  font-weight:700;
  display:block;
  margin:4px 0 10px;
}

.pm-list{
  list-style:none;
  margin:0;
  padding:0;
}

.pm-list li{
  display:flex;
  justify-content:space-between;
  gap:10px;
  padding:8px 0;
  border-top:1px dashed rgba(0,0,0,.10);
  color:#223;
}

.pm-list li:first-child{ border-top:0; padding-top:0; }

.pm-price{ font-weight:900; }

.pm-included{
  margin-top:10px;
  background:#fff;
  border:1px solid rgba(0,0,0,.08);
  border-radius:12px;
  padding:12px;
}

.pm-included h4{
  margin:0 0 8px;
  font-weight:900;
  font-size:16px;
}

.pm-included ul{ margin:0; padding-left:18px; }
.pm-included li{ margin:6px 0; color:#223; }

.pm-actions{
  margin-top:14px;
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

.pm-actions a{
  text-decoration:none;
  font-weight:900;
  border-radius:10px;
  padding:11px 14px;
  display:inline-block;
}

.pm-book{ background:#ffa533; color:#111827; }
.pm-wa{ background:#32CD32; color:#fff; }

.pm-actions a:hover{
  opacity:.92;
  text-decoration:none;
  color:inherit;
}

@media (max-width: 640px){
  .pm-grid{ grid-template-columns:1fr; }
  .pm-actions{ justify-content:stretch; }
  .pm-actions a{ width:100%; text-align:center; }
}

/* Robustness: ensure modal always stays centered and scrolls nicely */
.pm-backdrop, .pm-backdrop * { box-sizing: border-box; }
.pm-card{ max-height: calc(100vh - 32px); }
