/* ============================================================
   GASTRONOMY DETAIL MODAL + "Detalii" button
   Chantilly card, taupe borders · mini gallery + review text.
   ============================================================ */

.pensiune-details-btn {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;   /* don't stretch full-width */
  width: auto;
  gap: 8px;
  margin-top: 6px;
  padding: 8px 17px;
  background: transparent;
  color: var(--essex);
  border: 1px solid var(--rustic-taupe);
  font-family: "Helvetica Neue", "HelveticaNeue", Helvetica, Arial, sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, gap 0.25s ease;
}
.pensiune-details-btn:hover,
.pensiune-details-btn:focus-visible {
  background: var(--essex);
  color: var(--chantilly-pure);
  border-color: var(--essex);
  gap: 11px;
}
.pensiune-details-btn span { transition: transform 0.25s ease; }
.pensiune-details-btn:hover span { transform: translateX(3px); }

/* Modal shell */
.gastro-modal[hidden] { display: none; }
.gastro-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.gastro-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 18, 0.62);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}
.gastro-modal-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 720px;
  max-height: 88vh;
  overflow-y: auto;
  background: var(--chantilly-pure);
  border: 1px solid var(--rustic-taupe);
  border-top: 4px solid var(--rustic-taupe);
  padding: 34px clamp(20px, 4vw, 42px) 38px;
  box-shadow: 0 24px 60px rgba(15, 23, 18, 0.40);
  /* thin, site-style scrollbar */
  scrollbar-width: thin;
  scrollbar-color: var(--rustic-taupe-light) transparent;
}
.gastro-modal-card::-webkit-scrollbar { width: 7px; }
.gastro-modal-card::-webkit-scrollbar-track { background: transparent; }
.gastro-modal-card::-webkit-scrollbar-thumb {
  background: var(--rustic-taupe-light);
  border-radius: 999px;
}
.gastro-modal-card::-webkit-scrollbar-thumb:hover { background: var(--rustic-taupe); }

/* close · plain × by default, thin taupe square frame on hover */
.gastro-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  line-height: 1;
  color: var(--essex);
  background: none;
  border: 1px solid transparent;
  border-radius: 0;
  cursor: pointer;
  transition: border-color 0.22s ease, background 0.22s ease;
}
.gastro-modal-close:hover,
.gastro-modal-close:focus-visible {
  border-color: var(--rustic-taupe);
  background: rgba(122, 105, 87, 0.05);
}
.gastro-modal-tag {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rustic-taupe);
  font-weight: 600;
  margin-bottom: 6px;
}
.gastro-modal-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 400;
  color: var(--essex);
  margin: 0 0 20px;
  line-height: 1.15;
}
.gastro-modal-main {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border: 1px solid var(--stone-hearth-hair);
  background: var(--edgecomb-light);
  display: block;
}
.gastro-modal-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.gastro-modal-thumb {
  flex: 0 0 auto;
  width: 74px;
  height: 56px;
  padding: 0;
  border: 1px solid var(--stone-hearth-hair);
  background: none;
  cursor: pointer;
  overflow: hidden;
  opacity: 0.68;
  transition: opacity 0.2s ease, border-color 0.2s ease;
}
.gastro-modal-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gastro-modal-thumb:hover { opacity: 1; }
.gastro-modal-thumb.is-active { opacity: 1; border-color: var(--rustic-taupe); border-width: 2px; }
.gastro-modal-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 18px 0 20px;
  padding: 0;
}
.gastro-modal-facts li {
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  color: var(--essex);
  background: rgba(122, 105, 87, 0.10);
  border: 1px solid var(--stone-hearth-hair);
  padding: 5px 13px;
  border-radius: 0; /* straight corners · site style */
}
.gastro-modal-text p {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--charcoal);
  margin: 0 0 14px;
}
.gastro-modal-text p:last-child { margin-bottom: 0; }
.gastro-modal-subhead {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rustic-taupe);
  font-weight: 600;
  margin: 20px 0 9px;
}
.gastro-modal-text > .gastro-modal-subhead:first-child { margin-top: 0; }
.gastro-modal-list {
  margin: 0 0 14px;
  padding-left: 20px;
}
.gastro-modal-list li {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--charcoal);
  margin-bottom: 4px;
}

/* Read-more toggle for long modal copy (esp. on phones) */
.gastro-modal-text.is-clamped {
  max-height: 300px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, #000 74%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 74%, transparent 100%);
}
.gastro-modal-more {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 14px;
  padding: 8px 16px;
  background: transparent;
  color: var(--essex);
  border: 1px solid var(--rustic-taupe);
  font-family: "Helvetica Neue", "HelveticaNeue", Helvetica, Arial, sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.gastro-modal-more[hidden] { display: none; }
.gastro-modal-more:hover,
.gastro-modal-more:focus-visible {
  background: var(--essex);
  color: var(--chantilly-pure);
  border-color: var(--essex);
}

@media (max-width: 560px) {
  .gastro-modal { padding: 0; }
  .gastro-modal-card { max-height: 100vh; height: 100%; border: none; padding: 30px 20px 34px; }
}
