:root{
      --chip-bg:#f5f6f7;
      --chip-text:#445;
      --tag-bg:#f1f7ff;
      --tag-text:#0b5ed7;
      --muted:#6b7280;
      --card-border:#e5e7eb;
      --rating:#f59e0b;
      --danger:#dc3545;
      --success:#198754;
      --yelp-red:#d32323;
    }

    body{ background:#fff; }
  
    .toolbar{ border-bottom:1px solid #eee; }
    .toolbar .chip{ background:var(--chip-bg); color:var(--chip-text); border-radius:999px; padding:.35rem .75rem; font-weight:500; }
    .sidebar{ border-right:1px solid #eee; }
    .sidebar-inner{ position:sticky; top:0; padding-bottom:2rem; }
    .section-title{ font-weight:700; font-size:0.95rem; color:#111827; margin-bottom:.5rem; }

    /* Filter chips */
    .price-chips .chip{ cursor:pointer; }
    .chip.active{ outline:2px solid #111; background:#fff; }

    /* Cards */
    .biz-card{
      border:1px solid var(--card-border);
      border-radius:12px;
      overflow:hidden;
      transition:box-shadow .15s ease;
      background:#fff;
    }
    .biz-card:hover{ box-shadow:0 8px 24px rgba(0,0,0,.06); }
    .biz-img{ width:190px; height:160px; object-fit:cover; border-right:1px solid var(--card-border); }
    .biz-body{ padding:12px 14px; }
    .biz-title{ font-weight:700; font-size:1.05rem; margin:0; }
    .sponsored{ color:var(--yelp-red); font-weight:700; font-size:0.9rem; }
    .rating{
      color:var(--rating);
      letter-spacing:1px;
      font-size:.95rem;
    }
    
    .muted{ color:var(--muted); }
    .open-now{ color:var(--success); font-weight:600; }
    .closed{ color:var(--danger); font-weight:600; }
    .badge-tag{
      background:var(--tag-bg);
      color:var(--tag-text);
      border:1px solid #d7e7ff;
      border-radius:999px;
      padding:.2rem .6rem;
      font-size:.75rem;
      font-weight:600;
      margin-right:.35rem;
      white-space:nowrap;
    }
    .btn-website{
      background:#fff;
      border:1px solid #e5e7eb;
      font-weight:700;
      border-radius:999px;
      padding:.45rem .9rem;
    }
    .btn-website:hover{ border-color:#cbd5e1; }

    /* Map panel */
    .map-panel{
      position:sticky; top:0; height:calc(100vh - 56px); /* subtract toolbar height */
      border-left:1px solid #eee;
      background:#f8fafc;
    }
    #map{
      width:100%; height:100%;
      background:
        radial-gradient( circle at 30% 30%, #d6eaff 0%, #eaf3ff 40%, #f6f9ff 70%, #ffffff 100% );
    }

    /* Responsive tweaks */
    @media (max-width: 1199.98px){
      .biz-img{ width:128px; height:96px; }
    }
    @media (max-width: 991.98px){
      .map-panel{ position:relative; height:320px; top:auto; }
    }



     .profile-card {
        background: #fff;
        border-radius: 1rem;
        box-shadow: 0 4px 20px rgba(0,0,0,0.1);
        overflow: hidden;
    }
    .profile-header {
        background: linear-gradient(135deg, #dc3545, #ff6b6b);
        color: #fff;
        padding: 2rem;
        text-align: center;
        position: relative;
    }
    .profile-header img {
        width: 120px;
        height: 120px;
        border-radius: 50%;
        border: 4px solid #fff;
        object-fit: cover;
        margin-bottom: 1rem;
    }
    .profile-header h5 {
        margin: 0;
        font-weight: 600;
    }
    .profile-header h6 {
        font-weight: 400;
        opacity: 0.9;
    }
    .profile-body {
        padding: 2rem;
    }
    .profile-body .nav-tabs {
        border-bottom: 2px solid #f1f1f1;
    }
    .profile-body .nav-tabs .nav-link {
        border: none;
        font-weight: 600;
        color: #6c757d;
    }
    .profile-body .nav-tabs .nav-link.active {
        color: #dc3545;
        border-bottom: 3px solid #dc3545;
    }
    .profile-info label {
        font-weight: 600;
        color: #495057;
    }
    .profile-info p {
        margin: 0;
        color: #0062cc;
        font-weight: 500;
    }
    .product-card img {
        height: 200px;
        object-fit: cover;
        border-top-left-radius: .5rem;
        border-top-right-radius: .5rem;
    }
    

      .hero-strip img {
      height: 400px;
      object-fit: cover;
      width: 100%;
    }
   .hero-overlay {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: white;
    text-shadow: 0 2px 6px rgba(0,0,0,.6);
    width: 100%;
  }

      .rating { color:#f59e0b; }
      .biz-buttons .btn { border-radius:8px; }
      .dish-card img { border-radius:8px; height:140px; object-fit:cover; }
      .info-card { border:1px solid #e5e7eb; border-radius:8px; }
      .info-card a { text-decoration:none; }
      .section-title { font-weight:700; margin:1.5rem 0 .75rem; }




@media (min-width: 992px) {
  .auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}


.product-image-wrapper {
  width: 100%;
  height: 250px;       /* All product cards have same image height */
  overflow: hidden;
  border-radius: 8px;  /* Smooth rounded corners */
  background: #f8f9fa; /* Light background in case image is missing */
}

.product-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;   /* Fills wrapper without stretching */
  display: block;
  transition: transform 0.3s ease-in-out;
}

.product-image-wrapper img:hover {
  transform: scale(1.05); /* Subtle zoom effect on hover */
}


/* Thumbnail wrapper for review images */
.review-thumb-wrapper {
  width: 80px;
  height: 80px;
  overflow: hidden;
  border-radius: 6px;
  flex-shrink: 0;
  background: #f8f9fa;
}

.review-thumb-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;  /* keeps ratio, crops nicely */
  display: block;
  transition: transform 0.3s ease-in-out;
}

.review-thumb-wrapper img:hover {
  transform: scale(1.08);
}



/* Hover zoom on images */
.img-hover-zoom img {
  transition: transform 0.4s ease;
}
.img-hover-zoom:hover img {
  transform: scale(1.05);
}

/* Card hover effect */
.biz-card {
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.biz-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* Animated button */
.btn-outline-danger {
  transition: all 0.3s ease;
}
.btn-outline-danger:hover {
  background-color: #dc3545;
  color: #fff;
}


.product-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}
.product-card img {
  height: 180px;
  object-fit: cover;
}


.premium-sup {
  position: absolute;
  top: -4px;
  right: -6px;
  font-size: 12px;
  background: #fff;
  border-radius: 50%;
  padding: 1px 2px;
  line-height: 1;
}
/* Crown after username like <sup> */
.premium-inline {
  font-size: 0.65em;
  margin-left: 2px;
  vertical-align: super;
}


 #favorites .card {
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }
    #favorites .card:hover {
        transform: translateY(-3px);
        box-shadow: 0 3px 8px rgba(0,0,0,0.08);
    }
    #favorites h6 {
        font-size: 0.85rem;
    }
    #favorites small {
        font-size: 0.75rem;
    }
   

/* Custom Chat Modal */
.chat-dialog {
    position: fixed;
    bottom: 20px;            /* stick to bottom instead of vertical center */
    right: 20px;
    width: 300px;
    max-width: 90%;
    max-height: 80vh;        /* prevent overflow */
    display: flex;
    flex-direction: column;  /* so header, body, input stack nicely */
    z-index: 1100;
}

.chat-dialog .modal-content {
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Chat messages should scroll */
#chatMessages {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
}

#chatMessages div {
    max-width: 80%;
    word-wrap: break-word;
}

/* Input box pinned at bottom */
.chat-input {
    border-top: 1px solid #ddd;
    padding: 8px;
    background: #fff;
}

/* Responsive adjustments */
@media (max-width: 991px) {   /* tablets */
    .chat-dialog {
        right: 50%;
        transform: translateX(50%);
        width: 90%;
        bottom: 10px;
    }
}

@media (max-width: 575px) {   /* small phones */
    .chat-dialog {
        right: 0;
        left: 0;
        bottom: 0;
        width: 100%;
        max-height: 100vh;   /* full screen if needed */
        border-radius: 0;    /* flush edges */
    }
}


#messageBadge {
  transform: translate(-50%, -40%) !important; /* moves it closer */
  font-size: 0.75rem;
  padding: 4px 6px;
}
