/* // Add this CSS to your stylesheet */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    /* padding: 20px; */
    
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
    border-radius: 20px;
}

.close {
    color: #333;
    float: right;
    text-align: end;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: red;
    text-decoration: none;
    cursor: pointer;
}

.info-btn {
    background-color: #333;
    color: white;
    padding: 5px 20px;
    border-radius: 5px;
    text-decoration: none;
    cursor: pointer;
    font-weight: bold;
}
.read-blogs {
    background-color: #333;
    color: white;
    padding: 10px 20px;margin: 10px;
    border-radius: 5px;
    width: 100%;
    display: flex;
    text-decoration: none;
    /* cursor: pointer; */
    font-weight: bold;
    justify-content: center;
    text-align:center
}

/* Modal content base */
.cart-modal {
  width: 100%;
  /* max-width: 820px; */
  background: #fff;
  color: #111;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,0.18);
  display: flex;
  flex-direction: column;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

/* header */
.cart-modal .modal-header {
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  background: linear-gradient(180deg, rgba(106,74,58,0.06), rgba(255,255,255,0));
}
.cart-modal .modal-header h2,
.cart-modal .modal-header h3 {
  margin:0;
  font-size: 18px;
  font-weight: 700;
}
.cart-modal .close-btn {
  background:transparent;
  border: none;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: #222;
  padding: 8px;
}

/* body */
.cart-body {
  padding: 14px;
  max-height: 60vh;
  overflow: auto;
}

/* empty cart */
.cart-empty {
  padding: 40px;
  text-align: center;
  color: #666;
}

/* list rows */
.cart-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cart-row {
  display:flex;
  gap:12px;
  align-items: center;
  padding: 10px;
  border-radius: 8px;
  background: #fafafa;
}
.cart-row--highlight { animation: cart-flash 1.2s ease; }
@keyframes cart-flash {
  0% { box-shadow: 0 0 0 0 rgba(230,191,148,0.0); transform: translateY(-2px); }
  30% { box-shadow: 0 6px 24px rgba(230,191,148,0.18); transform: translateY(0); }
  100% { box-shadow: none; transform: translateY(0); }
}
.cart-thumb {
  width: 88px;
  height: 68px;
  object-fit: cover;
  border-radius: 8px;
  flex: 0 0 88px;
  background: #eee;
}

/* details */
.cart-details { flex: 1 1 auto; min-width: 0; display:flex; flex-direction:column; gap:6px; }
.cart-name { font-weight:700; font-size:15px; color:#111; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.cart-meta { font-size:13px; color:#666; }

/* controls */
.cart-controls { display:flex; gap:12px; align-items:center; justify-content:flex-end; flex: 0 0 auto; }
.cart-unit-price { min-width:90px; text-align:right; font-weight:600; }
.cart-subtotal { min-width:110px; text-align:right; font-weight:700; color:#111; }

/* qty control */
.cart-qty-wrap { display:flex; align-items:center; gap:6px; background:#fff; border-radius:6px; padding:4px; border:1px solid rgba(0,0,0,0.06); }
.cart-qty-input { width:48px; text-align:center; border:none; font-weight:600; outline:none; -moz-appearance: textfield;appearance: textfield; }
.cart-qty-btn { display:inline-flex; align-items:center; justify-content:center; width:32px; height:32px; border-radius:6px; border:1px solid rgba(0,0,0,0.06); cursor:pointer; background:#fff; }

/* remove */
.cart-remove-btn { font-size:13px; color:#b02a2a; background:transparent; border:none; cursor:pointer; padding:6px; }

/* footer */
.cart-footer { display:flex; align-items:center; justify-content:space-between; padding:12px 16px; border-top: 1px solid rgba(0,0,0,0.06); gap:8px; background:#fff; }
.cart-totals { display:flex; gap:8px; align-items:center; font-weight:700; font-size:16px; }
.cart-subtotal-label { color:#666; font-weight:600; }
.cart-subtotal-value { color:#111; font-size:18px; }

/* buttons */
.cart-modal-actions { display:flex; gap:8px; }
.cart-modal-btn-primary {
  background:#6A4A3A;
  color:#fff;
  border:none;
  padding:10px 14px;
  border-radius:8px;
  cursor:pointer;
  font-weight:700;
}
.cart-modal-btn-secondary {
  background:transparent;
  color:#6A4A3A;
  border:1px solid rgba(106,74,58,0.12);
  padding:9px 12px;
  border-radius:8px;
  cursor:pointer;
  font-weight:700;
}

/* responsive */
@media (max-width: 640px) {
  .cart-modal { width: calc(100% - 28px); margin: 0 14px; max-width: 640px; }
  .cart-thumb { width: 72px; height: 56px; }
  .cart-qty-input { width:42px; }
  .cart-unit-price, .cart-subtotal { min-width:80px; }
}

/* Info modal layout */
.info-modal { max-width: 980px; width: 100%; border-radius: 12px; background: #fff; overflow: hidden; display: flex; flex-direction: column; }
.info-header { display:flex; align-items:center; justify-content:space-between; padding:16px 18px; border-bottom:1px solid rgba(0,0,0,0.06); }
.info-title { margin:0; font-size:20px; font-weight:800; color:#111; }
.info-header-right { display:flex; gap:10px; align-items:center; }
.info-category { font-size:13px; color:#6A4A3A; font-weight:700; text-transform:capitalize; background: rgba(106,74,58,0.06); padding:6px 10px; border-radius:999px; }

.info-close { background:transparent; border:none; font-size:22px; cursor:pointer; color:#222; padding:6px; }

/* Body columns */
.info-body { display:flex; gap:18px; padding:16px; align-items:flex-start; }
.info-gallery { flex: 0 0 48%; display:flex; flex-direction:column; gap:10px; }
.info-banner { width:100%; height:320px; object-fit:cover; border-radius:8px; background:#eee; }
.info-thumbs { display:flex; gap:8px; margin-top:6px; flex-wrap:wrap; }
.info-thumb { border:none; padding:0; background:transparent; cursor:pointer; border-radius:6px; overflow:hidden; width:64px; height:48px; }
.info-thumb img { width:100%; height:100%; object-fit:cover; display:block; }
.info-thumb.active { outline: 2px solid rgba(106,74,58,0.18); transform: translateY(-2px); }

/* Details column */
.info-details { flex: 1 1 52%; display:flex; flex-direction:column; gap:12px; min-width:0; }
.info-desc { color:#333; line-height:1.45; margin:0; }
.info-row { display:flex; gap:12px; align-items:center; flex-wrap:wrap; }
.info-price, .info-duration { font-size:14px; color:#111; font-weight:600; }
.info-tags { display:flex; gap:8px; flex-wrap:wrap; }
.info-tag { background: #f2efe9; color:#6A4A3A; padding:6px 8px; border-radius:8px; font-size:13px; font-weight:700; }

/* reserve area */
.info-reserve-area { display:flex; gap:10px; align-items:center; margin-top:6px; }
.info-qty { width:72px; padding:8px; border-radius:8px; border:1px solid rgba(0,0,0,0.08); text-align:center; font-weight:700; }
.reserve-btn.primary { background:#6A4A3A; color:#fff; border:none; padding:10px 14px; border-radius:10px; cursor:pointer; font-weight:800; }

/* related */
.info-related { margin-top:10px; }
.related-list { display:flex; gap:8px; flex-wrap:wrap; margin-top:8px; }
.related-item { display:flex; flex-direction:column; width:120px; border:none; background:transparent; cursor:pointer; text-align:center; gap:8px; }
.related-item img { width:100%; height:80px; object-fit:cover; border-radius:8px; }

/* footer */
.info-footer { display:flex; justify-content:flex-end; gap:8px; padding:12px 16px; border-top:1px solid rgba(0,0,0,0.06); background:#fff; }
.info-close-secondary { background:transparent; border:1px solid rgba(106,74,58,0.12); color:#6A4A3A; padding:8px 12px; border-radius:8px; cursor:pointer; }

/* responsive */
@media (max-width: 880px) {
  .info-body { flex-direction:column; }
  .info-gallery, .info-details { width:100%; }
  .info-banner { height:240px; }
  .related-item { width:80px; }
}


/* Modal overlay (covers viewport) */
.modal {
  position: fixed;
  inset: 0;                         /* top:0; right:0; bottom:0; left:0; */
  display: none;                    /* opened with JS -> display:flex */
  align-items: center;              /* vertical centering */
  justify-content: center;          /* horizontal centering */
  padding: 20px;                    /* prevents touching edges on small screens */
  background: rgba(0,0,0,0.45);     /* backdrop */
  z-index: 9999;                    /* ensure above everything */
  -webkit-tap-highlight-color: transparent;
  transition: background 240ms ease;
}

/* modal-inner holds the actual modal card/content */
.modal .modal-inner {
  width: 100%;
  max-width: 980px;                 /* desktop width */
  max-height: calc(100vh - 80px);   /* allow room for padding + small top/bottom margins */
  overflow: hidden;                 /* inner scroll managed separately */
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(0,0,0,0.25);
  transform: translateY(8px) scale(0.995);
  opacity: 0;
  transition: transform 220ms cubic-bezier(.2,.9,.3,1), opacity 220ms ease;
  display: flex;
  flex-direction: column;
}

/* when modal is opened (JS will add `modal-open` class to overlay) */
.modal.modal-open {
  display: flex;
}

/* animate modal inner in */
.modal.modal-open .modal-inner {
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* If content is long, allow internal scrolling while keeping modal centered */
.modal .modal-inner > * {
  /* Keep header/footer sticky if present and allow body scroll inside a .modal-body */
  display: block;
}

/* If you follow the structure in the loader, the inner content has .modal-header, .modal-body, .modal-footer */
/* Let modal-body scroll */
.modal .modal-body {
  overflow: auto;
  -webkit-overflow-scrolling: touch; /* smooth scrolling for iOS */
  padding: 16px;
}

/* Make smaller on small screens */
@media (max-width: 640px) {
  .modal {
    padding: 10px;
  }
  .modal .modal-inner {
    max-width: 680px;
    max-height: calc(100vh - 40px);
    border-radius: 10px;
  }
}

/* Optional: center on very tall content: add slight top bias (if you prefer top-aligned on mobile) */
.modal.modal-top { align-items: flex-start; padding-top: 28px; }
