/* The single page's "Food and Drink" section and its "View all" popup
   (food-drink.js) - data from Support/FoodDrink.js. */

.bh-fd-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.bh-fd-card{display:flex;flex-direction:column;align-items:flex-start;gap:10px;min-width:0;padding:16px;border:1px solid #e7e7e7;border-radius:8px;background:#fff}
.bh-fd-badge{display:inline-block;padding:3px 6px;border-radius:4px;background:#f2f2f2;color:#1a1a1a;font-size:12px;line-height:1.4}
.bh-fd-badge.is-green{background:#e7fde9;color:#008234}

.bh-fd-photos{display:grid;gap:4px;width:100%;height:100px;padding:0;border:0;background:none;cursor:pointer}
.bh-fd-photos img{width:100%;height:100px;object-fit:cover;border-radius:8px;display:block}
.bh-fd-photos--1{grid-template-columns:1fr}
.bh-fd-photos--2{grid-template-columns:1fr 1fr}
.bh-fd-photos--3{grid-template-columns:1fr 1fr 1fr}
.bh-fd-photos:focus-visible{outline:2px solid #0071c2;outline-offset:2px;border-radius:8px}

.bh-fd-card__title{margin:4px 0 0;font-size:20px;font-weight:700;line-height:1.3;color:#1a1a1a}
.bh-fd-card__lead{margin:0;font-size:14px;color:#008234}
.bh-fd-card__lead strong{font-weight:700}
.bh-fd-row{font-size:14px;line-height:1.45}
.bh-fd-row__label{font-weight:600;color:#1a1a1a}
.bh-fd-row__text{color:#595959}
.bh-fd-card .bh-fd-row__text{display:-webkit-box;-webkit-line-clamp:5;-webkit-box-orient:vertical;overflow:hidden}
.bh-fd-link{margin-top:auto;padding:12px 0 0;border:0;background:none;color:#0071c2;font-size:14px;cursor:pointer}
.bh-fd-link:hover{text-decoration:underline}

.bh-fd-card--more{align-items:center;justify-content:center;text-align:center;gap:6px;min-height:260px}
.bh-fd-more__art{position:relative;display:inline-flex;align-items:flex-end;justify-content:center;width:84px;height:72px;margin-bottom:14px}
.bh-fd-more__art .bi-cup-straw{font-size:46px;color:#0071c2}
.bh-fd-more__art .bi-egg-fried{position:absolute;left:0;bottom:-4px;font-size:34px;color:#febb02;background:#fff;border-radius:50%;line-height:1}
.bh-fd-more__title{font-size:14px;font-weight:700;color:#1a1a1a}
.bh-fd-more__topics{font-size:14px;color:#595959}
.bh-fd-more__btn{margin-top:8px;padding:8px 12px;border:1px solid #0071c2;border-radius:4px;background:#fff;color:#0071c2;font-size:14px;font-weight:500;cursor:pointer}
.bh-fd-more__btn:hover{background:#f0f6fd}

@media (max-width:991px){
  .bh-fd-cards{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:767px){
  /* Swipe through the cards on phones, as on Booking.com. */
  .bh-fd-cards{display:flex;gap:12px;overflow-x:auto;scroll-snap-type:x mandatory;padding-bottom:6px;scrollbar-width:thin}
  .bh-fd-card{flex:0 0 82%;scroll-snap-align:start}
}

/* ---------- Popup ---------- */
.bh-fd-modal{position:fixed;inset:0;z-index:2000;display:flex;align-items:center;justify-content:center;padding:24px}
.bh-fd-modal[hidden]{display:none}
.bh-fd-modal__backdrop{position:absolute;inset:0;background:rgba(0,0,0,.55)}
.bh-fd-modal__panel{position:relative;display:flex;flex-direction:column;width:min(760px,100%);max-height:calc(100vh - 48px);border-radius:8px;background:#fff;box-shadow:0 10px 40px rgba(0,0,0,.3);overflow:hidden}
.bh-fd-modal__head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 20px;border-bottom:1px solid #e7e7e7}
.bh-fd-modal__head h3{margin:0;font-size:20px;font-weight:700;color:#1a1a1a}
.bh-fd-modal__close{flex:none;display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border:0;border-radius:50%;background:#f2f2f2;color:#1a1a1a;font-size:15px;cursor:pointer}
.bh-fd-modal__close:hover{background:#e4e4e4}
.bh-fd-modal__body{padding:4px 20px 20px;overflow-y:auto;overscroll-behavior:contain}
.bh-fd-detail{display:flex;flex-direction:column;gap:12px;padding:20px 0;border-bottom:1px solid #e7e7e7;scroll-margin-top:8px}
.bh-fd-detail:last-child{border-bottom:0}
.bh-fd-detail.is-focus{animation:bh-fd-focus 1.6s ease}
@keyframes bh-fd-focus{0%,40%{background:#f0f6fd}100%{background:transparent}}
.bh-fd-detail__head{display:flex;align-items:center;gap:12px}
.bh-fd-detail__icon{display:inline-flex;align-items:center;justify-content:center;flex:none;width:40px;height:40px;border-radius:50%;background:#f0f6fd;color:#0071c2;font-size:18px}
.bh-fd-detail__title{margin:2px 0 0;font-size:18px;font-weight:700;color:#1a1a1a}
.bh-fd-gallery{display:flex;gap:8px;overflow-x:auto;scroll-snap-type:x mandatory;padding-bottom:4px}
.bh-fd-gallery img{flex:0 0 auto;width:220px;height:150px;object-fit:cover;border-radius:8px;scroll-snap-align:start}
.bh-fd-detail__rows{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 24px}
.bh-fd-detail__notes p{margin:0 0 6px;font-size:14px;color:#1a1a1a}
.bh-fd-checklist{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 24px;margin:0;padding:0;list-style:none}
.bh-fd-checklist li{display:flex;align-items:flex-start;gap:8px;font-size:14px;color:#1a1a1a}
.bh-fd-checklist .bi{color:#008234}
.bh-fd-nearby{margin:0;padding:0;list-style:none}
.bh-fd-nearby li{display:flex;align-items:baseline;justify-content:space-between;gap:16px;padding:8px 0;font-size:14px;border-bottom:1px dashed #eee}
.bh-fd-nearby li:last-child{border-bottom:0}
.bh-fd-nearby__name{display:flex;align-items:baseline;gap:8px;color:#1a1a1a}
.bh-fd-nearby__kind{font-size:12px;color:#595959}
.bh-fd-nearby__distance{flex:none;color:#1a1a1a}
html.bh-fd-locked,html.bh-fd-locked body{overflow:hidden}

@media (max-width:640px){
  .bh-fd-modal{padding:0;align-items:flex-end}
  .bh-fd-modal__panel{width:100%;max-height:92vh;border-radius:12px 12px 0 0}
  .bh-fd-detail__rows,.bh-fd-checklist{grid-template-columns:1fr}
  .bh-fd-gallery img{width:180px;height:124px}
}
