/* =================================
   GLOBAL UTILITIES & ANIMATIONS
   ================================= */

.loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #0d6efd;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 8px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* =================================
   NAVBAR CITY DROPDOWN
   ================================= */

.city-option.active {
    background-color: #0d6efd;
    color: white;
}

.city-option:hover {
    background-color: #f8f9fa;
}

.city-option.active:hover {
    background-color: #0b5ed7;
}

/* =================================
   PAGE LAYOUTS & HEADERS
   ================================= */

.page-header {
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
    padding: 3rem 0 2rem;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
}

.header-text {
    flex: 1;
}

.main-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.location-text {
    font-size: 1.1rem;
    color: #7f8c8d;
    margin: 0;
    line-height: 1.5;
}

.header-actions {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

/* =================================
   BUTTONS
   ================================= */

.btn-add {
    background: #2c3e50;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-add:hover {
    background: #34495e;
    color: white;
    transform: translateY(-1px);
}

.btn-map {
    background: white;
    color: #2c3e50;
    border: 2px solid #2c3e50;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-map:hover {
    background: #2c3e50;
    color: white;
    transform: translateY(-1px);
}

.btn-view {
    flex: 2;
    background: #2c3e50;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.75rem 1rem;
    text-decoration: none;
    text-align: center;
    transition: all 0.2s ease;
}

.btn-view:hover {
    background: #34495e;
    color: white;
    transform: translateY(-1px);
}

.btn-hours {
    flex: 1;
    background: white;
    color: #2c3e50;
    border: 1px solid #bdc3c7;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.75rem 0.5rem;
    transition: all 0.2s ease;
}

.btn-hours:hover {
    background: #f8f9fa;
    border-color: #95a5a6;
    transform: translateY(-1px);
}

.action-btn {
    background: rgba(255,255,255,0.9);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #495057;
    transition: all 0.2s ease;
    cursor: pointer;
}

.action-btn:hover {
    background: white;
    color: #0d6efd;
    transform: translateY(-1px);
}

/* =================================
   STATS SECTION
   ================================= */

.stats-section {
    background: #f8f9fa;
    padding: 2rem 0;
    border-bottom: 1px solid #e5e5e5;
}

.stats-grid {
    display: flex;
    justify-content: center;
    gap: 4rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1;
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    color: #7f8c8d;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.5rem;
}

/* =================================
   COFFEE SHOPS GRID & CARDS
   ================================= */

.coffee-shops-section {
    background: white;
    padding: 3rem 0;
}

.shops-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.coffee-shop-card {
    background: white;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 4px rgba(0,0,0,0.04);
    position: relative;
}

.coffee-shop-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Card Photo Styles */
.card-photo {
    position: relative;
    aspect-ratio: 16/9;
    background: #f8f9fa;
    overflow: hidden;
}

.photo-link {
    display: block;
    width: 100%;
    height: 100%;
}

.card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.photo-link:hover img {
    transform: scale(1.05);
}

.photo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    color: white;
}

.photo-count {
    font-size: 0.9rem;
    font-weight: 500;
}

.card-photo.no-photo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #adb5bd;
    padding: 2rem;
}

.no-photo i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

/* Card Content */
.card-content {
    padding: 1.25rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.card-body {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.today-program {
    margin-bottom: 0.5rem;
}

.program-text {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #495057;
}

.program-text i {
    font-size: 0.75rem;
}

.program-text.closed {
    color: #dc3545;
}

.shop-title {
    margin: 0;
    font-size: 1rem;
    line-height: 1.1;
    font-weight: 700;
    color: #2c3e50;
}

.shop-title a{
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.shop-description {
    color: #5a6c7d;
    font-size: 0.95rem;
    line-height: 1.6;
    flex-grow: 1;
}

.shop-address {
    display: flex;
    gap: 0.5rem;
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.4;
    font-weight: 500;
    align-items: center;
}

.shop-address i {
    color: #95a5a6;
    margin-top: 0.2rem;
    flex-shrink: 0;
    font-size: 1rem;
}

/* Card Features */
.shop-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.feature-tag {
    background: #f5f6f7;
    color: #495057;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid #e9ecef;
    flex-shrink: 0;
}

.feature-tag.active {
    background: #e8f4fd;
    border-color: #a8d8f0;
    color: #1a5276;
}

.card-features {
    max-height: 1.6rem;
}

.card-features .feature-tag {
    visibility: hidden;
}

.card-features .feature-tag.visible {
    visibility: visible;
}

.more-tag {
    background: #2c3e50;
    color: white;
    border-color: #2c3e50;
}

/* Card Actions */
.card-actions {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    gap: 0.5rem;
}

.card-actions-bottom {
    padding: 1.25rem;
    border-top: 1px solid #e9ecef;
    display: flex;
    gap: 0.75rem;
    margin-top: auto;
}

.card-actions-bottom .btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    font-size: 0.95rem;
}

/* =================================
   EMPTY STATES
   ================================= */

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e5e5e5;
}

.empty-content {
    max-width: 500px;
    margin: 0 auto;
}

.empty-icon {
    font-size: 4rem;
    color: #bdc3c7;
    margin-bottom: 1.5rem;
}

.empty-state h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-weight: 600;
}

.empty-state p {
    color: #7f8c8d;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.no-photos {
    text-align: center;
    padding: 4rem 2rem;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e5e5e5;
}

.no-photos i {
    font-size: 4rem;
    color: #bdc3c7;
    margin-bottom: 1.5rem;
}

.no-photos h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-weight: 600;
}

.no-photos p {
    color: #7f8c8d;
    font-size: 1.1rem;
    margin: 0;
}

/* =================================
   HOURS DISPLAY
   ================================= */

.hours-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.hours-grid {
    display: grid;
    gap: 0.75rem;
}

.hours-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 3px solid #2c3e50;
}

.day-name {
    font-weight: 600;
    color: #2c3e50;
    text-transform: capitalize;
}

.day-hours .open {
    color: #27ae60;
    font-weight: 500;
}

.day-hours .closed {
    color: #e74c3c;
    font-weight: 500;
}

/* =================================
   COFFEE SHOP DETAIL PAGE
   ================================= */

.breadcrumb-section {
    background: #f8f9fa;
    padding: 1rem 0;
    border-bottom: 1px solid #e5e5e5;
}

.breadcrumb {
    margin: 0;
    padding: 0;
    background: none;
}

.breadcrumb-item a {
    color: #2c3e50;
    text-decoration: none;
}

.breadcrumb-item.active {
    color: #7f8c8d;
}

.shop-header {
    background: white;
    padding: 2rem 0;
    border-bottom: 1px solid #e5e5e5;
}

.shop-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

/* Images Section */
.images-section {
    background: white;
    padding: 2rem 0;
    border-bottom: 1px solid #e5e5e5;
}

.images-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1rem;
    height: 400px;
}

.main-image {
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px dashed #dee2e6;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.side-images {
    display: grid;
    grid-template-rows: 1fr 1fr 1fr;
    gap: 1rem;
}

.side-image {
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px dashed #dee2e6;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.side-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.image-placeholder {
    text-align: center;
    color: #6c757d;
}

.image-placeholder i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

/* Details Section */
.details-section {
    background: white;
    padding: 3rem 0;
}

.detail-card {
    background: white;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.detail-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #ecf0f1;
    padding-bottom: 0.5rem;
}

.map-section {
    background: #f8f9fa;
    padding: 2rem 0;
}

.map-address {
    color: #7f8c8d;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.feedback-section {
    background: white;
    padding: 2rem 0;
    border-top: 1px solid #e5e5e5;
}

.feedback-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.feedback-link {
    color: #7f8c8d;
    text-decoration: none;
    font-size: 0.9rem;
}

.feedback-link:hover {
    color: #2c3e50;
}

/* =================================
   PHOTO UPLOAD & GALLERY
   ================================= */

.photo-upload-area {
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #f8f9fa;
}

.photo-upload-area:hover,
.photo-upload-area.drag-over {
    border-color: #2c3e50;
    background: #e9ecef;
}

.upload-placeholder i {
    font-size: 3rem;
    color: #6c757d;
    margin-bottom: 1rem;
}

.upload-placeholder p {
    margin: 0.5rem 0;
    color: #495057;
    font-weight: 500;
}

.photo-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.photo-preview-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

.photo-preview-item:hover {
    transform: translateY(-2px);
}

.photo-preview-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    display: block;
}

.photo-actions {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
}

.photo-order {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    background: rgba(44, 62, 80, 0.8);
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
}

.existing-photos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.existing-photo-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.existing-photo-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    display: block;
}

.existing-photo-actions {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    display: flex;
    gap: 0.25rem;
}

.cover-badge {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    background: rgba(44, 62, 80, 0.9);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 10;
}

/* Edit page header */
.edit-page-heading {
    min-width: 0; /* allow the title to wrap/truncate instead of pushing the button */
}

.edit-page-title {
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.25;
}

@media (min-width: 768px) {
    .edit-page-title {
        font-size: 1.75rem;
    }
}

/* Gallery: keep a real multi-column grid on phones instead of one stretched row */
@media (max-width: 575.98px) {
    .existing-photos {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .existing-photo-item img {
        height: 100px;
    }

    .cover-badge {
        padding: 0.15rem 0.5rem;
        font-size: 0.65rem;
    }
}

/* Mobile merchant "Menu" bar: sit flush below the sticky top navbar (no gap/overlap) */
.merchant-mobile-bar {
    top: var(--app-navbar-height, 56px);
}

.sortable-photos {
    cursor: move;
}

.sortable-photos:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Gallery */
.gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e5e5;
}

.gallery-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
}

.photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f8f9fa;
    aspect-ratio: 1;
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    color: white;
    font-size: 2rem;
}

/* =================================
   SLICK SLIDER
   ================================= */

.slider-for {
    margin-bottom: 20px;
}

.slider-nav .slick-slide {
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.slider-nav .slick-current {
    opacity: 1;
}

.slider-nav {
    margin: 0 -10px;
}

.slider-nav .slick-slide {
    padding: 0 10px;
}

.slider-for .slick-slide img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 8px;
}

.slider-nav .slick-slide img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
}

.slick-prev,
.slick-next {
    z-index: 1;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.slick-prev:hover,
.slick-next:hover {
    background: #fff;
}

.slick-prev {
    left: 10px;
}

.slick-next {
    right: 10px;
}

.slick-prev:before,
.slick-next:before {
    color: #333;
}

.leaflet-container .btn {
    color: #fff !important;
}

.feature-group h6 {
    letter-spacing: 0.05rem;
    font-size: 0.75rem;
}

.btn-outline-primary {
    border-color: #e9ecef;
    background-color: #f8f9fa;
    color: #495057;
}

.btn-check:checked + label {
    border-color: #0d6efd !important;
    background-color: #e7f1ff !important;
    color: #0d6efd !important;
    font-weight: 600;
}

/* Modern Filter Chips */
.btn-filter-chip {
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    color: #495057;
    transition: all 0.2s ease-in-out;
}

.btn-filter-chip i {
    margin-right: 0.4rem;
    color: #6c757d;
}

.btn-filter-chip:hover {
    background-color: #f1f3f5;
    border-color: #dee2e6;
}



@media (min-width: 768px) {
    .border-start-md {
        border-left: 1px solid #dee2e6 !important;
        padding-left: 1.5rem;
    }
}


#searchResults {
    max-height: 400px;
    overflow-y: auto;
    border-radius: 0 0 8px 8px;
    margin-top: 2px;
}

#searchResults .list-group-item {
    border-left: none;
    border-right: none;
    padding: 12px 15px;
}

#searchResults .list-group-item:last-child {
    border-bottom: none;
}

#navSearchInput:focus {
    box-shadow: none;
    border-color: #dee2e6;
}

.features-list i {
    width: 24px;
    display: inline-block;
    text-align: center;
}

.gallery-mosaic {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 200px 200px;
    gap: 10px;
    height: 410px;
}

.mosaic-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.mosaic-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.mosaic-item:hover img {
    transform: scale(1.05);
}

/* Make the first image span two rows */
.main-item {
    grid-row: span 2;
}


.more-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.photo-order-label {
    position: absolute;
    bottom: 5px;
    left: 5px;
    z-index: 10;
}

[aria-expanded="true"] .collapsed-text { display: none; }
[aria-expanded="true"] .expanded-text { display: inline !important; }


.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-position: center;
    background-size: cover;
    z-index: -2;
    transform: scale(1.05);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 60%, rgba(0,0,0,0.2) 100%);
    z-index: -1;
}

.min-vh-25 {
    min-height: 25vh;
}

.glass-button {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.glass-button:hover {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255,255,255,0.5);
}

.breadcrumb {
    display: flex;
    align-items: center;
    margin-bottom: 0;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    line-height: 1;
}

.breadcrumb-item a,
.breadcrumb-item.active {
    font-size: 0.9rem;
}

.coffee-shop-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 1.25rem !important;
}

.coffee-shop-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 1rem 3rem rgba(0,0,0,0.12) !important;
}

.card-photo-wrapper {
    height: 220px;
    overflow: hidden;
}

.card-photo-wrapper img {
    position: absolute;
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: center;
}

.no-photo-placeholder {
    height: 100%;
    background-color: #f8f9fa;
}

/* Efecte Glassmorphism pe imagine */
.bg-success-glass {
    background: rgba(25, 135, 84, 0.85);
    backdrop-filter: blur(4px);
}

.bg-danger-glass {
    background: rgba(220, 53, 69, 0.85);
    backdrop-filter: blur(4px);
}

.btn-glass-dark {
    background: rgba(0, 0, 0, 0.4);
    color: white;
    border: none;
    backdrop-filter: blur(4px);
}

.btn-glass-dark:hover {
    background: rgba(0, 0, 0, 0.6);
    color: white;
}

.hover-primary:hover {
    color: var(--bs-primary) !important;
}

.tiny-dot { font-size: 0.5rem; vertical-align: middle; margin-top: -51px; }
.pulse {
    animation: pulse-animation 2s infinite;
}

.tiny-dot:before{
    transform: translateY(-1px);
}

@keyframes pulse-animation {
    0% { opacity: 1; }
    50% { opacity: 0.4; }
    100% { opacity: 1; }
}

.coffee-shop-card .card-body {
    background: white;
    z-index: 999;
}


.btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: #1c0fb8;
    --bs-btn-border-color: #1c0fb8;
}

/* Gallery Styling */
.gallery-mosaic {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 200px 200px;
    gap: 12px;
    height: 412px;
}
.mosaic-item { position: relative; overflow: hidden; border-radius: 12px; }
.mosaic-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.mosaic-item:hover img { transform: scale(1.05); }
.main-item { grid-row: span 2; }
.more-overlay {
    position: absolute; inset: 0; background: rgba(0,0,0,0.5);
    color: white; display: flex; align-items: center; justify-content: center; font-weight: bold;
}

/* Mobile gallery: full-width swipeable main photo + thumbnail strip.
   (The desktop mosaic is hidden on phones via d-none d-md-grid.) */
.gallery-main {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    height: 280px;
    gap: 8px; /* must match GAP in the gallery sync script */
    scrollbar-width: none;
}
.gallery-main::-webkit-scrollbar { display: none; }
.gallery-main-item {
    flex: 0 0 100%;
    scroll-snap-align: start;
    overflow: hidden;
    border-radius: 12px;
}
.gallery-main-item img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    overflow-x: auto;
    scrollbar-width: none;
}
.gallery-thumbs::-webkit-scrollbar { display: none; }
.gallery-thumb {
    flex: 0 0 56px;
    height: 56px;
    border-radius: 8px;
    overflow: hidden;
    padding: 0;
    border: 2px solid transparent;
    background: none;
    opacity: 0.6;
    transition: opacity 0.2s, border-color 0.2s;
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb.active {
    border-color: #212529;
    opacity: 1;
}

/* Icons */
.icon-box {
    width: 36px; height: 36px; background: #f8f9fa;
    border-radius: 8px; display: flex; align-items: center; justify-content: center;
}

/* Star Rating Widget */
.star-rating {
    display: flex;
    flex-direction: row-reverse; /* Important for the hover logic */
    justify-content: flex-end;
}

.star-rating input {
    display: none;
}

.star-rating label {
    cursor: pointer;
    width: 30px;
    height: 30px;
    margin-right: 5px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23cccccc' class='bi bi-star' viewBox='0 0 16 16'%3E%3Cpath d='M2.866 14.85c-.078.444.36.791.746.593l4.39-2.256 4.389 2.256c.386.198.824-.149.746-.592l-.83-4.73 3.522-3.356c.33-.314.16-.888-.282-.95l-4.898-.696L8.465.792a.513.513 0 0 0-.927 0L5.354 5.12l-4.898.696c-.441.062-.612.636-.283.95l3.523 3.356-.83 4.73zm4.905-2.767-3.686 1.894.694-3.957a.56.56 0 0 0-.163-.505L1.71 6.745l4.052-.576a.53.53 0 0 0 .393-.288L8 2.223l1.847 3.658a.53.53 0 0 0 .393.288l4.052.575-2.906 2.77a.56.56 0 0 0-.163.506l.694 3.957-3.686-1.894a.5.5 0 0 0-.461 0z'/%3E%3C/svg%3E");    background-repeat: no-repeat;
    background-position: center;
    background-size: 100%;
    transition: transform 0.1s ease;
}

/* Hover and Checked States */
.star-rating label:hover,
.star-rating label:hover ~ label,
.star-rating input:checked ~ label {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23ffc107' viewBox='0 0 16 16'%3E%3Cpath d='M3.612 15.443c-.386.198-.824-.149-.746-.592l.83-4.73L.173 6.765c-.329-.314-.158-.888.283-.95l4.898-.696L7.538.792c.197-.39.73-.39.927 0l2.184 4.327 4.898.696c.441.062.612.636.282.95l-3.522 3.356.83 4.73c.078.443-.36.79-.746.592L8 13.187l-4.389 2.256z'/%3E%3C/svg%3E");
}

.star-rating label:active {
    transform: scale(0.9);
}

 .ls-1 { letter-spacing: 0.05em; }
.transition-base { transition: all 0.3s ease; }

.card-unstarted { border-style: dashed !important; background-color: #fafafa; }
.card-active { border-style: solid !important; }
.border-gold { border: 2px solid #d4af37 !important; }

/* Premium Badges */
.badge-premium-gold {
    background: #d4af37; color: #fff; padding: 4px 12px;
    font-size: 0.65rem; font-weight: 700; text-uppercase: uppercase; letter-spacing: 1px;
}
.badge-premium-outline {
    border: 1px solid #ddd; color: #888; padding: 4px 12px;
    font-size: 0.65rem; font-weight: 700; text-uppercase: uppercase; letter-spacing: 1px;
}

/* Stamp Grid Logic */
.stamp-grid-minimal {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 25px;
}
.stamp-slot {
    aspect-ratio: 1;
    border: 1px solid #918888;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #918888;
    transition: 0.3s;
    border-radius: 50%;
    font-size: 1.5rem;
    max-width: 75px;
    max-height: 75px;
}
.is-stamped {
    border-color: #cb9b74;
    color: #fff;
    background: #cb9b74;
}

/* Minimalist Progress Bar */
.progress-minimal { height: 5px; width: 100%; background: #eee; }
.progress-fill { height: 100%; background: #cb9b74; transition: width 0.6s ease; }

/* Buttons */
.btn-premium-dark {
    background: #111; color: #fff; border: none; width: 100%;
    padding: 12px; font-size: 0.75rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1px; transition: 0.2s;
}
.btn-premium-dark:hover { background: #333; }

.btn-premium-outline {
    background: transparent; color: #111; border: 1px solid #111; width: 100%;
    padding: 12px; font-size: 0.75rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1px; transition: 0.2s;
    text-align: center; text-decoration: none; display: block;
}
.btn-premium-outline:hover { background: #111; color: #fff; }

/* Card Hover Effect */
.loyalty-card-item:hover .card { border-color: #111 !important; transform: translateY(-2px); }

.loyalty-card{
    border-color: #24282c !important;
    border-radius: 5px!important;
}

.redeem-header{
    background-color: #000;
}

.text-blue{
    color: #1c0fb8;
}

.bg-gradient-blue { background: linear-gradient(135deg, #243949 0%, #517fa4 100%); }
.redemption-code {
    font-size: 3rem; font-weight: bold; font-family: monospace; letter-spacing: 0.1em;
    padding: 20px; background: #f8f9fa; border-radius: 15px; border: 2px dashed #1c0fb8; color: #1c0fb8;
}
.stamp-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.stamp {
    aspect-ratio: 1; border: 2px solid #e9ecef; border-radius: 10px;
    display: flex; align-items: center; justify-content: center; background: #f8f9fa;
}
.stamp.stamped { background: #fff; border-color: #ffc107; color: #ffc107; font-size: 1.2rem; }
.empty-card { opacity: 0.7; filter: grayscale(0.5); transition: 0.3s; }
.empty-card:hover { opacity: 1; filter: grayscale(0); }
.hidden { display: none !important; }

/* Modal Table Styling */
.table-history { font-size: 0.9rem; }
.table-history th { background: #f8f9fa; border-top: none; }

/* 1. General Navbar */
.navbar-glass {
    background-color: rgba(255, 255, 255, 0.8); /* Slightly more opaque for mobile */
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

/* 2. Search Bar */
.search-group {
    background-color: #f3f4f6;
    border-radius: 50rem;
    padding: 2px;
    transition: all 0.2s ease;
}
.search-group:focus-within {
    background-color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* 3. City Selector */
.city-selector {
    background-color: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 50rem;
    padding: 6px 16px !important;
    font-size: 0.9rem;
    white-space: nowrap; /* Prevents breaking on small screens */
}

/* 4. Desktop Icons */
.nav-icon-link {
    font-size: 1.5rem;
    color: #6b7280;
    padding: 0 10px;
}
.nav-icon-link:hover {
    color: #1d4ed8;
    transform: translateY(-2px);
}

/* 5. Avatar Styles */
.user-avatar {
    width: 40px; height: 40px;
    background: #1c0fb8;
    color: white;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: bold; font-size: 1.1rem;
    border: 2px solid white;
}
.user-avatar-sm {
    width: 32px; height: 32px; /* Smaller on mobile header */
    font-size: 0.9rem;
}
.user-avatar-lg {
    width: 80px; height: 80px;
    font-size: 2rem;
}

/* --- MOBILE SPECIFIC FIXES --- */
@media (max-width: 991px) {
    /* Center the city selector on mobile expansion */
    .city-selector {
        display: inline-flex;
        margin-bottom: 10px;
        width: 100%;
        justify-content: center;
    }

    /* Make the search input text slightly smaller on mobile */
    #navSearchInput {
        font-size: 16px; /* Prevents iOS zoom on focus */
    }

    /* Mobile Buttons Grid (Passport/Loyalty) */
    .btn-light {
        background-color: #f8f9fa;
        border: 1px solid #eee;
    }
    .btn-light:active {
        background-color: #e9ecef;
    }

    /* Better spacing for the dropdowns in mobile view */
    .navbar-collapse {
        max-height: 80vh;
        overflow-y: auto; /* Scroll if menu is too long */
        padding-bottom: 20px;
    }
}



/* 2. Shared Fonts Classes */
.font-heading { font-family: 'Poppins', sans-serif; letter-spacing: -0.5px; }
.font-body { font-family: 'Inter', sans-serif; }
.opacity-85 { opacity: 0.85; }

/* 3. Layout Wrapper */
/* Calculates height to fill screen below navbar */
.auth-wrapper {
    height: calc(100vh - 76px);
    overflow: hidden;
}

/* 4. Split Screen - Image Side */
.auth-image-side {
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: flex-end; /* Push text to bottom */
}

/* Specific Image for Login Page (Coffee Shop Interior) */
.login-image-side {
    background-image: url('https://images.unsplash.com/photo-1495474472287-4d71bcdd2085?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
}

/* Specific Image for Register Page (Latte Art / Beans) */
.register-image {
    background-image: url('https://images.unsplash.com/photo-1447933601403-0c6688de566e?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
}

.overlay-gradient {
    position: absolute; inset: 0;
    /* Modern gradient: Dark at bottom to make text pop, clear at top */
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.5) 40%, rgba(0,0,0,0.1) 100%);
}

.brand-text {
    position: relative;
    z-index: 2;
    max-width: 90%;
    margin-bottom: 20px;
}

.auth-form-container {
    width: 100%;
    max-width: 480px; /* Slightly wider for ease */
}

.form-floating > .form-control:focus ~ label {
    color: #bfa15f; /* Gold accent color */
}
.form-control:focus {
    border-color: #bfa15f;
    box-shadow: 0 0 0 0.25rem rgba(191, 161, 95, 0.25);
}

.btn-dark {
    background-color: #1a1a1a;
    transition: all 0.3s ease;
    padding-top: 12px; padding-bottom: 12px; /* Taller button */
}
.btn-dark:hover {
    background-color: #333;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

@media (max-width: 991px) {
    .auth-wrapper { height: auto; min-height: calc(100vh - 76px); padding: 40px 0; background: #fff; }
    .auth-image-side { display: none; } /* Hide image on mobile */
    .auth-form-container { padding: 20px !important; }
}

/* =================================
   MERCHANT DASHBOARD SIDEBAR
   ================================= */

.merchant-dashboard {
    min-height: calc(100vh - 76px);
    background: #f8f9fa;
}

.merchant-sidebar {
    background: #ffffff;
    border-right: 1px solid #e9ecef;
    min-height: calc(100vh - 76px);
}

.merchant-sidebar .sidebar-header {
    border-bottom: 1px solid #e9ecef;
}

.merchant-sidebar .nav-link {
    color: #495057;
    padding: 0.65rem 1rem;
    border-radius: 0.5rem;
    margin: 0.125rem 0;
    transition: all 0.2s ease;
    font-weight: 500;
    font-size: 0.9rem;
}

.merchant-sidebar .nav-link:hover {
    background-color: rgba(28, 15, 184, 0.08);
    color: #1c0fb8;
}

.merchant-sidebar .nav-link.active {
    background-color: #1c0fb8;
    color: white;
    box-shadow: 0 2px 8px rgba(28, 15, 184, 0.3);
}

.merchant-sidebar .nav-link i {
    width: 20px;
    text-align: center;
}

.merchant-main {
    background: #f8f9fa;
}

/* Mobile sidebar styles */
@media (max-width: 767.98px) {
    .merchant-sidebar {
        position: fixed;
        top: 76px;
        left: 0;
        right: 0;
        z-index: 1035;
        height: auto;
        max-height: 60vh;
        overflow-y: auto;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        border-right: none;
        border-bottom: 1px solid #e9ecef;
        min-height: auto;
    }

    .merchant-sidebar.show {
        display: block !important;
    }

    .merchant-sidebar .position-sticky {
        position: relative !important;
        top: 0 !important;
    }

    .merchant-main {
        margin-left: 0 !important;
    }
}

.admin-sidebar {
    background: #ffffff;
    border-right: 1px solid #e9ecef;
    min-height: calc(100vh - 76px);
}

.admin-sidebar .sidebar-header {
    border-bottom: 1px solid #e9ecef;
}

.admin-sidebar .nav-link {
    color: #495057;
    padding: 0.55rem 1rem;
    border-radius: 0.5rem;
    margin: 0.125rem 0;
    transition: all 0.2s ease;
    font-weight: 500;
    font-size: 0.9rem;
}

.admin-sidebar .nav-link:hover {
    background-color: rgba(28, 15, 184, 0.08);
    color: #1c0fb8;
}

.admin-sidebar .nav-link.active {
    background-color: #1c0fb8;
    color: white;
    box-shadow: 0 2px 8px rgba(28, 15, 184, 0.3);
}

.admin-sidebar .nav-link i {
    width: 20px;
    text-align: center;
}

.admin-main {
    background: #f8f9fa;
    min-height: calc(100vh - 76px);
}

/* Desktop: keep the sticky sidebar within the viewport and let its nav scroll
   when there are more items than fit (matches the sticky top offset of 90px). */
@media (min-width: 768px) {
    .admin-sidebar .position-sticky {
        max-height: calc(100vh - 90px);
        overflow-y: auto;
        scrollbar-width: thin;
        scrollbar-color: #c7c9d1 transparent;
    }

    .admin-sidebar .position-sticky::-webkit-scrollbar {
        width: 6px;
    }

    .admin-sidebar .position-sticky::-webkit-scrollbar-thumb {
        background-color: #c7c9d1;
        border-radius: 3px;
    }

    .admin-sidebar .position-sticky::-webkit-scrollbar-track {
        background: transparent;
    }
}

@media (max-width: 767.98px) {
    .admin-sidebar {
        position: fixed;
        top: 76px;
        left: 0;
        right: 0;
        z-index: 1035;
        height: auto;
        max-height: 70vh;
        overflow-y: auto;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        border-right: none;
        border-bottom: 1px solid #e9ecef;
        min-height: auto;
    }

    .admin-sidebar.show {
        display: block !important;
    }

    .admin-sidebar .position-sticky {
        position: relative !important;
        top: 0 !important;
    }

    .admin-main {
        margin-left: 0 !important;
    }
}

.facebook-btn{
    border-color: #1877F2;
    color: #1877F2;
}

.facebook-btn:hover{
    color: #fff;
}


.facebook-btn span, .google-btn span{
    margin-top: 2px;
}

/* =================================
   MARKETING SECTIONS (homepage, for-owners)
   ================================= */

/* Blue block behind a key phrase in headlines */
.text-highlight {
    display: inline-block;
    padding: 0 0.3em;
    background: #1c0fb8;
    color: #fff;
}

.section-eyebrow {
    display: inline-block;
    margin-bottom: 0.75rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #1c0fb8;
}
.section-eyebrow--light { color: rgba(255, 255, 255, 0.75); }

.home-section { padding: 4.5rem 0; }
.home-section--tight { padding: 3rem 0; }
@media (max-width: 767.98px) {
    .home-section { padding: 3rem 0; }
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    color: #6b7280;
}
.hero-stats strong { color: #111827; }
@media (max-width: 991.98px) {
    .hero-stats { justify-content: center; }
}

/* 01 / 02 / 03 step numbers */
.step-num {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: #eeedfb;
    color: #1c0fb8;
    font-weight: 800;
    font-size: 0.95rem;
}

.feature-list li {
    display: flex;
    gap: 0.9rem;
    margin-bottom: 1.1rem;
}
.feature-list__icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #eeedfb;
    color: #1c0fb8;
    font-size: 1.15rem;
}

.check-list li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 0.6rem;
}
.check-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.3em;
    width: 1.1rem;
    height: 1.1rem;
    border-radius: 50%;
    background: #1c0fb8 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='white'%3E%3Cpath d='M13.5 4.5 6.5 11.5 3 8l1-1 2.5 2.5 6-6z'/%3E%3C/svg%3E") center / 0.8rem no-repeat;
}

.feature-card {
    height: 100%;
    padding: 1.5rem;
    border-radius: 1.25rem;
    background: #fff;
    border: 1px solid #ece9e3;
}
.feature-card > i { color: #1c0fb8; }

/* Phone screenshots; the placeholder holds the slot until the real image is added */
.app-shot {
    display: block;
    width: 100%;
    max-width: 260px;
    aspect-ratio: 608 / 1080;
    height: auto;
    border-radius: 28px;
    filter: drop-shadow(0 14px 34px rgba(0, 0, 0, 0.14));
}
.app-shot--placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    border: 2px dashed #c9c5f0;
    background: repeating-linear-gradient(135deg, #f6f5fe, #f6f5fe 12px, #efedfc 12px, #efedfc 24px);
    color: #6b67a8;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    filter: none;
}
.app-shot--placeholder i { font-size: 2rem; }
.app-shot--on-dark.app-shot--placeholder {
    border-color: rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.8);
}
.shot-pair {
    display: flex;
    justify-content: center;
    align-items: flex-end;
}
.shot-pair > .app-shot { width: 46%; }
.shot-pair > .app-shot:first-child { transform: rotate(-4deg); margin-right: -4%; z-index: 1; }
.shot-pair > .app-shot:last-child { transform: rotate(4deg) translateY(-1.5rem); }

/* QR code to /download */
.app-qr__code {
    width: 64px;
    height: 64px;
    padding: 4px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
}
.app-qr__code--lg { width: 168px; height: 168px; }
.app-qr__code svg { display: block; width: 100%; height: 100%; }

.owners-band { background: #1c0fb8; }

.city-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 50rem;
    color: #111827;
    font-weight: 600;
    text-decoration: none;
    transition: border-color 0.2s, color 0.2s;
}
.city-chip span { color: #9ca3af; font-weight: 500; font-size: 0.85rem; }
.city-chip:hover { border-color: #1c0fb8; color: #1c0fb8; }

.faq-accordion .accordion-item {
    border: 1px solid #ece9e3;
    border-radius: 1rem !important;
    margin-bottom: 0.75rem;
    overflow: hidden;
}
.faq-accordion .accordion-button { font-weight: 700; color: #111827; background: #fff; box-shadow: none; }
.faq-accordion .accordion-button:not(.collapsed) { color: #1c0fb8; }

.plan-card {
    display: flex;
    flex-direction: column;
    padding: 2rem;
    border-radius: 1.5rem;
    border: 1px solid #e5e7eb;
    background: #fff;
}
.plan-card__price { color: #6b7280; font-weight: 600; margin-bottom: 1.25rem; }
.plan-card--featured { background: #1c0fb8; border-color: #1c0fb8; color: #fff; }
.plan-card--featured .plan-card__price { color: rgba(255, 255, 255, 0.75); }
.plan-card--featured .check-list li::before { background-color: #fff; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%231c0fb8'%3E%3Cpath d='M13.5 4.5 6.5 11.5 3 8l1-1 2.5 2.5 6-6z'/%3E%3C/svg%3E"); }

/* "Own a coffee shop?" card in city heroes */
.owner-card {
    max-width: 420px;
    background: #1c0fb8;
    transition: transform 0.2s, box-shadow 0.2s;
}
.owner-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(28, 15, 184, 0.3);
}

/* =================================
   NAVBAR (desktop) + FOOTER
   ================================= */

.nav-link-main {
    position: relative;
    padding: 0.5rem 0.6rem !important;
    color: #374151 !important;
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
}
.nav-link-main:hover { color: #1c0fb8 !important; }
.nav-link-main.active { color: #1c0fb8 !important; }
.nav-link-main.active::after {
    content: "";
    position: absolute;
    left: 0.6rem;
    right: 0.6rem;
    bottom: 0.1rem;
    height: 2px;
    border-radius: 2px;
    background: #1c0fb8;
}

@media (min-width: 992px) {
    .nav-search { flex: 1 1 auto; max-width: 420px; margin: 0 1rem; }
}

.site-footer__title {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #111827;
    margin-bottom: 0.9rem;
}
.site-footer li { margin-bottom: 0.45rem; }
.site-footer li a { color: #6b7280; font-size: 0.9rem; text-decoration: none; }
.site-footer li a:hover { color: #1c0fb8; }
@media (max-width: 991.98px) {
    .app-shot { max-width: 220px; }
    .shot-pair { max-width: 440px; margin: 0 auto; }
}

/* =================================
   LISTINGS: header, filter row, "Show more"
   ================================= */

.glow-section .breadcrumb-item + .breadcrumb-item::before { color: #9ca3af; }
.listing-intro { max-width: 860px; }
.guide-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.filter-bar { position: relative; z-index: 2; }
.filter-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}
.filter-row .btn-filter-chip,
#moreFeatures .btn-filter-chip {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    background: #fff;
    border-color: #e5e7eb;
    color: #374151;
    font-weight: 600;
}
.btn-filter-chip .ph { font-size: 1rem; margin-right: 0.35rem; color: #6b7280; }
.btn-check:checked + .btn-filter-chip .ph { color: inherit; }
.filter-divider {
    width: 1px;
    height: 1.5rem;
    background: #e5e7eb;
    margin: 0 0.25rem;
}
.open-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: #22c55e;
    margin-right: 0.45rem;
}
/* Phones: one row that scrolls sideways instead of three rows of chips */
@media (max-width: 767.98px) {
    .filter-row {
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
        margin: 0 -12px;
        padding: 0 12px;
    }
    .filter-row::-webkit-scrollbar { display: none; }
}

.shops-progress {
    width: 200px;
    height: 4px;
    border-radius: 4px;
    background: #e5e7eb;
    overflow: hidden;
}
.shops-progress span {
    display: block;
    height: 100%;
    background: #1c0fb8;
    transition: width 0.3s;
}

.cta-card {
    padding: 2rem;
    border-radius: 1.5rem;
    background: #f8f7f4;
}
.cta-card--dark { background: #1c0fb8; color: #fff; }
.btn-check:checked + .btn-filter-chip {
    border-color: #1c0fb8 !important;
    background-color: #1c0fb8 !important;
    color: #fff !important;
}
.btn-check:checked + .btn-filter-chip .open-dot { background: #86efac; }
.filter-row .btn-filter-chip[aria-expanded="true"] { border-color: #111827; }
@media (max-width: 767.98px) {
    /* Long city intros: three lines until "Read more" */
    .listing-intro--folds > p:first-child {
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .listing-intro--folds:has(.collapse.show, .collapsing) > p:first-child { display: block; -webkit-line-clamp: unset; }
    .guide-row {
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
        margin: 0 -12px;
        padding: 0 12px;
    }
    .guide-row::-webkit-scrollbar { display: none; }
    .guide-row .btn { white-space: nowrap; }
}

/* Icon + label buttons: keep both on one centred line */
.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    line-height: 1.25;
}
.btn-icon > .bi { line-height: 1; }

/* =================================
   NAVBAR CITY PICKER
   ================================= */
.city-picker__menu { width: 340px; overflow: hidden; }
@media (max-width: 991.98px) {
    .city-picker__menu { width: 100%; }
}
.city-picker__search {
    position: relative;
    padding: 0.75rem;
    border-bottom: 1px solid #f1f1f4;
}
.city-picker__search .bi {
    position: absolute;
    left: 1.6rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
}
.city-picker__search .form-control {
    padding-left: 2.4rem;
    border-radius: 50rem;
    background: #f3f4f6;
    border-color: transparent;
}
.city-picker__search .form-control:focus { background: #fff; border-color: #c7c4f3; box-shadow: none; }
.city-picker__body { max-height: min(420px, 60vh); overflow-y: auto; padding-bottom: 0.5rem; }
.city-picker__near {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.75rem 1rem;
    border: 0;
    background: none;
    text-align: left;
}
.city-picker__near:hover { background: #f6f5fe; }
.city-picker__near-icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #eeedfb;
    color: #1c0fb8;
}
.city-picker__label {
    padding: 0.75rem 1rem 0.4rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #9ca3af;
}
.city-picker__country {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem 0;
}
.city-picker__country label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #9ca3af;
}
.city-picker__country .form-select { flex: 1; min-width: 0; border-radius: 50rem; font-weight: 600; }
.city-picker__chip {
    padding: 0.3rem 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 50rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #374151;
    text-decoration: none;
}
.city-picker__chip:hover, .city-picker__chip.active { border-color: #1c0fb8; color: #1c0fb8; }
.city-picker .city-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1rem;
    font-weight: 500;
}
.city-picker .city-option.active { background: #eeedfb; color: #1c0fb8; font-weight: 700; }
.city-picker .city-option:hover { background: #f6f5fe; }
.city-option__count { font-size: 0.8rem; color: #9ca3af; font-weight: 500; }

/* =================================
   CITY PAGE: cards left, sticky map right
   ================================= */
@media (min-width: 992px) {
    .listing-split { padding-top: 2rem; }
    .listing-split__inner {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
        gap: 2rem;
        align-items: start;
    }
    .listing-split .shops-grid {
        grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
        gap: 1.5rem;
    }
    .listing-split__map {
        position: sticky;
        top: 96px;
    }
}
@media (min-width: 1400px) {
    .listing-split__inner { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); }
}
.city-map {
    position: relative;
    height: calc(100vh - 120px);
    min-height: 420px;
    border-radius: 1.25rem;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    background: #f1f1f4;
}
/* Mapbox sets .mapboxgl-map { position: relative }, so size the canvas explicitly. */
.city-map__canvas { width: 100%; height: 100%; }
#cityMapStatus { background: rgba(255, 255, 255, 0.6); }
.city-map__expand {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    font-weight: 600;
    background: #fff;
}

.map-fab {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    z-index: 1030;
    padding: 0.7rem 1.4rem;
    font-weight: 600;
}


/* Hero backdrop (city header, homepage, for-owners): warm cream, soft colour
   glows on the right, faint coffee-brown dots fading out at the edges. */
.glow-section {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: linear-gradient(180deg, #fbf7f1 0%, #ffffff 100%);
}
.glow-backdrop {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}
.glow-backdrop::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(120, 82, 52, 0.16) 1px, transparent 1.4px);
    background-size: 22px 22px;
    /* Only the bottom-right corner gets dots */
    -webkit-mask-image: radial-gradient(ellipse 40% 70% at 100% 100%, #000 10%, transparent 75%);
    mask-image: radial-gradient(ellipse 40% 70% at 100% 100%, #000 10%, transparent 75%);
}
.glow-backdrop__glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
}
/* Latte in the top-right corner, orchid low on the right, lilac under the copy */
.glow-backdrop__glow--latte { width: 520px; height: 420px; top: -220px; right: -120px; background: #f9d4ad; opacity: 0.7; }
.glow-backdrop__glow--orchid { width: 360px; height: 300px; bottom: -190px; right: 12%; background: #f1c8ea; opacity: 0.6; }
.glow-backdrop__glow--lilac { width: 420px; height: 340px; bottom: -230px; left: -140px; background: #dcd7ff; opacity: 0.55; }
.glow-section--hero .glow-backdrop__glow--latte { width: 680px; height: 520px; top: -240px; right: -160px; }
.glow-section--hero .glow-backdrop__glow--orchid { width: 460px; height: 380px; bottom: -200px; right: 18%; }
.glow-section--hero .glow-backdrop__glow--lilac { width: 520px; height: 420px; bottom: -260px; left: -160px; }
.glow-backdrop__waves {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}
@media (max-width: 767.98px) {
    .glow-backdrop__glow--latte,
    .glow-section--hero .glow-backdrop__glow--latte { width: 300px; height: 260px; top: -150px; right: -110px; }
    .glow-backdrop__glow--lilac,
    .glow-section--hero .glow-backdrop__glow--lilac { width: 260px; height: 220px; bottom: -150px; left: -110px; }
    .glow-backdrop__glow--orchid { display: none; }
}

/* Key word in a heading: brand blue with a hand-drawn caramel underline */
.text-accent {
    color: #1c0fb8;
    padding-bottom: 0.08em;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 12' preserveAspectRatio='none'%3E%3Cpath d='M2 8 C 40 3, 90 3, 120 6 S 180 10, 198 4' fill='none' stroke='%23d9915a' stroke-width='3.5' stroke-linecap='round' opacity='0.75'/%3E%3C/svg%3E") left bottom / 100% 0.32em no-repeat;
}

.listing-header .listing-intro p { color: #4b5563 !important; }
.listing-intro__toggle { color: #1c0fb8; }
.listing-intro__toggle:hover { color: #120a80; }

.guide-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.9rem;
    border-radius: 50rem;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid #ebe5dc;
    box-shadow: 0 1px 2px rgba(17, 24, 39, 0.04);
    color: #374151;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: border-color 0.2s, color 0.2s, transform 0.2s;
}
.guide-chip:hover { border-color: #1c0fb8; color: #1c0fb8; transform: translateY(-1px); }
.guide-row > span { color: #6b7280 !important; }
.glow-section .btn-outline-dark {
    background: rgba(255, 255, 255, 0.8);
    border-color: #ebe5dc;
    color: #374151;
    font-weight: 600;
    box-shadow: 0 1px 2px rgba(17, 24, 39, 0.04);
}
.glow-section .btn-outline-dark:hover { background: #fff; border-color: #1c0fb8; color: #1c0fb8; }
/* Homepage hero: the waves already carry colour, so the glows stay faint */
.glow-section--soft .glow-backdrop__glow--latte { opacity: 0.35; }
.glow-section--soft .glow-backdrop__glow--orchid { opacity: 0.3; }
.glow-section--soft .glow-backdrop__glow--lilac { opacity: 0.3; }
.glow-section--soft .glow-backdrop::before { opacity: 0.6; }

/* =================================
   SHOP CARD v2 (partials/coffee-shop-card-small). To revert: restore that
   partial from git and delete this block.
   ================================= */
.shop-card {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #efebe5;
    border-radius: 1.25rem;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.shop-card:hover {
    transform: translateY(-3px);
    border-color: #e4ddd3;
    box-shadow: 0 14px 30px rgba(17, 24, 39, 0.08);
}
.shop-card__photo {
    position: relative;
    aspect-ratio: 3 / 2;
    background: #f4f1ec;
    overflow: hidden;
}
.shop-card__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.shop-card:hover .shop-card__photo img { transform: scale(1.04); }
.shop-card__no-photo {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #cbbfae;
}
.shop-card__status {
    position: absolute;
    left: 12px;
    top: 12px;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.7rem;
    border-radius: 50rem;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(6px);
    font-size: 0.78rem;
    font-weight: 600;
    color: #4b5563;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.shop-card__status::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #9ca3af;
}
.shop-card__status--open { color: #166534; }
.shop-card__status--open::before { background: #22c55e; }
.shop-card__admin { position: absolute; top: 8px; right: 8px; z-index: 2; }
.shop-card__body { padding: 1rem 1.15rem 1.15rem; display: flex; flex-direction: column; gap: 0.4rem; }
.shop-card__name {
    margin: 0;
    font-size: 1.08rem;
    font-weight: 700;
    line-height: 1.3;
}
.shop-card__name a { color: #111827; text-decoration: none; }
.shop-card:hover .shop-card__name a { color: #1c0fb8; }
.shop-card__rating {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.88rem;
    font-weight: 700;
    color: #111827;
}
.shop-card__rating .bi { color: #f59e0b; }
.shop-card__new {
    flex-shrink: 0;
    padding: 0.1rem 0.5rem;
    border-radius: 50rem;
    background: #eeedfb;
    color: #1c0fb8;
    font-size: 0.72rem;
    font-weight: 700;
}
.shop-card__address {
    margin: 0;
    color: #6b7280;
    font-size: 0.88rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.shop-card .card-features { margin-top: 0.2rem; }
.shop-card .feature-tag { background: #f6f3ee; color: #57534e; border: 0; }
.shop-card .feature-tag.active { background: #eeedfb; color: #1c0fb8; }

/* =================================
   SHOP PAGE (coffee-shops/show)
   ================================= */
.shop-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1rem;
    color: #4b5563;
}
.shop-meta__rating {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-weight: 700;
    color: #111827;
    text-decoration: none;
}
.shop-meta__rating .bi { color: #f59e0b; }
.shop-meta__rating span { font-weight: 500; color: #6b7280; text-decoration: underline; text-underline-offset: 3px; }
.shop-meta__status {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
    font-size: 0.92rem;
    color: #6b7280;
}
.shop-meta__status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #9ca3af; }
.shop-meta__status--open { color: #166534; }
.shop-meta__status--open::before { background: #22c55e; }
.shop-meta__address { display: inline-flex; align-items: center; gap: 0.35rem; }
.shop-meta__address .bi { color: #9ca3af; }

.shop-gallery { grid-template-rows: 220px 220px; height: 452px; }
.shop-gallery .mosaic-item { border-radius: 1rem; }
.shop-gallery .main-item { border-radius: 1.25rem; }
.shop-no-photos {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 3rem 1rem;
    border-radius: 1.25rem;
    background: #f6f3ee;
    color: #a8a29e;
}
.shop-no-photos .bi { font-size: 2rem; }

.shop-section { margin-bottom: 3rem; }
.shop-section__title { font-size: 1.4rem; font-weight: 800; color: #111827; margin-bottom: 1.1rem; }
.shop-section__label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #9ca3af;
    margin: 1.2rem 0 0.7rem;
}
.shop-section__label:first-of-type { margin-top: 0; }
.amenity-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 0.6rem;
    list-style: none;
    padding: 0;
    margin: 0;
}
.amenity-list li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.65rem 0.85rem;
    border-radius: 0.9rem;
    background: #faf8f5;
    border: 1px solid #f0ebe4;
    font-weight: 600;
    color: #374151;
}
.amenity-list .ph { font-size: 1.25rem; color: #1c0fb8; }
.shop-glance {
    padding: 1.25rem 1.4rem;
    border-radius: 1.25rem;
    background: #faf8f5;
    border: 1px solid #f0ebe4;
}
.shop-glance .shop-section__title { font-size: 1.05rem; margin-bottom: 0.6rem; }

.review-summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.5rem 2.5rem;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 1.25rem;
    border: 1px solid #efebe5;
}
.review-summary__value { font-size: 2.75rem; font-weight: 800; line-height: 1; color: #111827; }
.review-summary__stars { color: #f59e0b; margin: 0.35rem 0 0.15rem; }
.review-summary__bars { flex: 1 1 220px; display: grid; gap: 0.35rem; }
.review-summary__bars li { display: grid; grid-template-columns: 1rem 1fr 2rem; align-items: center; gap: 0.6rem; font-size: 0.85rem; font-weight: 600; }
.review-bar { height: 6px; border-radius: 6px; background: #f1ede7; overflow: hidden; }
.review-bar span { display: block; height: 100%; border-radius: 6px; background: #f59e0b; }
.review-form { padding: 1.25rem; margin-bottom: 1.5rem; border-radius: 1.25rem; background: #faf8f5; }
.review-item { display: flex; gap: 0.9rem; padding: 1.1rem 0; border-bottom: 1px solid #f1ede7; }
.review-item:last-child { border-bottom: 0; }
.review-item__avatar {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eeedfb;
    color: #1c0fb8;
    font-weight: 800;
}
.review-item__stars { color: #f59e0b; font-size: 0.8rem; margin: 0.15rem 0 0.4rem; }
.shop-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    padding: 2rem 1rem;
    border-radius: 1.25rem;
    background: #faf8f5;
    color: #6b7280;
}
.shop-empty .bi { font-size: 1.6rem; color: #c8743c; }

.nearby-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 0.75rem; }
.nearby-card {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.6rem;
    border-radius: 1rem;
    border: 1px solid #efebe5;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.nearby-card:hover { border-color: #e4ddd3; box-shadow: 0 8px 20px rgba(17, 24, 39, 0.06); }
.nearby-card__photo {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border-radius: 0.75rem;
    overflow: hidden;
    background: #f4f1ec;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cbbfae;
}
.nearby-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.nearby-card__name { display: block; font-weight: 700; color: #111827; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nearby-card:hover .nearby-card__name { color: #1c0fb8; }
.nearby-card__address { display: block; font-size: 0.82rem; color: #6b7280; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nearby-card__distance {
    margin-left: auto;
    flex-shrink: 0;
    padding: 0.2rem 0.55rem;
    border-radius: 50rem;
    background: #f6f3ee;
    font-size: 0.78rem;
    font-weight: 700;
    color: #57534e;
}

.shop-sidebar { display: flex; flex-direction: column; gap: 1.25rem; }
@media (min-width: 992px) {
    .shop-sidebar { position: sticky; top: 100px; }
}
.side-card {
    padding: 1.4rem;
    border-radius: 1.25rem;
    border: 1px solid #efebe5;
    background: #fff;
}
.side-card--app { background: #faf8f5; }
.hours-list li {
    display: flex;
    justify-content: space-between;
    padding: 0.45rem 0.7rem;
    border-radius: 0.6rem;
    color: #4b5563;
}
.hours-list li.is-today { background: #eeedfb; color: #1c0fb8; font-weight: 700; }

.shop-mobile-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1030;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid #efebe5;
    box-shadow: 0 -6px 20px rgba(17, 24, 39, 0.06);
}
@media (max-width: 991.98px) {
    body:has(.shop-mobile-bar) footer { padding-bottom: 80px; }
}
.min-w-0 { min-width: 0; }
.nearby-card > .min-w-0 { flex: 1 1 auto; }

/* Owner dashboard illustration (partials/owner-dashboard-mock) */
.dash-mock {
    position: relative;
    max-width: 420px;
    margin: 0 auto;
    padding: 0 0 2.5rem 1.5rem;
    text-align: left;
    color: #111827;
}
.dash-mock__card {
    padding: 1.4rem;
    border-radius: 1.5rem;
    background: #fff;
    box-shadow: 0 30px 60px rgba(10, 6, 80, 0.35);
    transform: rotate(-2deg);
}
.dash-mock__head { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.1rem; }
.dash-mock__logo {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fbefe3;
    color: #c8743c;
    font-size: 1.15rem;
}
.dash-mock__muted { font-size: 0.78rem; color: #6b7280; }
.dash-mock__tag {
    padding: 0.15rem 0.55rem;
    border-radius: 50rem;
    background: #f3f4f6;
    color: #6b7280;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.dash-mock__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.6rem;
    margin-bottom: 1.1rem;
}
.dash-mock__stats > div { padding: 0.7rem; border-radius: 0.9rem; background: #f8f7f4; }
.dash-mock__value { font-size: 1.3rem; font-weight: 800; line-height: 1.2; margin-top: 0.15rem; }
.dash-mock__up { font-size: 0.7rem; font-weight: 700; color: #16a34a; vertical-align: middle; white-space: nowrap; }
@media (max-width: 575.98px) { .dash-mock__up { display: block; } .dash-mock__value { font-size: 1.15rem; } }
.dash-mock__chart-label { margin-bottom: 0.4rem; }
.dash-mock__chart {
    display: flex;
    align-items: flex-end;
    gap: 5px;
    height: 80px;
    margin-bottom: 1.1rem;
}
.dash-mock__chart span { flex: 1; border-radius: 4px 4px 2px 2px; background: #d9d6fb; }
.dash-mock__chart span.is-last { background: #1c0fb8; }
.dash-mock__member {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid #f1ede7;
    font-size: 0.9rem;
}
.dash-mock__avatar {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #eeedfb;
    color: #1c0fb8;
    font-weight: 800;
}
.dash-mock__stamps { display: flex; gap: 4px; margin-top: 0.35rem; }
.dash-mock__stamps span {
    flex: 1;
    aspect-ratio: 1;
    max-width: 24px;
    border-radius: 50%;
    border: 1.5px dashed #d6d3d1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
}
.dash-mock__stamps span.is-filled { border: 0; background: #c8743c; color: #fff; }
.dash-mock__toast {
    position: absolute;
    left: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.7rem 1rem;
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 16px 36px rgba(10, 6, 80, 0.3);
    font-size: 0.88rem;
    transform: rotate(1.5deg);
}
.dash-mock__toast-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #dcfce7;
    color: #16a34a;
    font-size: 1.1rem;
}
/* On the light for-owners page the shadows can be softer */
.home-section:not(.owners-band) .dash-mock__card { box-shadow: 0 24px 50px rgba(17, 24, 39, 0.12); }
.home-section:not(.owners-band) .dash-mock__toast { box-shadow: 0 12px 30px rgba(17, 24, 39, 0.14); }

/* =================================
   COUNTRY PAGE: city cards
   ================================= */
.city-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
}
.city-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.9rem;
    height: 100%;
    padding: 0.6rem 1rem 0.6rem 0.6rem;
    border: 1px solid #efebe5;
    border-radius: 1.1rem;
    background: #fff;
    color: inherit;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.city-card:hover { transform: translateY(-2px); border-color: #e4ddd3; box-shadow: 0 12px 28px rgba(17, 24, 39, 0.08); }
.city-card__photo {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    border-radius: 0.8rem;
    overflow: hidden;
    background: #f4f1ec;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cbbfae;
    font-size: 1.5rem;
}
.city-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.city-card__body { flex: 1 1 auto; min-width: 0; }
.city-card__name { display: block; font-weight: 800; font-size: 1.1rem; color: #111827; }
.city-card:hover .city-card__name { color: #1c0fb8; }
.city-card__count { display: block; font-size: 0.85rem; color: #6b7280; }
.city-card__arrow { color: #c4bcb0; transition: transform 0.2s, color 0.2s; }
.city-card:hover .city-card__arrow { color: #1c0fb8; transform: translateX(3px); }
/* The three biggest cities get a photo card */
.city-grid { margin-bottom: 1rem; }
@media (min-width: 768px) {
    .city-grid--featured { grid-template-columns: repeat(3, 1fr); }
    .city-card--featured { flex-direction: column; align-items: stretch; padding: 0; overflow: hidden; }
    .city-card--featured .city-card__photo { width: 100%; height: 180px; border-radius: 0; }
    .city-card--featured .city-card__body { padding: 0.9rem 1.1rem 1.1rem; }
    .city-card--featured .city-card__name { font-size: 1.3rem; }
    .city-card--featured .city-card__arrow { position: absolute; right: 1.1rem; bottom: 1.25rem; }
}

/* =================================
   CITY GUIDE PAGES
   ================================= */
.guide-chip.is-active { background: #1c0fb8; border-color: #1c0fb8; color: #fff; }
.guide-entry {
    display: flex;
    gap: 1.25rem;
    padding: 0.8rem;
    border: 1px solid #efebe5;
    border-radius: 1.25rem;
    background: #fff;
}
.guide-entry__photo {
    position: relative;
    flex-shrink: 0;
    width: 240px;
    aspect-ratio: 4 / 3;
    border-radius: 0.9rem;
    overflow: hidden;
    background: #f4f1ec;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cbbfae;
    font-size: 2rem;
}
.guide-entry__photo img { width: 100%; height: 100%; object-fit: cover; }
.guide-entry__rank {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: #1c0fb8;
    font-size: 0.95rem;
    font-weight: 800;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.guide-entry__body { flex: 1 1 auto; min-width: 0; padding: 0.3rem 0.4rem 0.3rem 0; }
.guide-entry__tag {
    padding: 0.2rem 0.6rem;
    border-radius: 50rem;
    background: #f6f3ee;
    color: #57534e;
    font-size: 0.75rem;
    font-weight: 500;
}
@media (max-width: 575.98px) {
    .guide-entry { flex-direction: column; }
    .guide-entry__photo { width: 100%; aspect-ratio: 16 / 9; }
    .guide-entry__body { padding: 0 0.3rem 0.3rem; }
}

/* About page stats */
.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}
.about-stats > div {
    padding: 1.1rem;
    border-radius: 1.1rem;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid #efe7dc;
    backdrop-filter: blur(6px);
}
.about-stats__value { display: block; font-size: 1.9rem; font-weight: 800; color: #1c0fb8; line-height: 1.1; }
.about-stats__label { display: block; font-size: 0.82rem; color: #6b7280; margin-top: 0.2rem; }

/* =================================
   LOGIN / REGISTER
   ================================= */
.auth-panel { display: flex; align-items: center; border-right: 1px solid #f1ede7; }
.auth-panel__inner { position: relative; max-width: 520px; margin: 0 auto; padding: 3rem; }
.auth-panel__owner {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.9rem 1rem;
    border-radius: 1.1rem;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid #efe7dc;
    text-decoration: none;
    backdrop-filter: blur(6px);
    transition: border-color 0.2s, transform 0.2s;
}
.auth-panel__owner:hover { border-color: #1c0fb8; transform: translateY(-1px); }
.auth-form-container h3 { font-size: 1.75rem; }
.auth-form-container .form-floating > .form-control {
    border-color: #e7e2da;
    border-radius: 0.9rem !important;
    background: #fdfcfa;
}
.auth-form-container .form-floating > .form-control:focus {
    border-color: #1c0fb8;
    box-shadow: 0 0 0 0.2rem rgba(28, 15, 184, 0.12);
    background: #fff;
}
.auth-form-container .form-floating > .form-control:focus ~ label { color: #1c0fb8; }
.auth-form-container .btn-outline-dark { border-color: #e7e2da; color: #111827; background: #fff; }
.auth-form-container .btn-outline-dark:hover { border-color: #111827; background: #fff; color: #111827; }
.auth-form-container .text-danger.fw-bold { color: #1c0fb8 !important; }
.auth-form-container .form-check-input:checked { background-color: #1c0fb8; border-color: #1c0fb8; }
/* Grow with the form instead of clipping it (register is taller than the screen on laptops). */
.auth-wrapper { height: auto; min-height: calc(100vh - 83px); overflow: visible; display: flex; }
.auth-wrapper > .container-fluid { flex: 1; }
.auth-wrapper .row { min-height: calc(100vh - 83px); }

/* Real screenshots (exported with their phone frame and transparent edges) */
.app-shot--image { aspect-ratio: auto; border-radius: 0; filter: drop-shadow(0 18px 30px rgba(17, 24, 39, 0.16)); }

/* Loyalty visual: phone + floating stamp card + NFC puck, animated (tap to stamp) */
.loyalty-visual {
    position: relative;
    max-width: 460px;
    margin: 0 auto;
    padding: 0 0 2rem;
}
.loyalty-visual__phone {
    position: relative;
    z-index: 2;
    transform: translate(-16%, -3%) rotate(-5deg);
    width: 250px;
    max-width: 56%;
    margin: 0 auto;
    transform-origin: 50% 80%;
}
.loyalty-visual__phone .app-shot { max-width: 100%; margin: 0; }
.loyalty-visual__screen--stamped { position: absolute; inset: 0; opacity: 0; }
.loyalty-visual__card {
    position: absolute;
    left: 0;
    bottom: 9%;
    width: 50%;
    z-index: 3;
    transform: rotate(-8deg);
}
.loyalty-visual__puck-wrap {
    position: absolute;
    right: 0;
    top: 14%; /* up by the phone's top edge, where its NFC antenna is */
    width: 34%;
    z-index: 1;
}
.loyalty-visual__puck {
    display: block;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 26px rgba(17, 24, 39, 0.28));
}
.loyalty-visual__ripple {
    position: absolute;
    left: 10%;
    right: 10%;
    top: 12%;
    aspect-ratio: 1;
    border-radius: 50%;
    border: 3px solid #1c0fb8;
    opacity: 0;
    pointer-events: none;
}
.loyalty-visual__tap {
    position: absolute;
    top: -7%;
    right: 0;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: rotate(-6deg);
    color: #1c0fb8;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    white-space: nowrap;
}
.loyalty-visual__tap svg {
    width: 100%;
    height: 12px;
    margin-top: 1px;
    fill: none;
    stroke: #d9915a;
    stroke-width: 3;
    stroke-linecap: round;
}

/* The loop: 6s, played only while on screen (.is-playing, set by an IntersectionObserver). */
[data-tap-animation] .loyalty-visual__phone,
[data-tap-animation] .loyalty-visual__screen--stamped,
[data-tap-animation] .loyalty-visual__ripple,
[data-tap-animation] .stamp-card-mini__stamps .is-new {
    animation-duration: 6s;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
    animation-play-state: paused;
}
[data-tap-animation].is-playing * { animation-play-state: running !important; }
[data-tap-animation] .loyalty-visual__phone { animation-name: lv-phone; }
[data-tap-animation] .loyalty-visual__screen--stamped { animation-name: lv-screen; }
[data-tap-animation] .loyalty-visual__ripple { animation-name: lv-ripple; animation-timing-function: ease-out; }
[data-tap-animation] .loyalty-visual__ripple--late { animation-name: lv-ripple-late; }
[data-tap-animation] .stamp-card-mini__stamps .is-new { animation-name: lv-stamp; }

@keyframes lv-phone {
    0%, 12% { transform: translate(-16%, -3%) rotate(-5deg); }
    34%, 64% { transform: translate(8%, 4%) rotate(8deg); } /* lands on the puck, which still peeks out */
    86%, 100% { transform: translate(-16%, -3%) rotate(-5deg); }
}
@keyframes lv-screen {
    0%, 36% { opacity: 0; }
    41%, 80% { opacity: 1; }
    88%, 100% { opacity: 0; }
}
@keyframes lv-ripple {
    0%, 33% { opacity: 0; transform: scale(0.6); }
    35% { opacity: 0.7; transform: scale(0.7); }
    52% { opacity: 0; transform: scale(2.3); }
    100% { opacity: 0; transform: scale(2.3); }
}
@keyframes lv-ripple-late {
    0%, 39% { opacity: 0; transform: scale(0.6); }
    41% { opacity: 0.5; transform: scale(0.7); }
    58% { opacity: 0; transform: scale(2.3); }
    100% { opacity: 0; transform: scale(2.3); }
}
@keyframes lv-stamp {
    0%, 39% { background: #f1f1f4; color: #c4c4cc; transform: scale(1); }
    44% { background: #1c0fb8; color: #fff; transform: scale(1.45); }
    50%, 82% { background: #1c0fb8; color: #fff; transform: scale(1); }
    90%, 100% { background: #f1f1f4; color: #c4c4cc; transform: scale(1); }
}
/* Reduced motion: no movement, just the stamped result. */
@media (prefers-reduced-motion: reduce) {
    [data-tap-animation] * { animation: none !important; }
    [data-tap-animation] .loyalty-visual__screen--stamped { opacity: 1; }
    [data-tap-animation] .loyalty-visual__phone { transform: translate(8%, 4%) rotate(8deg); }
    [data-tap-animation] .stamp-card-mini__stamps .is-new { background: #1c0fb8; color: #fff; }
}

/* The small stamp card from the marketing visuals, in HTML so it stays sharp */
.stamp-card-mini {
    padding: 0.85rem 0.95rem;
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 18px 36px rgba(17, 24, 39, 0.18);
    color: #111827;
}
.stamp-card-mini__name { font-weight: 800; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.01em; line-height: 1.1; }
.stamp-card-mini__label { font-size: 0.55rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #9ca3af; }
.stamp-card-mini__stamps { display: flex; gap: 5px; margin-top: 0.45rem; padding-bottom: 0.55rem; border-bottom: 1px solid #f1ede7; }
.stamp-card-mini__stamps span {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f1f1f4;
    color: #c4c4cc;
    font-size: 0.6rem;
}
.stamp-card-mini__stamps span.is-filled { background: #1c0fb8; color: #fff; }
.stamp-card-mini__reward { font-weight: 700; font-size: 0.8rem; }

/* =================================
   WEB FLYER (/flyer/coffee-shops)
   ================================= */
.flyer-front {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(40% 50% at 85% 15%, rgba(255, 255, 255, 0.12), transparent 70%),
        radial-gradient(45% 55% at 10% 90%, rgba(161, 120, 255, 0.25), transparent 70%),
        #1c0fb8;
}
.flyer-front__logo { filter: drop-shadow(0 12px 30px rgba(0, 0, 0, 0.25)); }
.flyer-steps { display: flex; flex-direction: column; gap: 1.5rem; }
.flyer-steps li { display: flex; gap: 1rem; }
.flyer-steps__num {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.85);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}
.flyer-steps__num--solid { border: 0; background: #1c0fb8; color: #fff; }
.flyer-inside { background: linear-gradient(90deg, #f5ecdf 50%, #f0e6d8 50%); }
@media (max-width: 991.98px) { .flyer-inside { background: #f5ecdf; } }
.flyer-kicker {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #b0453a;
}
.flyer-rule {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.75rem;
    font-size: 0.85rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #374151;
}
.flyer-rule::after { content: ""; flex: 1; height: 1px; background: #cdbfae; }
.flyer-list { display: flex; flex-direction: column; gap: 1.6rem; }
.flyer-list li { display: flex; gap: 1rem; }
.flyer-list__dot {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    margin-top: 0.1rem;
    border-radius: 50%;
    background: #1c0fb8;
    box-shadow: inset 0 0 0 9px #1c0fb8, inset 0 0 0 30px #fff;
}
.flyer-note { padding-top: 1.25rem; border-top: 1px solid #cdbfae; }
.flyer-note > p:first-child { color: #b0453a; }

/* =================================
   LOYALTY GUIDE (/loyalty-guide)
   ================================= */
.flyer-inside.loyalty-guide { background: #f5ecdf; }
.loyalty-guide__section { padding-bottom: 3.5rem; margin-bottom: 3.5rem; border-bottom: 1px solid #cdbfae; scroll-margin-top: 90px; }
/* One column per step on desktop (--cols set inline); each step is a two-row subgrid. */
.loyalty-guide__steps { display: grid; gap: 1.25rem 2rem; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); }
.loyalty-guide__step { display: grid; grid-row: span 2; grid-template-rows: subgrid; }
.loyalty-guide__media { display: flex; flex-direction: column; align-items: center; gap: 1.25rem; }
.loyalty-guide__shot { display: block; width: 100%; max-width: 260px; height: auto; filter: drop-shadow(0 10px 24px rgba(28, 15, 184, 0.12)); }
.loyalty-guide__live {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    width: 100%;
    max-width: 260px;
    aspect-ratio: 1 / 1;
    border-radius: 1.5rem;
    background: #2a1fd6;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
}
.loyalty-guide__live-title { color: #fff; font-size: 1.75rem; font-weight: 800; line-height: 1.15; }
@media (max-width: 991.98px) {
    .loyalty-guide__steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 1rem; }
    .loyalty-guide__media { margin-bottom: 2rem; }
}
.loyalty-guide__note {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border-radius: 1rem;
    background: #fff;
    color: #1c0fb8;
}
.loyalty-guide__note p { color: #374151; }
.loyalty-guide__web {
    padding: 1.5rem;
    border-radius: 1.25rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: rgba(255, 255, 255, 0.85);
}
.loyalty-guide__web-kicker {
    display: block;
    margin-bottom: 0.5rem;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.loyalty-guide__card { padding: 1.5rem; border-radius: 1rem; background: #fff; }
.loyalty-guide__card-icon { font-size: 2.25rem; line-height: 1; color: #1c0fb8; }
.loyalty-guide__card { padding: 1.25rem 1.5rem; border-radius: 1rem; background: #fff; }
/* A plain app screenshot (no device frame baked in), framed to match the others. */
.loyalty-guide__shot--framed { border: 9px solid #111; border-radius: 42px; background: #111; }
.loyalty-guide__tip { padding: 1.25rem 1.5rem; border-radius: 1rem; background: #fff; color: #374151; }
.loyalty-guide__tag {
    display: inline-block;
    margin-bottom: 0.6rem;
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    background: #1c0fb8;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.loyalty-guide__tip--warn .loyalty-guide__tag { background: #b0453a; }
@media (max-width: 575.98px) {
    .loyalty-guide__steps { grid-template-columns: minmax(0, 1fr); }
    .loyalty-guide__shot, .loyalty-guide__live { max-width: 240px; }
    .loyalty-guide__live { aspect-ratio: auto; padding: 1.5rem; }
}

/* Pill and icon buttons keep their label vertically centred even when a flex row
   stretches them to a taller neighbour's height (Bootstrap's inline-block leaves
   the extra space under the text). Not every .btn: some are multi-line labels
   (e.g. the reward choice boxes on the loyalty form). */
.btn.rounded-pill,
.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* =================================
   PASSPORT MISSION STAMPS (partials/passport-stamp)
   ================================= */
.passport-stamp { display: block; height: auto; filter: drop-shadow(0 6px 10px rgba(17, 24, 39, 0.10)); }

/* Scattered collage (homepage passport section) */
.stamp-collage { position: relative; min-height: 440px; }
.stamp-collage > * { position: absolute; width: 150px; transition: transform 0.3s ease; }
.stamp-collage > *:hover { transform: scale(1.08) rotate(0deg) !important; z-index: 5; }
@media (min-width: 768px) {
    .stamp-collage > :nth-child(1) { top: 4%;  left: 30%; width: 190px; transform: rotate(-7deg); z-index: 2; }
    .stamp-collage > :nth-child(2) { top: 0;   left: 2%;  transform: rotate(9deg); }
    .stamp-collage > :nth-child(3) { top: 2%;  left: 66%; transform: rotate(12deg); }
    .stamp-collage > :nth-child(4) { top: 40%; left: 6%;  transform: rotate(-12deg); }
    .stamp-collage > :nth-child(5) { top: 44%; left: 66%; transform: rotate(-6deg); }
    .stamp-collage > :nth-child(6) { top: 50%; left: 36%; transform: rotate(8deg); }
    .stamp-collage > :nth-child(7) { top: 74%; left: 16%; width: 130px; transform: rotate(5deg); }
    .stamp-collage > :nth-child(8) { top: 76%; left: 58%; width: 130px; transform: rotate(-10deg); }
}
@media (max-width: 767.98px) {
    .stamp-collage { min-height: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.6rem; align-items: center; }
    .stamp-collage > * { position: static; width: 100%; }
    .stamp-collage > :nth-child(odd) { transform: rotate(-6deg); }
    .stamp-collage > :nth-child(even) { transform: rotate(6deg); }
}

/* Custom check-in stamp demo (partials/custom-stamp-demo) */
.custom-stamp { max-width: 440px; margin: 0 auto; text-align: center; }
.custom-stamp__visual { position: relative; padding: 2.5rem 0 1rem; }
.custom-stamp__stamp { display: inline-flex; flex-direction: column; align-items: center; gap: 0.6rem; }
.custom-stamp__ring {
    position: relative;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 6px solid var(--stamp-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.3s;
}
.custom-stamp__ring::before {
    content: "";
    position: absolute;
    inset: 12px;
    border-radius: 50%;
    border: 2px dashed var(--stamp-color);
    opacity: 0.7;
    transition: border-color 0.3s;
}
.custom-stamp__logo {
    width: 104px;
    height: 104px;
    border-radius: 50%;
    background: var(--stamp-logo-bg);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 0.95rem;
    line-height: 1.1;
    text-transform: uppercase;
    transition: background 0.3s;
}
.custom-stamp__date { position: absolute; bottom: 26px; font-size: 0.7rem; font-weight: 700; color: var(--stamp-color); transition: color 0.3s; }
.custom-stamp__name { font-weight: 900; letter-spacing: 0.04em; text-transform: uppercase; color: var(--stamp-color); transition: color 0.3s; }
.custom-stamp__callout {
    position: absolute;
    padding: 0.3rem 0.8rem;
    border: 1.5px solid #111827;
    border-radius: 50rem;
    background: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}
.custom-stamp__callout--color { top: 1.2rem; left: 0; }
.custom-stamp__callout--logo { top: 1.2rem; right: 0; }
.custom-stamp__callout--bg { bottom: 1.3rem; left: 0; }
.custom-stamp__swatches { display: flex; justify-content: center; gap: 0.6rem; margin-top: 1rem; }
.custom-stamp__swatch {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 3px solid #fff;
    background: var(--sw);
    box-shadow: 0 0 0 1px #e5e7eb;
    padding: 0;
}
.custom-stamp__swatch.is-active { box-shadow: 0 0 0 2px #111827; }
@media (max-width: 575.98px) {
    .custom-stamp__callout { position: static; display: inline-block; margin: 0.2rem; }
    .custom-stamp__visual { padding-top: 0; }
}

/* Specialty coffee explainer */
.stamp-trio { position: relative; height: 300px; }
.stamp-trio > * { position: absolute; }
.stamp-trio > :nth-child(1) { width: 190px; top: 0; left: 22%; transform: rotate(-8deg); z-index: 2; }
.stamp-trio > :nth-child(2) { width: 150px; top: 40%; left: 60%; transform: rotate(10deg); }
.stamp-trio > :nth-child(3) { width: 150px; top: 52%; left: 4%; transform: rotate(-6deg); }
.specialty-points { display: flex; flex-direction: column; gap: 1rem; }
.specialty-point {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    padding: 1.6rem 1.8rem;
    border: 1px solid #efebe5;
    border-radius: 1.25rem;
    background: #fff;
}
.specialty-point__num {
    flex-shrink: 0;
    font-size: 3.2rem;
    font-weight: 900;
    line-height: 1;
    color: #d9d6fb;
    min-width: 4.2rem;
}
@media (max-width: 575.98px) {
    .specialty-point { flex-direction: column; gap: 0.5rem; padding: 1.25rem; }
    .specialty-point__num { font-size: 2.4rem; }
}
.custom-stamp__logo span { max-width: 70px; }

/* =================================
   NAVBAR v2 (partials/navbar)
   ================================= */
.site-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1rem;
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
}
.site-nav__brand { flex-shrink: 0; display: block; line-height: 0; }
.site-nav__brand img { width: 48px; height: 48px; }

/* One pill: city | search */
.site-nav__pill {
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    max-width: 560px;
    min-width: 0;
    height: 48px;
    border: 1px solid #e5e7eb;
    border-radius: 50rem;
    background: #fff;
    box-shadow: 0 2px 10px rgba(17, 24, 39, 0.05);
    transition: box-shadow 0.2s, border-color 0.2s;
}
.site-nav__pill:focus-within, .site-nav__pill:hover { border-color: #d6d3d1; box-shadow: 0 6px 18px rgba(17, 24, 39, 0.08); }
.site-nav__pill .city-picker { flex-shrink: 0; height: 100%; }
.site-nav__pill .city-selector {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    height: 100%;
    padding: 0 0.5rem 0 1.1rem !important;
    border: 0 !important;
    background: none !important;
    border-radius: 50rem 0 0 50rem;
    font-size: 0.92rem;
    text-decoration: none;
    white-space: nowrap;
}
.site-nav__pill .city-selector::after { margin-left: 0.15rem; color: #9ca3af; }
.site-nav__divider { width: 1px; height: 24px; background: #e5e7eb; flex-shrink: 0; }
.site-nav__search { flex: 1 1 auto; display: flex; align-items: center; gap: 0.5rem; min-width: 0; height: 100%; padding: 0 1.1rem 0 0.85rem; margin: 0; }
.site-nav__search .bi { color: #9ca3af; }
.site-nav__search input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    background: none;
    font-size: 0.95rem;
    color: #111827;
}
.site-nav__search input::-webkit-search-cancel-button { cursor: pointer; }

.site-nav__actions { display: flex; align-items: center; gap: 0.35rem; margin-left: auto; }
.site-nav__actions .nav-link-main { background: none; border: 0; }
.site-nav__login {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.7rem;
    border-radius: 50rem;
    color: #374151;
    font-weight: 600;
    text-decoration: none;
}
.site-nav__login .bi { font-size: 1.45rem; line-height: 1; }
.site-nav__login:hover { color: #1c0fb8; background: #f6f5fe; }
.site-nav__avatar {
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: #1c0fb8;
    color: #fff;
    font-weight: 800;
    margin: 0 0.25rem;
}
.site-nav__toggle {
    width: 42px;
    height: 42px;
    border: 1px solid #e5e7eb;
    border-radius: 50%;
    background: #fff;
    font-size: 1.4rem;
    line-height: 1;
    color: #111827;
}
.site-nav__menu { min-width: 240px; }
.site-nav__menu .dropdown-item,
.site-nav__mobile .dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.55rem 0.8rem;
    font-weight: 600;
    color: #374151;
}
.site-nav__menu .dropdown-item .bi,
.site-nav__mobile .dropdown-item .bi { color: #1c0fb8; font-size: 1.05rem; }
.site-nav__menu .dropdown-item.text-danger .bi { color: inherit; }
.site-nav__menu .dropdown-item:hover,
.site-nav__mobile .dropdown-item:hover { background: #f6f5fe; color: #1c0fb8; }
.site-nav__menu .dropdown-item.active { background: #eeedfb; color: #1c0fb8; }

/* Phones: logo + actions on row one, the pill full width on row two, menu below */
.site-nav__mobile { order: 4; flex-basis: 100%; }
.site-nav__mobile-group { padding: 0.5rem 0; border-bottom: 1px solid #f1ede7; }
.site-nav__mobile-label { padding: 0.25rem 0.8rem; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #9ca3af; }
@media (max-width: 991.98px) {
    .site-nav__brand img { width: 40px; height: 40px; }
    .site-nav__pill { order: 3; flex-basis: 100%; max-width: none; height: 44px; }
    .site-nav__pill .city-selector { padding-left: 0.9rem !important; }
    .site-nav__pill .city-picker__menu { width: calc(100vw - 2rem); max-width: 380px; }
    .site-nav__login .bi { font-size: 1.6rem; }
}
@media (max-width: 400px) {
    .site-nav__pill .city-selector span { max-width: 92px; overflow: hidden; text-overflow: ellipsis; }
}
.site-nav__pill .city-selector { width: auto !important; margin: 0 !important; justify-content: flex-start !important; }
@media (min-width: 992px) {
    .site-nav { flex-wrap: nowrap; }
    .site-nav__pill { flex: 1 1 0; }
}
@media (min-width: 992px) and (max-width: 1199.98px) {
    .site-nav .nav-link-main { padding-left: 0.45rem !important; padding-right: 0.45rem !important; font-size: 0.9rem; }
}

/* Navbar live search results */
.search-suggest {
    position: absolute;
    top: calc(100% + 10px);
    left: -0.85rem;
    right: 0;
    min-width: 340px;
    z-index: 1050;
    padding: 0.4rem;
    border-radius: 1.1rem;
    background: #fff;
    box-shadow: 0 18px 40px rgba(17, 24, 39, 0.14), 0 0 0 1px rgba(17, 24, 39, 0.04);
}
.search-suggest__item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.5rem;
    border-radius: 0.8rem;
    color: inherit;
    text-decoration: none;
}
.search-suggest__item.is-active, .search-suggest__item:hover { background: #f6f5fe; }
.search-suggest__thumb {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 0.65rem;
    overflow: hidden;
    background: #f4f1ec;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cbbfae;
}
.search-suggest__thumb img { width: 100%; height: 100%; object-fit: cover; }
.search-suggest__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.15rem; }
.search-suggest__top { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.search-suggest__name { font-weight: 700; color: #111827; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-suggest__name mark { padding: 0; background: none; color: #1c0fb8; }
.search-suggest__rating { flex-shrink: 0; font-size: 0.82rem; font-weight: 700; color: #111827; }
.search-suggest__rating .bi { color: #f59e0b; }
.search-suggest__meta { display: flex; align-items: center; gap: 0.5rem; font-size: 0.82rem; color: #6b7280; min-width: 0; }
.search-suggest__address { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-suggest__status { flex-shrink: 0; display: inline-flex; align-items: center; gap: 0.3rem; }
.search-suggest__status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #9ca3af; }
.search-suggest__status.is-open { color: #166534; }
.search-suggest__status.is-open::before { background: #22c55e; }
.search-suggest__all {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    margin-top: 0.3rem;
    padding: 0.65rem 0.6rem;
    border: 0;
    border-top: 1px solid #f1ede7;
    border-radius: 0 0 0.8rem 0.8rem;
    background: none;
    color: #1c0fb8;
    font-weight: 700;
    font-size: 0.9rem;
    text-align: left;
}
.search-suggest__all:hover { background: #f6f5fe; }
.search-suggest__empty { padding: 1rem; text-align: center; }
@media (max-width: 991.98px) {
    .search-suggest { left: -2.6rem; right: -0.9rem; min-width: 0; }
}
/* The results drop under the whole city+search pill */
.site-nav__pill { position: relative; }
.search-suggest { left: 0 !important; right: 0 !important; min-width: 0 !important; top: calc(100% + 8px); }
.navbar.sticky-top { z-index: 1035; } /* above the floating Map button (1030), below modals */

/* Merchants: quick "Manage my shop" button in the navbar */
.site-nav__manage {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    height: 40px;
    padding: 0 1rem;
    border: 1.5px solid #1c0fb8;
    border-radius: 50rem;
    background: #eeedfb;
    color: #1c0fb8;
    font-weight: 700;
    font-size: 0.92rem;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s, color 0.2s;
}
.site-nav__manage:hover, .site-nav__manage.is-active { background: #1c0fb8; color: #fff; }
.site-nav__manage .bi { font-size: 1.05rem; }
@media (max-width: 575.98px) {
    .site-nav__manage { height: 42px; padding: 0 0.85rem; }
}

/* =================================
   MERCHANT AREA ON PHONES (partials/merchant-mobile-nav)
   ================================= */
.merchant-mnav {
    z-index: 1030;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #efebe5;
}
.merchant-mnav__top { display: flex; align-items: center; padding: 0.55rem 1rem 0; }
.merchant-mnav__shop {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    max-width: 100%;
    padding: 0;
    border: 0;
    background: none;
    font-weight: 800;
    font-size: 1rem;
    color: #111827;
}
.merchant-mnav__shop-name { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.merchant-mnav__shop .bi-chevron-down { color: #6b7280; font-size: 0.8rem; }
.merchant-mnav__tabs {
    display: grid;
    grid-template-columns: repeat(var(--tabs), minmax(0, 1fr));
    padding: 0.25rem 0.25rem 0;
}
.merchant-mnav__tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    min-width: 0;
    padding: 0.4rem 0.15rem 0.5rem;
    border-bottom: 2.5px solid transparent;
    color: #6b7280;
    font-weight: 600;
    font-size: 0.74rem;
    text-decoration: none;
}
.merchant-mnav__tab .bi { font-size: 1.2rem; line-height: 1; }
.merchant-mnav__tab span { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.merchant-mnav__tab.is-active { color: #1c0fb8; border-bottom-color: #1c0fb8; }

/* Phones: the merchant area doesn't need the city + search pill, so its two rows replace it */
@media (max-width: 767.98px) {
    body:has(.merchant-mnav) .site-nav__pill { display: none; }
}

/* Merchant: My Coffee Shops */
.myshops-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.25rem; }
.myshop-card { display: flex; flex-direction: column; border-radius: 1.25rem; background: #fff; border: 1px solid #efebe5; overflow: hidden; }
.myshop-card__photo { position: relative; aspect-ratio: 16 / 9; background: #f4f1ec; display: flex; align-items: center; justify-content: center; color: #cbbfae; font-size: 2rem; }
.myshop-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.myshop-card__role, .myshop-card__pending { position: absolute; top: 10px; padding: 0.2rem 0.65rem; border-radius: 50rem; font-size: 0.75rem; font-weight: 700; }
.myshop-card__role { left: 10px; background: #fff; color: #1c0fb8; }
.myshop-card__pending { right: 10px; background: #fef3c7; color: #92400e; }
.myshop-card__body { display: flex; flex-direction: column; flex: 1; padding: 1rem 1.15rem 1.1rem; }
.myshop-card__facts { display: flex; flex-wrap: wrap; gap: 0.35rem 1rem; font-size: 0.85rem; font-weight: 600; }
.myshop-card__todo { display: flex; gap: 0.5rem; margin-top: 0.75rem; padding: 0.55rem 0.75rem; border-radius: 0.75rem; background: #fdf6ec; color: #92400e; font-size: 0.83rem; }
.myshop-card__photo.is-empty { aspect-ratio: auto; height: 96px; font-size: 1.6rem; }
.myshop-card__view { flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #6b7280; background: #f6f3ee; text-decoration: none; }
.myshop-card__view:hover { color: #1c0fb8; background: #eeedfb; }
/* Same size for every action on a My Shops card, whichever row it wraps to */
.myshop-card .btn.rounded-pill { height: 36px; padding: 0 0.95rem; font-size: 0.875rem; gap: 0.35rem; }

/* Phones: the city + search row slides away while scrolling down, back on scroll up
   (navbar.is-compact, set by the script in partials/navbar). */
@media (max-width: 991.98px) {
    .site-nav__pill {
        max-height: 60px;
        transition: max-height 0.25s ease, opacity 0.2s ease, margin 0.25s ease, border-color 0.2s ease;
    }
    .navbar.is-compact .site-nav__pill {
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        border-width: 0;
        pointer-events: none;
    }
    .site-nav { transition: row-gap 0.25s ease, padding 0.25s ease; }
    .navbar.is-compact .site-nav { row-gap: 0; padding-top: 0.45rem; padding-bottom: 0.45rem; }
}

/* Phones: Bootstrap's widest gutter (g-5, 3rem) is wider than the container's side padding,
   so those rows stuck out 12px and the page scrolled sideways. */
@media (max-width: 767.98px) {
    .g-5, .gx-5 { --bs-gutter-x: 1.5rem; }
}
/* Card grids never ask for a column wider than the screen (small phones are ~360px). */
.shops-grid { grid-template-columns: repeat(auto-fill, minmax(min(350px, 100%), 1fr)); }
.myshops-grid { grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); }
.nearby-grid { grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); }
.city-grid { grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); }

/* Phones: centred footer (brand, store badges, link columns, copyright + languages) */
@media (max-width: 767.98px) {
    .site-footer { text-align: center; }
    .site-footer .col-lg-4 > a { justify-content: center; }
    .site-footer .col-lg-4 p { margin-left: auto; margin-right: auto; }
    .site-footer .col-lg-4 > .d-flex { justify-content: center; }
    .site-footer .border-top .container { align-items: center !important; text-align: center; }
}
.site-footer__tagline { max-width: 360px; }

/* Phones: a smaller phone and a shorter slide so the tap stays inside the screen,
   and the section clips sideways overflow as a safety net (clip keeps sticky working). */
@media (max-width: 575.98px) {
    .loyalty-visual__phone { width: 210px; max-width: 50%; }
    [data-tap-animation] .loyalty-visual__phone { animation-name: lv-phone-sm; }
    @keyframes lv-phone-sm {
        0%, 12% { transform: translate(-18%, -3%) rotate(-5deg); }
        34%, 64% { transform: translate(14%, 5%) rotate(8deg); }
        86%, 100% { transform: translate(-18%, -3%) rotate(-5deg); }
    }
}
section:has(> .container .loyalty-visual), .flyer-inside { overflow-x: clip; }

/* Homepage on phones: centred headings, intros and buttons; bullet lists stay left-aligned
   (easier to read) but sit centred as a block. */
@media (max-width: 767.98px) {
    .home-center-sm { text-align: center; }
    .home-center-sm .d-flex.flex-wrap,
    .home-center-sm .app-qr,
    .home-center-sm > .container > .d-flex { justify-content: center; }
    .home-center-sm .feature-list,
    .home-center-sm .check-list { display: inline-block; text-align: left; max-width: 100%; }
    /* Steps strip: number above the text */
    .home-steps li { flex-direction: column; align-items: center; gap: 0.5rem !important; }
    /* Owners band: the three benefits as centred mini columns */
    .owners-band .row.g-3 > [class*="col-"] { text-align: center; }
    /* Homepage shop list heading */
    .home-center-sm--row { justify-content: center !important; }
}
@media (max-width: 767.98px) {
    /* Mockups keep their own (left) alignment inside centred sections */
    .home-center-sm .stamp-card-mini,
    .home-center-sm .dash-mock { text-align: left; }
}
