/* ==========================================================================
   Nearest Bar Finder – Frontend Styles
   ========================================================================== */

/* --------------------------------------------------------------------------
   Finder widget container
   -------------------------------------------------------------------------- */

.nearest-bar-finder {
    max-width: 500px;
    margin: 0 auto;
    padding: 0;
    border: 0 solid #e0e0e0;
    border-radius: 8px;
}

/* --------------------------------------------------------------------------
   Primary action button
   -------------------------------------------------------------------------- */

.nb-button {
    display: block;
    width: 100%;
    padding: 12px;
    background: #222F52;
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

.nb-button:hover {
    background: #A88757;
}

/* --------------------------------------------------------------------------
   Results area
   -------------------------------------------------------------------------- */

.nb-results {
    margin-top: 20px;
}

.nb-loading {
    text-align: left;
    font-size: 15px !important;
    padding: 10px;
    color: #4a5568;
}

/* --------------------------------------------------------------------------
   Cards grid – shared by search, recent, nearby and finder results
   -------------------------------------------------------------------------- */

.nb-result-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
    margin-top: 15px;
}

/* ==========================================================================
   Result Card  (matches nbf-saved-card design language)
   ========================================================================== */

.nb-place-result {
    position: relative;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
    /* no margin-bottom – gap on the grid handles spacing */
}

.nb-place-result:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

/* Body / content area */
.nb-card-body {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Name / title button */
.nb-place-title {
    margin: 0;
    font-size: 17px !important;
    font-weight: 700;
    color: #1a202c;
    line-height: 1.3;
}

.nb-place-title .nb-title-btn {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    font-size: inherit;
    font-weight: inherit;
    font-family: inherit;
    color: #1a202c;
    cursor: pointer;
    text-align: left;
    line-height: inherit;
    text-decoration: none;
    transition: color 0.15s;
}

.nb-place-title .nb-title-btn:hover {
    color: #A88757;
    text-decoration: none;
    background: none !important;
}

/* Service-type badge */
.nb-type {
    display: inline-block;
    background: #ebf8ff;
    color: #2b6cb0;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px !important;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: capitalize;
    align-self: flex-start;
    margin: 0 !important;
}

/* Location line */
.nb-address {
    margin: 0 !important;
    font-size: 13px;
    color: #718096;
    display: flex;
    align-items: center;
    gap: 4px;
    line-height: 1.4;
}

/* Map pin icon (shared by cards, modal, and saved-listings) */
.nb-icon-pin {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    fill: #A88757;
    vertical-align: middle;
}

/* Distance line */
.nb-distance {
    font-size: 12px;
    font-weight: 600;
    color: #A88757;
    margin: 0 !important;
}

.nb-approximate {
    font-size: 0.85em;
    color: #718096;
    font-style: italic;
    font-weight: 400;
}

/* WhatsApp contact */
.nb-contact {
    margin: 0 !important;
    font-size: 13px;
    color: #4a5568;
}

.nb-contact a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #25D366 !important;
    text-decoration: none;
    font-weight: 600;
}

.nb-contact a:hover {
    text-decoration: none;
}

/* Promotion strip */
.nb-promotion {
    background-color: #f0fdf4;
    border-left: 3px solid #38a169;
    padding: 7px 10px;
    border-radius: 0 6px 6px 0;
    font-size: 12px;
    color: #276749;
    margin: 0 !important;
}

.nb-promotion strong {
    color: #276749;
}

.nb-event-date {
    font-size: 11px;
    color: #4a5568;
    margin: 0 !important;
}

/* Action links row (WhatsApp / Visit Website / Get Directions) */
.nb-map-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
    padding-top: 8px;
}

/* Shared pill link style */
.nb-map-links a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 11px;
    border-radius: 20px;
    text-decoration: none;
    transition: background 0.18s, color 0.18s;
    line-height: 1.3;
    color: #3949ab;
    background: #e8eaf6;
}

.nb-map-links a:hover{
    background: #3949ab;
    color: #fff !important;
    text-decoration: none;
}

/* Directions link – orange variant */
.nb-map-links a[href*="daddr"],
.nb-map-links a[href*="?q="] {
    background: #fff3e0;
    color: #e65100;
}

.nb-map-links a[href*="daddr"]:hover,
.nb-map-links a[href*="?q="]:hover {
    background: #e65100;
    color: #fff !important;
}

/* Named link variants – WhatsApp (green), Website (blue), Directions (orange) */
.nb-link--wa {
    background: #e8f5e9 !important;
    color: #2e7d32 !important;
}

.nb-link--wa:hover {
    background: #25D366 !important;
    color: #fff !important;
}

.nb-link--web {
    background: #e8eaf6 !important;
    color: #3949ab !important;
}

.nb-link--web:hover {
    background: #3949ab !important;
    color: #fff !important;
}

.nb-link--dir {
    background: #fff3e0 !important;
    color: #e65100 !important;
}

.nb-link--dir:hover {
    background: #e65100 !important;
    color: #fff;
}

/* Thumbnail – hidden by default (kept for JS compat; can be shown per-theme) */
.nb-place-thumbnail {
    display: none;
}

/* Error / notice paragraphs */
.nb-error,
.nb-notice {
    padding: 10px;
    border-radius: 4px;
}

.nb-error {
    background: #fff5f5;
    color: #c53030;
}

.nb-notice {
    background: #ebf8ff;
    color: #2b6cb0;
}

/* ==========================================================================
   WhatsApp icon (inline SVG-background sprite)
   ========================================================================== */

.whatsapp-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    vertical-align: middle;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%2325D366' d='M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 00-3.48-8.413z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

/* ==========================================================================
   Heart / Favourite Button
   ========================================================================== */

.nb-heart-btn {
    position: absolute;
    bottom: 55px;
    right: 14px;
    background: none !important;
    border: none;
    padding: 0;
    cursor: pointer;
    line-height: 0;
    z-index: 2;
    transition: transform 0.15s ease;
}

.nb-heart-btn:hover {
    transform: scale(1.18);
}

.nb-heart-icon {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: #cbd5e0;
    stroke-width: 1.5px;
    transition: fill 0.2s ease, stroke 0.2s ease;
}

.nb-heart-btn.nb-heart-active .nb-heart-icon {
    fill: #e53e3e;
    stroke: #e53e3e;
}

@keyframes nbHeartPop {
    0%   { transform: scale(1);    }
    40%  { transform: scale(1.35); }
    70%  { transform: scale(0.9);  }
    100% { transform: scale(1);    }
}

.nb-heart-btn.nb-heart-active {
    animation: nbHeartPop 0.3s ease forwards;
}

/* ==========================================================================
   Detail Modal
   ========================================================================== */

body.nb-modal-open {
    overflow: hidden;
}

.nb-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nb-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(2px);
}

.nb-modal-container {
    position: relative;
    background: #fff;
    border-radius: 12px;
    width: 90%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 1;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    animation: nbModalIn 0.22s ease;
}

@keyframes nbModalIn {
    from { opacity: 0; transform: translateY(24px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0)   scale(1);    }
}

.nb-modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: none !important;
    border: none;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    line-height: 1;
    color: #222f52 !important;
    cursor: pointer;
    padding: 0;
    z-index: 2;
    transition: color 0.15s;
}

.nb-modal-close:hover {
    color: #A88757 !important;
}

/* Modal body – card-style layout */
.nb-modal-body {
    position: relative;
    padding: 0;
}

/* Hero thumbnail */
.nb-modal-thumbnail {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
    border-radius: 12px 12px 0 0;
    display: block;
}

/* ── Modal header block (gray background) ── */
.nb-modal-content {
    padding: 20px 20px 18px;
    background: #f5f5f5;
    display: flex;
    flex-direction: column;
    gap: 6px;
    border-radius: 12px 12px 0 0;
}

/* Row that holds badge + location inline */
.nb-modal-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

/* When a thumbnail is shown, header loses its top-radius (thumbnail already has it) */
.nb-modal-thumbnail + .nb-modal-content {
    border-radius: 0;
}

/* Vendor name */
.nb-modal-name {
    margin: 0 !important;
    font-size: 19px !important;
    font-weight: 700;
    color: #1a202c;
    line-height: 1.25;
    padding-right: 36px; /* clear the × button */
}

/* Service type pill */
.nb-modal-type {
    display: inline-block;
    background: #ebf8ff;
    color: #2b6cb0;
    border-radius: 20px;
    padding: 2px 10px;
    font-size: 11px !important;
    font-weight: 600;
    text-transform: capitalize;
    letter-spacing: 0.02em;
    margin: 0 !important;
    align-self: flex-start;
}

/* Location line inside gray header */
.nb-modal-content .nb-address {
    font-size: 13px;
    color: #555;
    margin: 0 !important;
    display: flex;
    align-items: center;
}

/* ── Modal actions area (white background below header) ── */
.nb-modal-actions {
    background: #fff;
    padding: 14px 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Links: full-width bordered pill rows */
.nb-modal-links {
    display: flex;
    flex-direction: column;
    margin: 0;
    gap: 10px;
}

/* Each link is a bordered rounded row */
.nb-modal-links a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 16px;
    font-size: 14px !important;
    font-weight: 500;
    color: #1a202c !important;
    background: #fff !important;
    text-decoration: none;
    border: 1px solid #e2e2e2 !important;
    border-radius: 10px !important;
    transition: background 0.15s, border-color 0.15s;
}

.nb-modal-links a:hover {
    background: #fafafa !important;
    border-color: #c8c8c8 !important;
    color: #1a202c !important;
    text-decoration: none;
}

/* Icon wrapper inside each link row */
.nb-modal-links a .nb-link-icon {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: none;
    border-radius: 0;
}

.nb-modal-links a .nb-link-icon svg {
    width: 18px;
    height: 18px;
    display: block;
}

/* Icon colours */
.nb-modal-links a.nb-link--wa .nb-link-icon svg  { fill: #1a202c; }
.nb-modal-links a.nb-link--web .nb-link-icon svg { fill: #1a202c; }
.nb-modal-links a.nb-link--dir .nb-link-icon svg { fill: #1a202c; }

/* Suppress old whatsapp-icon background sprite inside modal links */
.nb-modal-links a .whatsapp-icon {
    display: none;
}

/* ==========================================================================
   Bar Submission Form
   ========================================================================== */

.place-submission-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0);
}

.place-submission-form .form-group {
    margin-bottom: 20px;
}

.place-submission-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.place-submission-form input[type="text"],
.place-submission-form input[type="tel"],
.place-submission-form input[type="url"],
.place-submission-form input[type="file"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 50px;
}

.place-submission-form button {
    padding: 10px 20px;
    background: #222F52;
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
}

#submission-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 4px;
}

#submission-message .success {
    color: #2d3748;
    background: #c6f6d5;
    padding: 15px !important;
}

#submission-message .error {
    color: #e53e3e;
    background: #fed7d7;
    padding: 15px !important;
}

.place-submission-form select {
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    border: none;
    border-radius: 8px;
    background-color: #EDF3F8;
    font-size: 14px;
}

.place-submission-form select:disabled {
    background-color: #f5f5f5;
    color: #999;
}

#place-type {
    width: 100%;
    padding: 15px;
    border-radius: 8px;
    background-color: #EDF3F8;
}

.place-submission-form .invalid-feedback {
    color: #dc3545;
    font-size: 0.875em;
}

/* ==========================================================================
   Promotion Form
   ========================================================================== */

.promotion-submission-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 10px;
    background: #f9f9f9;
}

.promotion-submission-form .form-group {
    margin-bottom: 20px;
}

.promotion-submission-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.promotion-submission-form input[type="text"],
.promotion-submission-form input[type="email"],
.promotion-submission-form select,
.promotion-submission-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.promotion-submission-form textarea {
    min-height: 100px;
}

.promotion-submission-form .notice {
    color: #e53e3e;
    font-size: 0.9em;
    margin-top: 5px;
}

.promotion-submission-form input[type="tel"],
.promotion-submission-form input[type="date"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 10px;
}

.promotion-submission-form input[type="date"]:invalid {
    border-color: #e53e3e;
}

.promotion-submission-form button {
    padding: 10px 20px;
    background: #222F52;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

#promotion-message .success {
    padding: 10px;
    background: #e6ffed;
    color: #22863a;
    border-radius: 4px;
    margin-top: 15px;
}

#promotion-message .error {
    padding: 10px;
    background: #ffebee;
    color: #b71c1c;
    border-radius: 4px;
    margin-top: 15px;
}

/* ==========================================================================
   Search Form
   ========================================================================== */

.nearest-bar-search {
    margin: 10px auto;
    padding: 10px;
    border-radius: 8px;
}

.nearest-bar-search form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.nearest-bar-search .form-group {
    flex: 1;
    margin-bottom: 0;
}

.nearest-bar-search label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.nearest-bar-search input[type="text"] {
    width: 100%;
    margin: 0;
}

.nearest-bar-search button {
    flex-shrink: 0;
    margin: 0;
    padding: 10px 20px;
    background: #222F52;
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s;
}

.nearest-bar-search button:hover {
    background: #A88757;
}

/* ==========================================================================
   Type Filter
   ========================================================================== */

.nb-type-filter {
    margin-bottom: 20px;
}

.nb-type-filter select {
    padding: 8px 12px;
    border-radius: 4px;
    border: 1px solid #ddd;
    font-size: 16px;
    max-width: 100%;
    background: #EDF3F8;
}

/* ==========================================================================
   Location Permission Toast
   ========================================================================== */

.location-permission-message {
    position: fixed;
    bottom: 20px;
    right: 20px;
    max-width: 350px;
    padding: 15px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 9999;
    border-left: 4px solid #222F52;
}

.location-permission-message p {
    margin: 0 0 15px 0;
    color: #2d3748;
}

.location-permission-message button {
    padding: 8px 15px;
    margin-right: 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.location-permission-message .enable-location-btn {
    background: #222F52;
    color: white;
}

.location-permission-message .dismiss-location-btn {
    background: #e2e8f0;
    color: #4a5568;
}

/* ==========================================================================
   Promotions List (public page)
   ========================================================================== */

.promotions-list {
    /* Grid layout is handled by the inner .nb-result-container */
}

/* ==========================================================================
   Char counter
   ========================================================================== */

.char-count {
    font-size: 0.8em;
    color: #666;
    text-align: right;
    margin-top: 5px;
}

.char-count .over-limit {
    color: #e53e3e;
}

/* ==========================================================================
   Service Items — Carousel + Repeater styles (merged from service-items.css)
   ========================================================================== */

/* --------------------------------------------------------------------------
   Services section wrapper (inside modal) — sits in white area below gray header
   -------------------------------------------------------------------------- */
.nbf-services-section {
    margin-bottom: 0;
    padding: 16px 20px 12px;
    background: #fff;
}

.nbf-services-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #8a8a8a;
    margin: 0 0 8px;
    padding: 0;
}

/* --------------------------------------------------------------------------
   Carousel outer wrap — relative so the fade overlay can sit inside it
   -------------------------------------------------------------------------- */
.nbf-carousel-wrap {
    position: relative;
    max-height: 108px;
    overflow: hidden;
}

/* --------------------------------------------------------------------------
   Scrollable track
   -------------------------------------------------------------------------- */
.nbf-service-carousel {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 4px;
}

.nbf-service-carousel::-webkit-scrollbar {
    display: none;
}

/* --------------------------------------------------------------------------
   Individual pill card
   -------------------------------------------------------------------------- */
.nbf-service-card {
    position: relative;
    flex: 0 0 120px;
    min-height: 90px;
    max-height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 4px;
    padding: 10px 10px 8px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    scroll-snap-align: start;
    box-sizing: border-box;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.nbf-service-card:hover {
    border-color: #c8c8c8;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
}

/* --------------------------------------------------------------------------
   Card text elements
   -------------------------------------------------------------------------- */
.nbf-service-card__name {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 12px;
    line-height: 1.35;
    color: #222;
    word-break: break-word;
}

.nbf-service-card__price {
    font-size: 14px;
    font-weight: 600;
    color: #111;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nbf-service-card__price--por {
    font-size: 11px;
    font-weight: 400;
    color: #999;
}

/* --------------------------------------------------------------------------
   Heart / save button
   -------------------------------------------------------------------------- */
.nbf-service-card__save {
    position: absolute;
    bottom: 6px;
    right: 6px;
    width: 28px !important;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none !important;
    border: none;
    cursor: pointer;
    padding: 0;
    color: #ccc !important;
    transition: color 0.18s ease, transform 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}

.nbf-service-card__save:hover {
    color: #e05;
    transform: scale(1.15);
}

.nbf-service-card__save svg {
    width: 14px;
    height: 14px;
    display: block;
    pointer-events: none;
}

/* Outline heart visible by default, filled hidden */
.nbf-service-card__save .heart-outline {
    display: block;
}

.nbf-service-card__save .heart-filled {
    display: none;
}

/* Saved state: show filled, hide outline */
.nbf-service-card__save.is-saved {
    color: #e8234a;
}

.nbf-service-card__save.is-saved .heart-outline {
    display: none;
}

.nbf-service-card__save.is-saved .heart-filled {
    display: block;
}

/* --------------------------------------------------------------------------
   Right-edge fade overlay
   -------------------------------------------------------------------------- */
.nbf-carousel-fade {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 40px;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.95) 100%);
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.nbf-carousel-fade.is-hidden {
    opacity: 0;
}

/* --------------------------------------------------------------------------
   Carousel scroll arrows — desktop only (hidden on touch/mobile)
   -------------------------------------------------------------------------- */
.nbf-carousel-arrow {
    display: none !important;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 28px !important;
    height: 28px;
    padding: 0 !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 50% !important;
    background: #fff !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
    cursor: pointer !important;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease !important;
    line-height: 1 !important;
}

.nbf-carousel-arrow svg {
    width: 14px;
    height: 14px;
    display: block;
    color: #444;
}

.nbf-carousel-arrow:hover {
    background: #f5f5f5;
    box-shadow: 0 2px 6px rgba(0,0,0,0.16);
}

.nbf-carousel-arrow--prev {
    left: -14px;
}

.nbf-carousel-arrow--next {
    right: -14px;
}

/* Give the wrap a little horizontal breathing room so arrows don't clip */
@media (min-width: 640px) {
    .nbf-carousel-wrap {
        margin-left: 16px;
        margin-right: 16px;
    }

    .nbf-carousel-arrow {
        display: flex;
    }
}

/* --------------------------------------------------------------------------
   Submission form repeater
   -------------------------------------------------------------------------- */
.nbf-service-items-group {
    margin-bottom: 20px;
}

.nbf-service-items-group .form-group-label {
    display: block;
    font-weight: 600;
    margin-bottom: 2px;
}

.nbf-service-items-group .form-group-subtitle {
    font-size: 13px;
    color: #666;
    margin-bottom: 10px;
    display: block;
}

/* Column header row */
.si-header {
    display: grid;
    grid-template-columns: 1fr 100px 32px;
    gap: 8px;
    padding: 0 4px 4px;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 6px;
}

.si-header span {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #888;
}

/* Item row */
.si-row {
    display: grid;
    grid-template-columns: 1fr 100px 32px;
    gap: 8px;
    align-items: center;
    margin-bottom: 6px;
}

.si-row input[type="text"].si-name,
.si-row input[type="number"].si-price {
    width: 100%;
    box-sizing: border-box;
    padding: 7px 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.4;
    background: #fff;
    transition: border-color 0.15s;
}

.si-row input:focus {
    outline: none;
    border-color: #4f8ef7;
    box-shadow: 0 0 0 2px rgba(79, 142, 247, 0.15);
}

.si-input-error {
    border-color: #e8234a !important;
    box-shadow: 0 0 0 2px rgba(232, 35, 74, 0.15) !important;
}

/* Remove button */
.si-remove {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 32px !important;
    height: 32px;
    background: none !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 6px !important;
    cursor: pointer;
    color: #999 !important;
    padding: 0 !important;
    transition: color 0.15s, border-color 0.15s, background 0.15s !important;
    flex-shrink: 0;
}

.si-remove:hover {
    color: #e8234a;
    border-color: #e8234a;
    background: #fff0f3;
}

.si-remove svg {
    width: 14px;
    height: 14px;
    display: block;
    pointer-events: none;
}

/* Add item button */
#nbf-add-service-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    padding: 7px 14px;
    background: #f5f5f5;
    border: 1px dashed #ccc;
    border-radius: 6px;
    font-size: 13px;
    color: #444;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}

#nbf-add-service-item:hover {
    background: #eef3ff;
    border-color: #4f8ef7;
    color: #2563eb;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 480px) {
    .nearest-bar-search form {
        flex-direction: column;
        align-items: stretch;
    }

    .nearest-bar-search .form-group {
        width: 100%;
    }

    .location-permission-message {
        left: 20px;
        right: 20px;
        max-width: none;
    }

    .nb-modal-container {
        width: 95%;
        max-height: 95vh;
        border-radius: 10px;
    }

    .nb-modal-content {
        padding: 16px 16px 14px;
    }

    .nb-modal-name {
        font-size: 17px !important;
    }

    .nb-modal-links a {
        padding: 13px 16px;
    }

    .nbf-services-section {
        padding: 14px 16px 10px;
    }
}

/* ── Autofill hint below the referral code field ───────────────────────── */

.nbf-ref-autofill-hint {
    margin: 6px 0 0;
    font-size: 12px;
    color: #2b6cb0;
    line-height: 1.45;
    display: flex;
    align-items: center;
    gap: 5px;
}

.nbf-ref-autofill-hint::before {
    content: "✦";
    font-size: 10px;
    opacity: 0.7;
    flex-shrink: 0;
}

/* ── Referral code input — highlight when pre-filled from cookie ──────── */

.place-submission-form input#nbf-referral-code[value]:not([value=""]) {
    border-color: #bee3f8;
    background: #ebf8ff;
}

.place-submission-form input#nbf-referral-code:focus {
    border-color: #3182ce;
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.12);
    background: #fff;
}