/* ==========================================================================
   01. ROOT VARIABLES & GLOBAL SETUP
   ========================================================================== */
:root {
    --primary-color: #ff6b6b;
    --dark-color: #2d3748;
    --light-bg: #f7fafc;
    --modal-primary: #6b46c1;
    --modal-secondary: #805ad5;
    --modal-border: #e2e8f0;
    --modal-bg-light: #f7fafc;
    --modal-white: #ffffff;
    --modal-text-light: #718096;
}

body {
    -webkit-text-size-adjust: 100%;
    background-color: #fafafa;
    color: var(--dark-color);
}

main, .main-content {
    padding: 15px;
    max-width: 1200px;
    margin: 0 auto;
}

/* ==========================================================================
   02. NAVBAR & NAVIGATION CONTROLS
   ========================================================================== */
.navbar {
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    padding: 1rem 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color) !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-brand i {
    font-size: 1.8rem;
}

.navbar-nav .nav-link {
    color: #666 !important;
    font-weight: 500;
    margin-left: 1.5rem;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
}

.logout-btn {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 0.4rem 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 1rem;
}

.logout-btn:hover {
    background-color: var(--primary-color);
    color: #ffffff;
}

/* ==========================================================================
   03. STICKY TOP HEADER PANEL & SEARCH
   ========================================================================== */
.sticky-header-panel {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 998;
    background: #ffffff;
    padding: 10px 4px;
/*     border-bottom: 1px solid #e2e8f0; */
/*     box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05); */
    margin-bottom: 12px;
        border-radius: 8px;
}

.search-container {
    width: 100%;
    padding: 0 4px;
    box-sizing: border-box;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: #ffffff;
    border-radius: 8px;
    padding: 4px 12px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.search-input-wrapper:focus-within {
    background: #fff;
    border-color: #ff6b6b;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.15);
}

.search-icon {
    color: #718096;
    margin-right: 8px;
    font-size: 16px;
}

.search-input {
    width: 100%;
    border: none;
    background: transparent;
    padding: 8px 0;
    font-size: 15px;
    color: #2d3748;
    outline: none;
}

.search-clear-btn {
    background: none;
    border: none;
    color: #a0aec0;
    cursor: pointer;
    padding: 4px;
    display: none;
    align-items: center;
    justify-content: center;
}

.search-clear-btn:hover {
    color: #4a5568;
}

/* ==========================================================================
   04. NAVIGATION ROW, TABS & FILTERS
   ========================================================================== */
.navigation-filter-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 8px;
    width: 100%;
    padding: 0 4px;
    box-sizing: border-box;
}

.filter-section-title {
    font-size: 11px;
    text-transform: uppercase;
    font-weight: bold;
    color: #888;
    margin-bottom: 6px;
    border-bottom: 1px solid #eee;
    padding-bottom: 2px;
}

.quick-segments-container {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    flex-grow: 1;
    min-width: 0;
    padding: 4px 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.quick-segments-container::-webkit-scrollbar {
    display: none;
}

.segment-chip {
    background: #fff;
    border: 1px solid #e0e0e0;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    user-select: none;
}

.segment-chip.active {
    background: #ff6b6b;
    color: #fff;
    border-color: #ff6b6b;
}

.filter-controls-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.custom-dropdown {
    position: relative;
    display: inline-block;
    min-width: 120px;
}

.dropdown-trigger {
    background: #fff;
    border: 1px solid #ccc;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    width: 100%;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1020;
    width: 260px;
    max-height: 400px;
    overflow-y: auto;
    padding: 12px;
    margin-top: 4px;
}

.dropdown-menu.show {
    display: block;
    padding: 10px;
}

.dropdown-item {
    padding: 4px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    cursor: pointer;
}

.dropdown-item input[type="checkbox"], 
.dropdown-item input[type="radio"] {
    margin: 0;
    cursor: pointer;
}

/* ==========================================================================
   05. SERVICE LINK & BRANCH PRESENTATION
   ========================================================================== */
.menu-link-section {
    background-color: #ffffff;
    border-radius: 1rem;
    padding: 0.8rem;
    margin-bottom: 0.8rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.menu-link-section h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.menu-link-section > p {
    color: #999;
    margin-bottom: 0.6rem;
    font-size: 0.95rem;
}

.menu-link-container {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2rem;
    align-items: flex-start;
    max-width: 100%;
    overflow: hidden;
}

.menu-link-input-group {
    flex: 1;
}

.menu-link-input-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
    font-size: 0.9rem;
}

.url-input-wrapper {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0rem;
}

.url-input-wrapper input {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 0.5rem;
    padding: 0.8rem;
    font-size: 0.9rem;
    background-color: #fafafa;
}

.copy-btn {
    background-color: #ffffff;
    border: 1px solid #ddd;
    padding: 0.8rem 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.preview-btn {
    background-color: var(--primary-color);
    color: #ffffff;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.preview-btn:hover {
    background-color: #E56A2D;
    transform: translateY(-2px);
}

.qr-code-box {
    border: 2px solid var(--primary-color);
    border-radius: 1rem;
    padding: 0.6rem;
    text-align: center;
    background-color: #ffffff;
    flex-shrink: 0;
    min-width: 340px;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.qr-code-image {
    width: 180px;
    height: 180px;
    background-color: var(--primary-color);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 3rem;
    margin: 0 auto 1rem;
    max-width: 100%;
}

.qr-code-image img {
    height: stretch;
}

.qr-code-label {
    color: #999;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0rem;
}

.sub-branches-row {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    flex-wrap: wrap;
}

.sub-branch-pill {
    height: stretch;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.45rem 1rem;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    box-shadow: 0 1px 0 rgba(0,0,0,0.02);
    font-size: 0.86rem;
    color: #333;
    margin-right: 0.6rem;
    cursor: pointer;
}

.sub-branch-pill .sb-name { 
    font-weight: 700; 
    font-size: 0.92rem;
}

.sub-branch-pill .sb-name span { 
    font-size: 11px; 
    font-weight: 500; 
    font-style: italic; 
}

.sub-branch-pill .sb-available { 
    color: #888; 
    font-size: 0.8rem;
}

.more-branches {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px dashed #667eea;
    opacity: 0.9;
}

.more-branches .sb-name {
    color: #667eea;
    font-weight: 600;
}

.sb-edit-btn {
    border: 1px solid #e6e6e6;
    background: #fff;
    color: #333;
    padding: 0.18rem 0.5rem;
    font-size: 0.78rem;
    border-radius: 6px;
    box-shadow: none;
}

/* ==========================================================================
   06. METRIC VIEWS SECTION
   ========================================================================== */
.viewsSection {
    display: flex;
    gap: 10px;
    margin: 8px 0;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.WebpagViews {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-left: 5px solid #2563eb;
    border-radius: 10px;
    padding: 6px 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: all 0.3s ease;
}

.WebpagViews label {
    font-size: 9px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.WebpagViews span {
    font-size: 22px;
    font-weight: 700;
    color: #111827;
    line-height: 1;
}

.WebpagViews:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

/* ==========================================================================
   07. CATEGORY SECTIONS & SUB-GROUPS
   ========================================================================== */
.category-section {
    margin-bottom: 6px;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 6px 0;
    user-select: none;
    -webkit-user-select: none;
}

.category-title {
    margin: 0;
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

.category-toggle-icon {
    font-size: 16px;
    transition: transform 0.2s ease;
    -webkit-transition: -webkit-transform 0.2s ease;
    color: #666;
}

.category-divider {
    border: 0;
    border-top: 1px solid #ddd;
    margin: 4px 0 6px 0;
}

.type-subgroup-container {
    margin-bottom: 20px;
}

.type-subgroup-title {
    font-size: 13px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #555;
    margin: 14px 4px 10px 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.type-subgroup-title.veg {
    color: #2e7d32;
}

.type-subgroup-title.non-veg {
    color: #c62828;
}

.type-indicator-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.type-indicator-dot.veg {
    background-color: #2e7d32;
    box-shadow: 0 0 4px rgba(46, 125, 50, 0.4);
}

.type-indicator-dot.non-veg {
    background-color: #c62828;
    box-shadow: 0 0 4px rgba(198, 40, 40, 0.4);
}

/* ==========================================================================
   08. MENU ITEMS SECTION & SERVICE GRID (4:3 ASPECT RATIO)
   ========================================================================== */
.menu-items-section {
    background-color: #ffffff;
    border-radius: 1rem;
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.menu-items-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    gap: 1rem;
    flex-wrap: nowrap;
}

.menu-items-header h2 {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--dark-color);
    flex-shrink: 0;
}

.menu-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.menu-card {
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    cursor: pointer;
    transition: transform 350ms ease, box-shadow 200ms ease, opacity 200ms ease;
    -webkit-transition: -webkit-transform 350ms ease, box-shadow 200ms ease, opacity 200ms ease;
}

.menu-card:hover {
    transform: translateY(-4px);
    -webkit-transform: translateY(-4px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

.menu-card-image {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    background-color: var(--light-bg);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #ddd;
}

.menu-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.menu-card-content {
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.menu-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 0.25rem;
}

.menu-card-category {
    color: #999;
    font-size: 0.85rem;
    margin-bottom: 0rem;
}

.menu-card-description {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
    line-height: 1.4;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.price {
    color: var(--primary-color);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

/* ==========================================================================
   09. BADGES & OVERLAYS
   ========================================================================== */
.price-badge {
    position: absolute;
    bottom: 4px;
    right: 4px;
    background: rgba(0, 0, 0, 0.75);
    color: #ffffff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    z-index: 2;
    width: fit-content;
}

.special-day-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    background: #ff6b6b;
    color: #ffffff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
    z-index: 2;
}

.availability-days {
    font-size: 12px;
    color: #ff6b6b;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #eee;
}

.available-today {
    border: 2px solid #ff6b6b !important;
    box-shadow: 0 0 10px rgba(255, 107, 107, 0.3);
}

.menu-card.special-day {
    border-left: 4px solid #ff6b6b;
}

.menu-card.faded {
    opacity: 0.80;
}

.out-of-stock-badge {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    -webkit-transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 3;
    white-space: nowrap;
    pointer-events: none;
}

.menu-card.faded .out-of-stock-badge {
    display: block;
}

.special-offer-card {
    border: 2px solid #ff3366 !important;
    animation: offerGlowPulse 2.5s infinite ease-in-out;
}

@keyframes offerGlowPulse { 
    0% {
        box-shadow: 0 0 6px rgba(255, 51, 102, 0.3);
    }
    50% {
        box-shadow: 0 0 18px rgba(255, 51, 102, 0.75);
    }
    100% {
        box-shadow: 0 0 6px rgba(255, 51, 102, 0.3);
    }
}

.special-offer-badge {
    position: absolute;
    top: 4px;
    left: 4px;
    background: #ff3366;
    color: #ffffff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 5px;
    text-transform: uppercase;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.blinking-dot {
    width: 6px;
    height: 6px;
    background-color: #ffffff;
    border-radius: 50%;
    display: inline-block;
    animation: blinkEffect 1s infinite alternate;
}

@keyframes blinkEffect { 
    0% {
        opacity: 0.2;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1.25);
    }
}

/* ==========================================================================
   10. POPUP PRESENTER MODAL (ENHANCED LUXURY SPACING & PADDING)
   ========================================================================== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 24px; /* Generous viewport buffer */
    touch-action: pan-y;
}

.modal-container {
    background: #ffffff;
    border-radius: 24px;
    width: 100%;
    max-width: 550px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    position: relative;
    user-select: none;
    -webkit-user-select: none;
    border: 1px solid rgba(255, 255, 255, 0.8);
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
    overflow: hidden !important;
}

.modal-container::-webkit-scrollbar {
    width: 6px;
}
.modal-container::-webkit-scrollbar-track {
    background: transparent;
}
.modal-container::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    border-radius: 3px;
}

.modal-body-transition {
    animation: premiumEntrance 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes premiumEntrance {
    from { 
        opacity: 0;
        transform: scale(0.95) translateY(15px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    cursor: pointer;
    color: #475569;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(226, 232, 240, 0.8);
    z-index: 1010;
    border-radius: 50%;
    height: 38px;
    width: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.modal-close:hover {
    color: #0f172a;
    background: #ffffff;
    transform: scale(1.05);
}

/* Enforced outer body padding for consistent clean alignment */
.modal-container .modal-body {
    padding: 10px !important; /* Locks robust padding values globally */
    box-sizing: border-box;
}

.modal-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 4px;
/*     gap: 16px; */
}

.modal-title {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.025em;
    color: #0f172a;
    margin: 0;
    line-height: 1.25;
}

.modal-price {
    font-size: 18px;
    font-weight: 700;
    color: #ff6b6b;
    white-space: nowrap;
    line-height: 1.25;
    position: absolute;
    bottom: 16px;
    right: 16px;
    background: white;
    border-radius: 6px;
    padding: 2px 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.modal-meta-tag {
    display: inline-block;
    background: #f1f5f9;
    color: #475569;
    padding: 6px 14px;
    border-radius: 9999px;
    font-size: 12px;
    margin-right: 4px;
    margin-bottom: 2px;
    font-weight: 600;
    border: 1px solid #e2e8f0;
}

.modal-meta-tag.food-type-tag {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.modal-description {
    color: #475569;
    line-height: 1.65;
    font-size: 10px;
    margin-top: 4px;
    margin-bottom: 8px;
}

.modal-detail-row {
    border-top: 1px solid #f1f5f9;
    padding: 6px 0; /* Expanded top/bottom limits inside detailed lists */
    margin: 0;
    font-size: 14px;
    color: #475569;
    display: block;
    width: 100%;
}

.modal-detail-row strong {
    color: #0f172a;
    font-weight: 700;
}

.modal-ingredient-tag {
    display: inline-block;
    background: #f8fafc;
    color: #334155;
    padding: 4px 6px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 500;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.modal-ingredient-tag:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.modal-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    -webkit-transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    z-index: 1005;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-nav-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.08);
    -webkit-transform: translateY(-50%) scale(1.08);
}

.modal-prev-btn {
    left: -76px;
}

.modal-next-btn {
    right: -76px;
}

/* ==========================================================================
   11. DYNAMIC PRESENTATION IMAGE SLIDER (4:3 ASPECT RATIO)
   ========================================================================== */
.modal-image-slider-container {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3; /* Locks details popup slider ratio strictly to 4:3 */
    height: auto !important;
    overflow: hidden;
    border-radius: 16px;
    margin-bottom: 10px; /* Provides spacing before text items start */
    cursor: pointer;
    background: #0f172a;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.4);
}

.modal-image-slider-container:hover .slider-arrow {
    opacity: 1;
    transform: translateY(-50%) scale(1);
}

.modal-slides-wrapper {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-img-slide {
    width: 100%;
    height: 100%;
    object-fit: cover;
    flex-shrink: 0;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%) scale(0.9);
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1006;
    opacity: 0;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.slider-arrow i {
    font-size: 13px;
    color: #ffffff;
}

.slider-arrow:hover {
    background: rgba(15, 23, 42, 0.85);
    transform: translateY(-50%) scale(1.05);
}

.slider-prev {
    left: 12px;
}

.slider-next {
    right: 12px;
}

.slider-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 1007;
    background: rgba(15, 23, 42, 0.4);
    padding: 4px 8px;
    border-radius: 9999px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.slider-dot {
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
}

.slider-dot.active {
    background: #ffffff;
    transform: scale(1.2);
    width: 14px;
    border-radius: 3px;
}

.modal-image-slider-container .out-of-stock-badge {
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 11px;
}

/* ==========================================================================
   12. ADMIN INTERACTIVE ACTIONS (DRAG, TOP, EDIT & DELETE)
   ========================================================================== */
.addItemsDiv {
    display: flex;
}

.add-item-btn {
    background-color: var(--primary-color);
    color: #ffffff;
    border: none;
    padding: 0.4rem 10px;
    border-radius: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    height: fit-content;
}

.add-item-btn:hover {
    background-color: #E56A2D;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 122, 61, 0.3);
}

.edit-btn {
    flex: 1;
    border: none;
    padding: 0.6rem 0.8rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    background-color: #FFE5D3;
    color: var(--primary-color);
    white-space: nowrap;
}

.edit-btn:hover {
    background-color: #FFD4B3;
}

.delete-badge {
    position: absolute;
    bottom: 4px;
    left: 4px;
    background: rgba(255,255,255,0.95);
    color: #E74C3C;
    padding: 6px 8px;
    border-radius: 8px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    font-size: 1rem;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.menu-card.dragging {
    opacity: 0.4;
    border: 2px dashed #ff6b6b;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    z-index: 5;
    cursor: grabbing;
}

.top-btn {
    margin-top: 8px;
    padding: 6px 10px;
    font-size: 13px;
    background: #ff9800;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.top-btn:hover {
    background: #f57c00;
}

#demoHand {
    position: fixed;
    font-size: 28px;
    z-index: 9999;
    pointer-events: none;
    display: none;
    transition: transform 0.7s ease;
}

#toggleReorder, #saveOrder {
    padding: 8px 14px;
    margin-bottom: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

#toggleReorder {
    background: #3f51b5;
    color: #ffffff;
    margin: 0px 10px;
    font-weight: 600;
}

#toggleReorder:hover {
    background: #303f9f;
}

#saveOrder {
    background: #4caf50;
    color: #ffffff;
}

#saveOrder:hover {
    background: #388e3c;
}

/* ==========================================================================
   13. ADD/EDIT CONFIGURATION MODAL & FORMS
   ========================================================================== */
.item-modal .modal-content {
    border: none;
    border-radius: 20px;
    box-shadow: 0 20px 40px -12px rgba(107, 70, 193, 0.2);
    overflow: hidden;
}

.item-modal .modal-header {
    background: linear-gradient(135deg, var(--modal-primary) 0%, var(--modal-secondary) 100%);
    padding: 1.2rem 1.5rem;
    border: none;
}

.item-modal .modal-header .modal-title {
    color: #ffffff;
    font-weight: 600;
    font-size: 1.3rem;
}

.item-modal .modal-header .btn-close {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    filter: brightness(0) invert(1);
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.item-modal .modal-body { 
    padding: 1.5rem; 
    background: var(--modal-white); 
}

.item-form .form-label {
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--modal-text-light);
    margin-bottom: 0.2rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.item-form .form-control,
.item-form .form-select {
    border: 1.5px solid var(--modal-border);
    border-radius: 12px;
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.item-form .form-control:focus,
.item-form .form-select:focus {
    border-color: var(--modal-primary);
    box-shadow: 0 0 0 3px rgba(107, 70, 193, 0.1);
    outline: none;
}

.category-row-wrapper {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
}

.category-select-search {
    flex: 2;
    position: relative;
}

.category-search-input {
    width: 100%;
    border: 1.5px solid var(--modal-border);
    border-radius: 12px;
    padding: 0.6rem 1rem;
}

.category-dropdown-list {
    position: absolute;
    top: 105%;
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1.5px solid var(--modal-border);
    border-radius: 14px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1050;
    display: none;
}

.category-dropdown-list.show { 
    display: block; 
}

.category-option {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    cursor: pointer;
    border-bottom: 1px solid #f0eef8;
}

.category-option:hover { 
    background: var(--modal-bg-light); 
    color: var(--modal-primary); 
}

.custom-category-inline {
    flex: 1;
    display: none;
}

.custom-category-inline.show { 
    display: block; 
}

.serve-wrapper {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
}

.serve-select { 
    flex: 2; 
}

.serve-custom-input { 
    flex: 1; 
    display: none; 
}

.serve-custom-input.show { 
    display: block; 
}

.day-checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem 1.5rem;
    background: var(--modal-white);
    padding: 0.8rem 0.5rem;
    border-radius: 12px;
    margin-top: 0.3rem;
}

.day-checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.9rem;
}

.day-checkbox-item input[type="checkbox"] { 
    accent-color: var(--modal-primary); 
}

.day-time-options {
    margin-top: 1rem;
    padding: 0.8rem;
    background: #f1ecfe;
    border-radius: 14px;
}

.time-range-fields {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.7rem;
    align-items: center;
}

.availability-options {
    background: var(--modal-bg-light);
    border-radius: 12px;
    padding: 0.8rem;
    margin-top: 0.5rem;
    border: 1.5px solid var(--modal-border);
}

.availability-options.hidden { 
    display: none; 
}

.tag-input-wrapper {
    border: 1.5px solid var(--modal-border);
    border-radius: 12px;
    padding: 0.4rem 0.6rem;
    background: var(--modal-white);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.3rem;
}

.tag-input-wrapper:focus-within { 
    border-color: var(--modal-primary); 
}

.ingredient-tag {
    background: linear-gradient(135deg, #e0d7fc, #c7e0ff);
    border-radius: 30px;
    padding: 0.2rem 0.8rem 0.2rem 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #1a202c;
    border: 1px solid #b09bdd;
}

.ingredient-tag .remove-tag {
    cursor: pointer;
    background: #ffffff;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--modal-primary);
    border: 1px solid #ccc;
}

.ingredient-input-inline {
    border: none; 
    outline: none; 
    flex: 1; 
    min-width: 130px; 
    background: transparent;
}

.image-upload-container {
    background: var(--modal-bg-light);
    border-radius: 16px;
    padding: 1rem;
    border: 1.5px solid var(--modal-border);
    position: relative;
}

.dropzone {
    border: 2px dashed var(--modal-border);
    border-radius: 14px;
    padding: 0.8rem;
    text-align: center;
    background: var(--modal-white);
    cursor: pointer;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.dropzone:hover { 
    border-color: #ccc; 
    background: #ffffff; 
}

.dropzone img { 
    max-width: 100%; 
    height: auto; 
    display: block; 
    margin: 0 auto 8px; 
}

.dropzone .dz-text { 
    font-size: 0.95rem; 
}

.default-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #888;
}

.default-preview i { 
    font-size: 2.8rem; 
    color: #aaa; 
}

.default-preview span { 
    font-size: 0.9rem; 
}

.default-preview small { 
    font-size: 0.7rem; 
    color: #aaa; 
}

.image-preview {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    display: none;
    object-fit: cover;
    border: 2px solid #ffffff;
}

.delete-image-icon {
    position: absolute;
    top: 6px;
    right: 6px;
    background: rgba(255,255,255,0.9);
    color: #c53030;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 1px solid #fbb;
    z-index: 10;
}

.delete-image-icon:hover { 
    background: #ffe6e6; 
}

/* ==========================================================================
   14. IMAGE GALLERY SELECTOR MODAL
   ========================================================================== */
.image-select-modal .modal-content {
    border-radius: 20px;
    overflow: hidden;
}

.image-select-modal .modal-header {
    background: linear-gradient(135deg, var(--modal-primary) 0%, var(--modal-secondary) 100%);
    padding: 1rem 1.5rem;
    border: none;
}

.image-select-modal .modal-header .modal-title {
    color: #ffffff;
    font-weight: 600;
    font-size: 1.1rem;
}

.image-select-modal .modal-body {
    padding: 1.5rem;
}

.image-option-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.image-option-btn {
    flex: 1;
    padding: 0.8rem;
    border: 2px solid var(--modal-border);
    border-radius: 12px;
    background: #ffffff;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.image-option-btn:hover {
    border-color: var(--modal-primary);
    background: var(--modal-bg-light);
    transform: translateY(-2px);
}

.image-option-btn i {
    font-size: 1.5rem;
    display: block;
    margin-bottom: 0.5rem;
    color: var(--modal-primary);
}

.image-option-btn span {
    font-size: 0.9rem;
    font-weight: 500;
}

.stock-search-box {
    position: relative;
    margin-bottom: 1rem;
}

.stock-search-box input {
    width: 100%;
    padding: 0.6rem 1rem 0.6rem 2.5rem;
    border: 1.5px solid var(--modal-border);
    border-radius: 12px;
    font-size: 0.9rem;
}

.stock-search-box i {
    position: absolute;
    left: 0.8rem;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

.stock-images-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
    max-height: 400px;
    overflow-y: auto;
    padding: 0.5rem;
}

.stock-image-item {
    position: relative;
    cursor: pointer;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    aspect-ratio: 1;
    height: fit-content;
}

.stock-image-item:hover {
    transform: scale(1.02);
}

.stock-image-item.selected {
    border-color: var(--modal-primary);
    box-shadow: 0 0 0 2px rgba(107, 70, 193, 0.2);
}

.stock-image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.stock-image-item .check-mark {
    position: absolute;
    top: 5px;
    right: 5px;
    background: var(--modal-primary);
    color: #ffffff;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    display: none;
}

.stock-image-item.selected .check-mark {
    display: flex;
}

.loading-spinner {
    text-align: center;
    padding: 2rem;
    color: var(--modal-primary);
}

.stock-modal-footer {
    padding: 1rem;
    border-top: 1px solid var(--modal-border);
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

#stockImageSearchInput {
    padding-right: 2.5rem;
}

.clear-search {
    position: absolute;
    right: 0.8rem;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #999;
    display: none;
}

.clear-search.show {
    display: block;
}

/* ==========================================================================
   15. IMAGE CROPPER CONTROL OVERRIDES
   ========================================================================== */
.cropper-toolbar .btn-group button.active {
    background-color: var(--modal-primary) !important;
    color: #ffffff !important;
    border-color: var(--modal-primary) !important;
}

.cropper-toolbar .btn-group button {
    border: 1px solid var(--modal-border);
    transition: all 0.2s ease;
}

/* ==========================================================================
   16. OTHER UTILITIES & HELPERS
   ========================================================================== */
.hidden { 
    display: none; 
}

.modal-open {
    overflow: hidden !important;
    padding-right: 0 !important;
}

/* ==========================================================================
   17. GLOBAL RESPONSIVE ADJUSTMENTS & TOUCH OPTIMIZATIONS
   ========================================================================== */
@media (max-width: 768px) {
    .addItemsDiv {
        flex-direction: column;
    }

    .menu-link-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .menu-link-input-group {
        width: 100%;
    }

    .url-input-wrapper {
        display: flex;
        gap: 0.5rem;
        margin-bottom: 0rem;
    }

    .url-input-wrapper input {
        flex: 1;
        min-width: 0;
    }

    .copy-btn {
        width: auto;
        flex-shrink: 0;
    }

    .preview-btn {
        width: 100%;
    }

    .qr-code-box {
        padding: 0.5rem 1.5rem;
        min-width: auto;
        margin: 0 auto;
    }

    .qr-code-image {
        width: 150px;
        height: 150px;
        font-size: 2.5rem;
    }

    .qr-code-image img {
        height: 150px;
    }

    .menu-items-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.4rem;
    }

    .menu-items-header {
        flex-direction: row;
        align-items: flex-start;
    }

    .menu-items-header .add-item-btn {
        justify-content: center;
    }

    .filter-buttons {
        gap: 0.4rem;
    }

    .filter-btn {
        padding: 0.4rem 0.6rem;
        font-size: 0.85rem;
    }

    .menu-card-image {
        height: auto;
        width: auto;
    }

    .menu-card-title {
        font-size: 0.8rem;
    }

    .ingredient-tag {
        padding: 0.1rem 0.2rem;
        font-size: 0.8rem;
    }

    .menu-items-section {
        padding: 2px;
    }

    .price-badge {
        font-size: 0.6rem;
    }

    .edit-btn, .delete-badge {
        padding: 0.2rem 0.4rem;
        font-size: 0.8rem;
        gap: 0.2rem;
    }
    
    .delete-badge {
        padding: 0.4rem 0.4rem;
    }

    .card-actions {
        gap: 0.2rem;
    }

    .menu-link-section h2 {
        font-size: 1.6rem;
    }

    .menu-items-header h2 {
        font-size: 1.6rem;
    }

    .main-content {
        padding: 1rem 0;
    }

    .main-content .container-lg {
        padding: 4px !important; 
    }

    .modal-overlay {
        padding: 12px;
        align-items: center;
    }

    .modal-container {
        max-height: 90vh;
        border-radius: 20px 20px 20px 20px;
        animation: premiumMobileEntrance 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
    }

    /* Keep comfortable mobile-adapted internal modal margins */
    .modal-container .modal-body {
        padding: 10px !important;
    }

    @keyframes premiumMobileEntrance {
        from { 
            opacity: 0;
            transform: translateY(100%);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .modal-nav-btn {
        display: none !important;
    }

    .modal-close {
        top: 10px;
        right: 10px;
    }
}

@media (max-width: 480px) {
    .custom-dropdown {
        width: 100%;
    }
}

/* Apple Safari Layout & Render Hardware Acceleration Fixes */
@supports (-webkit-touch-callout: none) {
    .menu-card {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }

    .menu-card:hover {
        transform: none;
    }

    .modal-container {
        -webkit-overflow-scrolling: touch;
    }

    .menu-card-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        -webkit-transform: translateZ(0);
    }

    .price-badge,
    .delete-badge,
    .special-day-badge,
    .special-offer-badge {
        -webkit-transform: translateZ(0);
    }

    .modal-overlay {
        height: -webkit-fill-available;
    }
}

/* ==========================================================================
   05. VISITOR SERVICES & BUSINESS DETAILS STYLES
   ========================================================================== */
/* Business Profile Dashboard Styles */
.business-profile-container {
/*     max-width: 1200px; */
    width: stretch;
    margin: 20px auto 0px auto;
    padding: 0 15px;
    font-family: 'Outfit', 'Inter', sans-serif;
}

.business-hero-banner {
    position: relative;
    height: 280px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}

.business-hero-banner .banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.business-hero-banner .banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.5));
}

/* Rating Banner Overlay */
.banner-rating-overlay {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    padding: 10px 16px;
    color: #fff;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.banner-rating-overlay .rating-num {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.banner-rating-overlay .stars-col {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.banner-rating-overlay .stars-row {
    color: #fbbf24;
    font-size: 0.85rem;
    display: flex;
    gap: 2px;
}

.banner-rating-overlay .ratings-count {
    font-size: 0.75rem;
    color: #cbd5e1;
    font-weight: 500;
}

/* Status Banner Overlay */
.banner-status-overlay {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(34, 197, 94, 0.9);
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.banner-status-overlay.closed {
    background: rgba(239, 68, 68, 0.9);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.banner-status-overlay .status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #fff;
    display: inline-block;
    animation: pulse-dot 1.5s infinite;
}

@keyframes pulse-dot {
    0% { transform: scale(0.95); opacity: 0.5; }
    50% { transform: scale(1.15); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.5; }
}

.business-profile-header {
    display: flex;
    align-items: flex-end;
    margin-top: -34px;
    padding: 0 30px;
    margin-bottom: 30px;
    position: relative;
    z-index: 2;
}

/* Profile Logo Slider */
.profile-logo-wrapper.logo-slider-container {
    width: 120px;
    height: 120px;
    border-radius: 20px;
    background: #fff;
    padding: 6px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.profile-logo-slide-img {
    position: absolute;
    top: 6px;
    left: 6px;
    width: calc(100% - 12px);
    height: calc(100% - 12px);
    object-fit: cover;
    border-radius: 14px;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.profile-logo-slide-img.active {
    opacity: 1;
    z-index: 1;
}

.profile-logo-fallback {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    border-radius: 14px;
}

.profile-name-section {
    margin-left: 24px;
    padding-bottom: 10px;
}

.name-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    position: relative;
}

.business-title {
    font-size: 2rem;
    font-weight: 800;
    color: #1e293b;
    margin: 0;
}

.verified-badge {
    background-color: #dbeafe;
    color: #1d4ed8;
/*     padding: 4px 12px; */
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
        position: absolute;
    right: -20px;
    top: 4px;
}

.business-category-badge {
    color: #64748b;
    font-size: 1rem;
    margin: 5px 0 0 0;
    font-weight: 500;
}

.business-info-grid {
    display: block;
    margin-bottom: 0px;
}

@media (max-width: 900px) {
    .business-profile-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-top: -50px;
    }
    .profile-name-section {
        margin-left: 0;
        margin-top: 15px;
    }
    .name-row {
        justify-content: center;
    }
    .banner-rating-overlay {
        position: absolute;
        top: 12px;
        right: 12px;
        padding: 6px 10px;
        gap: 8px;
        border-radius: 10px;
        margin: 0;
        width: auto;
        box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    }
    .banner-rating-overlay .rating-num {
        font-size: 1.4rem;
    }
    .banner-rating-overlay .stars-row {
        font-size: 0.7rem;
        gap: 1px;
    }
    .banner-rating-overlay .ratings-count {
        font-size: 0.65rem;
    }
    .banner-status-overlay {
        position: absolute;
        bottom: 12px;
        right: 12px;
        padding: 4px 10px;
        font-size: 0.75rem;
        border-radius: 15px;
        margin: 0;
        width: auto;
        justify-content: flex-start;
        box-shadow: 0 4px 10px rgba(34, 197, 94, 0.2);
    }
    .banner-status-overlay.closed {
        box-shadow: 0 4px 10px rgba(239, 68, 68, 0.2);
    }
    .business-hero-banner {
        height: 180px;
        min-height: 180px;
    }
}

.profile-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    margin-bottom: 25px;
    border: 1px solid #f1f5f9;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
}

.card-section-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #0f172a;
    margin-top: 0;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 10px;
}

.about-description {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #475569;
    text-align: justify;
    margin-bottom: 25px;
}

/* Integrated Contact & Location Inside About Box */
.about-contact-section {
    border-top: 1px solid #f1f5f9;
    padding-top: 25px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.contact-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: #eff6ff;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.contact-text strong {
    font-size: 0.9rem;
    color: #64748b;
    display: block;
    margin-bottom: 3px;
}

.contact-text p {
    margin: 0;
    font-size: 1.05rem;
    color: #1e293b;
    font-weight: 600;
}

.contact-link {
    color: #2563eb;
    text-decoration: none;
}

.contact-link:hover {
    text-decoration: underline;
}

.social-connect-container {
    margin-top: 25px;
    border-top: 1px solid #f1f5f9;
    padding-top: 20px;
}

.social-icon-row {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

.social-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.social-btn:hover {
    transform: scale(1.1);
    filter: brightness(0.95);
}

.social-btn.facebook { background: #1877f2; }
.social-btn.instagram { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.social-btn.telegram { background: #229ed9; }
.social-btn.youtube { background: #ff0000; }

/* Gallery Showcase & Overlays */
.profile-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

@media (max-width: 600px) {
    .profile-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 1;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-hover-overlay {
    opacity: 1;
}

.view-service-btn {
    background: #fff;
    color: #0f172a;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.gallery-more-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.7);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    transition: background 0.3s ease;
}

.gallery-item.more-overlay-container:hover .gallery-more-overlay {
    background: rgba(15, 23, 42, 0.85);
}

.rating-summary-wrapper {
    display: flex;
    align-items: center;
    gap: 24px;
}

.rating-score-box {
    text-align: center;
    flex-shrink: 0;
}

.rating-large-score {
    font-size: 3.5rem;
    font-weight: 800;
    color: #0f172a;
    display: block;
    line-height: 1;
}

.stars-row {
    color: #fbbf24;
    font-size: 1rem;
    margin: 8px 0;
}

.reviews-count {
    font-size: 0.8rem;
    color: #64748b;
    display: block;
}

.rating-progress-container {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rating-progress-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: #475569;
}

.rating-progress-bar span {
    width: 25px;
    flex-shrink: 0;
}

.progress-bar-bg {
    flex-grow: 1;
    height: 8px;
    background: #f1f5f9;
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: #fbbf24;
    border-radius: 10px;
}

/* Bottom Map Section */
.bottom-map-container {
    max-width: 1200px;
/*     margin: 30px auto 40px auto; */
    padding: 0 15px;
}

.bottom-map-card {
    background: #fff;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    border: 1px solid #f1f5f9;
}

#map {
    height: 350px;
    border-radius: 12px;
    width: 100%;
    z-index: 1;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* Custom pulsing marker */
.custom-pulsing-marker {
    background-color: #2563eb;
    border-radius: 50%;
    border: 3px solid #fff;
    width: 18px;
    height: 18px;
    position: relative;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

.custom-pulsing-marker::after {
    content: '';
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(37, 99, 235, 0.4);
    position: absolute;
    top: -12px;
    left: -12px;
    animation: pulse 1.8s infinite ease-out;
}

@keyframes pulse {
    0% { transform: scale(0.5); opacity: 1; }
    100% { transform: scale(1.6); opacity: 0; }
}

/* Gallery Modal Layout Styles */
.gallery-slides-container {
    position: relative;
    width: 100%;
    height: 500px;
    background: #090d16;
    overflow: hidden;
    border-radius: 12px;
}

.gallery-slides-wrapper {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.gallery-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.gallery-slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.85);
    color: #fff;
    padding: 15px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    backdrop-filter: blur(5px);
}