/*
 * Amwaj Gates & Merchants - Frontend Styles
 * Version: 3.2.0
 *
 * - Sub-gates in dedicated row BELOW the main gates bar
 * - Venue counts on parent gate pills + sub-gate pills
 * - Mobile-responsive: smaller pills & icons on small screens
 * - Category filter hidden per client request
 * - Primary: #2C4795, Accent: #74C3D5, BG: #F1EDE5
 */

/* ========================================
   CSS Variables & Base
   ======================================== */
:root {
    --amwaj-primary: #2C4795;
    --amwaj-accent: #74C3D5;
    --amwaj-bg: #F1EDE5;
    --amwaj-text: #000000;
    --amwaj-text-light: rgba(0,0,0,0.6);
    --amwaj-white: #ffffff;
    --amwaj-gray-100: #f3f4f6;
    --amwaj-gray-200: #e5e7eb;
    --amwaj-gray-300: #d1d5db;
    --amwaj-gray-500: #6b7280;
    --amwaj-radius-sm: 8px;
    --amwaj-radius-md: 12px;
    --amwaj-radius-lg: 16px;
    --amwaj-radius-full: 9999px;
    --amwaj-shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --amwaj-shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
    --amwaj-shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
    --amwaj-transition: 200ms ease-in-out;
    --amwaj-font-heading: 'Syne', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --amwaj-font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Use inline style variables from PHP when available */
.amwaj-gates-section,
.amwaj-merchants-section {
    --amwaj-primary: var(--amwaj-primary, #2C4795);
    --amwaj-accent: var(--amwaj-accent, #74C3D5);
    --amwaj-bg: var(--amwaj-bg, #F1EDE5);
}

/* ========================================
   Typography
   ======================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Syne:wght@400;500;600;700;800&display=swap');

/* ========================================
   Community Wrapper
   ======================================== */
.amwaj-community-wrapper {
    max-width: 1280px;
    margin: 0 auto;
    padding: 32px 16px;
    font-family: var(--amwaj-font-body);
}

@media (min-width: 640px) {
    .amwaj-community-wrapper {
        padding: 48px 32px;
    }
}

@media (min-width: 1024px) {
    .amwaj-community-wrapper {
        padding: 48px 48px;
    }
}

.amwaj-no-data {
    text-align: center;
    color: var(--amwaj-gray-500);
    padding: 40px 20px;
    font-family: var(--amwaj-font-body);
    font-size: 16px;
}

/* ========================================
   GATES SECTION - Filter Bar + Sub-gates Row
   ======================================== */
.amwaj-gates-section {
    margin-bottom: 24px;
    position: relative;
}

@media (min-width: 640px) {
    .amwaj-gates-section {
        margin-bottom: 32px;
    }
}

/* ========================================
   FILTER BAR - Scrollable with arrows
   ======================================== */
.amwaj-gates-filter-bar {
    display: flex;
    align-items: center;
    gap: 0;
    position: relative;
}

/* Left/Right Arrow Buttons */
.amwaj-filter-arrow {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--amwaj-white);
    border: 1px solid var(--amwaj-gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--amwaj-primary);
    cursor: pointer;
    transition: all var(--amwaj-transition);
    padding: 0;
    z-index: 5;
    -webkit-tap-highlight-color: transparent;
    box-shadow: var(--amwaj-shadow-sm);
}

@media (min-width: 640px) {
    .amwaj-filter-arrow {
        width: 36px;
        height: 36px;
    }
}

.amwaj-filter-arrow:hover {
    background: var(--amwaj-primary);
    color: var(--amwaj-white);
    border-color: var(--amwaj-primary);
}

.amwaj-filter-arrow:disabled {
    opacity: 0.3;
    cursor: default;
    pointer-events: none;
}

.amwaj-filter-arrow svg {
    width: 12px;
    height: 12px;
}

@media (min-width: 640px) {
    .amwaj-filter-arrow svg {
        width: 16px;
        height: 16px;
    }
}

/* Scrollable container */
.amwaj-filter-scroll {
    flex: 1;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    -ms-overflow-style: none;
    scrollbar-width: none;
    padding: 4px 6px;
    margin: 0 4px;
    position: relative;
}

@media (min-width: 640px) {
    .amwaj-filter-scroll {
        padding: 6px 8px;
        margin: 0 6px;
    }
}

.amwaj-filter-scroll::-webkit-scrollbar {
    display: none;
}

/* Pills row */
.amwaj-filter-pills {
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    min-width: max-content;
}

@media (min-width: 640px) {
    .amwaj-filter-pills {
        gap: 10px;
    }
}

/* ========================================
   FILTER PILLS - Individual gate buttons
   (Mobile-first: smaller by default)
   ======================================== */
.amwaj-filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 6px 10px;
    border-radius: var(--amwaj-radius-full);
    font-family: var(--amwaj-font-body);
    font-weight: 500;
    font-size: 10px;
    letter-spacing: 0.02em;
    border: 1px solid var(--amwaj-gray-200);
    background: var(--amwaj-white);
    color: var(--amwaj-text-light);
    cursor: pointer;
    transition: all var(--amwaj-transition);
    white-space: nowrap;
    flex-shrink: 0;
    min-height: 30px;
    -webkit-tap-highlight-color: transparent;
    box-shadow: var(--amwaj-shadow-sm);
    position: relative;
}

@media (min-width: 640px) {
    .amwaj-filter-pill {
        padding: 10px 22px;
        font-size: 14px;
        gap: 8px;
        min-height: 42px;
    }
}

.amwaj-filter-pill:hover {
    background: var(--amwaj-gray-100);
    border-color: var(--amwaj-gray-300);
}

/* Active pill */
.amwaj-filter-pill.amwaj-filter-pill-active {
    background: var(--amwaj-primary);
    color: var(--amwaj-white);
    border-color: var(--amwaj-primary);
    box-shadow: var(--amwaj-shadow-md);
}

.amwaj-filter-pill.amwaj-filter-pill-active:hover {
    opacity: 0.9;
    background: var(--amwaj-primary);
}

.amwaj-filter-pill.amwaj-filter-pill-active .amwaj-filter-pill-icon {
    color: var(--amwaj-white);
    opacity: 1;
}

.amwaj-filter-pill.amwaj-filter-pill-active .amwaj-filter-pill-name {
    color: var(--amwaj-white);
    font-weight: 600;
}

.amwaj-filter-pill.amwaj-filter-pill-active .amwaj-filter-pill-venues {
    color: rgba(255,255,255,0.8);
}

.amwaj-filter-pill.amwaj-filter-pill-active .amwaj-filter-pill-chevron {
    color: var(--amwaj-white);
    transform: rotate(180deg);
}

/* Pill icon (pin icon) - smaller on mobile */
.amwaj-filter-pill-icon {
    width: 9px;
    height: 9px;
    flex-shrink: 0;
    opacity: 0.5;
    color: inherit;
}

@media (min-width: 640px) {
    .amwaj-filter-pill-icon {
        width: 16px;
        height: 16px;
    }
}

/* "All" icon - even smaller on mobile */
.amwaj-all-icon {
    width: 8px;
    height: 8px;
}

@media (min-width: 640px) {
    .amwaj-all-icon {
        width: 14px;
        height: 14px;
    }
}

/* Pill name text */
.amwaj-filter-pill-name {
    color: inherit;
    font-weight: 500;
}

/* Pill venue count (shows on parent gate pills + "All" pill) */
.amwaj-filter-pill-venues {
    font-size: 9px;
    color: var(--amwaj-gray-500);
    letter-spacing: 0.02em;
    font-weight: 400;
    margin-left: 1px;
}

@media (min-width: 640px) {
    .amwaj-filter-pill-venues {
        font-size: 12px;
        margin-left: 2px;
    }
}

/* Chevron for gates with sub-gates */
.amwaj-filter-pill-chevron {
    width: 8px;
    height: 8px;
    flex-shrink: 0;
    opacity: 0.5;
    transition: transform 0.2s ease;
    color: inherit;
}

@media (min-width: 640px) {
    .amwaj-filter-pill-chevron {
        width: 12px;
        height: 12px;
    }
}

/* ========================================
   SUB-GATES ROW - Below the main gates bar
   ======================================== */
.amwaj-subgates-row {
    padding: 6px 12px 2px;
}

@media (min-width: 640px) {
    .amwaj-subgates-row {
        padding: 10px 12px 6px;
    }
}

/* Sub-gates scrollable area */
.amwaj-subgates-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.amwaj-subgates-scroll::-webkit-scrollbar {
    display: none;
}

/* Sub-gates pills container */
.amwaj-subgates-pills {
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    min-width: max-content;
}

@media (min-width: 640px) {
    .amwaj-subgates-pills {
        gap: 8px;
    }
}

/* Sub-gate group (wraps pills for one parent gate) */
.amwaj-subgate-group {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding-right: 8px;
    margin-right: 4px;
    border-right: 1px solid var(--amwaj-gray-200);
}

@media (min-width: 640px) {
    .amwaj-subgate-group {
        gap: 6px;
        padding-right: 14px;
        margin-right: 8px;
    }
}

.amwaj-subgate-group:last-child {
    border-right: none;
    margin-right: 0;
    padding-right: 0;
}

/* ========================================
   SUB-GATE PILLS (in the row below)
   (Mobile-first: smaller by default)
   ======================================== */
.amwaj-subgate-pill {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 4px 8px;
    border-radius: var(--amwaj-radius-full);
    font-family: var(--amwaj-font-body);
    font-weight: 500;
    font-size: 9px;
    letter-spacing: 0.02em;
    border: 1px solid var(--amwaj-gray-200);
    background: var(--amwaj-gray-100);
    color: var(--amwaj-text-light);
    cursor: pointer;
    transition: all var(--amwaj-transition);
    white-space: nowrap;
    flex-shrink: 0;
    min-height: 24px;
    -webkit-tap-highlight-color: transparent;
}

@media (min-width: 640px) {
    .amwaj-subgate-pill {
        padding: 8px 16px;
        font-size: 13px;
        gap: 6px;
        min-height: 38px;
    }
}

.amwaj-subgate-pill:hover {
    background: var(--amwaj-white);
    border-color: var(--amwaj-gray-300);
}

/* Active sub-gate pill */
.amwaj-subgate-pill.amwaj-subgate-pill-active {
    background: var(--amwaj-white);
    color: var(--amwaj-primary);
    border-color: var(--amwaj-primary);
    font-weight: 600;
    box-shadow: 0 0 0 1px var(--amwaj-primary);
}

.amwaj-subgate-pill.amwaj-subgate-pill-active .amwaj-subgate-pill-name {
    color: var(--amwaj-primary);
    font-weight: 600;
}

.amwaj-subgate-pill.amwaj-subgate-pill-active .amwaj-subgate-pill-icon {
    color: var(--amwaj-primary);
    opacity: 1;
}

.amwaj-subgate-pill.amwaj-subgate-pill-active .amwaj-subgate-pill-venues {
    color: var(--amwaj-primary);
}

/* Sub-gate pill icon */
.amwaj-subgate-pill-icon {
    width: 7px;
    height: 7px;
    flex-shrink: 0;
    opacity: 0.4;
}

@media (min-width: 640px) {
    .amwaj-subgate-pill-icon {
        width: 12px;
        height: 12px;
    }
}

/* Sub-gate pill name */
.amwaj-subgate-pill-name {
    color: inherit;
}

/* Sub-gate venue count */
.amwaj-subgate-pill-venues {
    font-size: 8px;
    color: var(--amwaj-gray-500);
    letter-spacing: 0.02em;
}

@media (min-width: 640px) {
    .amwaj-subgate-pill-venues {
        font-size: 11px;
    }
}

/* "All Sub" pill - special accent style */
.amwaj-subgate-pill.amwaj-subgate-pill-all {
    background: var(--amwaj-accent);
    color: var(--amwaj-white);
    border-color: var(--amwaj-accent);
}

.amwaj-subgate-pill.amwaj-subgate-pill-all:hover {
    opacity: 0.9;
}

.amwaj-subgate-pill.amwaj-subgate-pill-all .amwaj-subgate-pill-name,
.amwaj-subgate-pill.amwaj-subgate-pill-all .amwaj-subgate-pill-venues {
    color: var(--amwaj-white);
}

.amwaj-subgate-pill.amwaj-subgate-pill-all .amwaj-subgate-pill-icon {
    color: var(--amwaj-white);
    opacity: 0.8;
}

/* ========================================
   MERCHANTS CONTAINER
   ======================================== */
.amwaj-merchants-container {
    background: var(--amwaj-white);
    border-radius: var(--amwaj-radius-lg);
    box-shadow: var(--amwaj-shadow-sm);
    border: 1px solid var(--amwaj-gray-200);
    overflow: hidden;
}

.amwaj-merchants-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 16px;
    border-bottom: 1px solid var(--amwaj-gray-200);
}

@media (min-width: 640px) {
    .amwaj-merchants-header {
        padding: 16px 24px;
    }
}

.amwaj-merchants-title {
    font-family: var(--amwaj-font-heading);
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--amwaj-text);
    margin: 0;
}

@media (min-width: 640px) {
    .amwaj-merchants-title {
        font-size: 16px;
    }
}

.amwaj-merchants-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.amwaj-scroll-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--amwaj-gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--amwaj-primary);
    border: none;
    cursor: pointer;
    transition: all var(--amwaj-transition);
    padding: 0;
}

.amwaj-scroll-btn:hover {
    background: var(--amwaj-primary);
    color: var(--amwaj-white);
}

/* ========================================
   MERCHANTS CAROUSEL LAYOUT
   ======================================== */
.amwaj-merchants-carousel {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 16px;
    -ms-overflow-style: none;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.amwaj-merchants-carousel::-webkit-scrollbar {
    display: none;
}

.amwaj-merchants-carousel .amwaj-merchant-card {
    flex-shrink: 0;
    width: 260px;
    scroll-snap-align: start;
}

@media (min-width: 640px) {
    .amwaj-merchants-carousel .amwaj-merchant-card {
        width: 280px;
    }
}

/* ========================================
   MERCHANTS GRID LAYOUT
   ======================================== */
.amwaj-merchants-grid {
    display: grid;
    gap: 16px;
    padding: 16px;
    grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 640px) {
    .amwaj-merchants-grid {
        padding: 24px;
    }
}

@media (min-width: 768px) {
    .amwaj-merchants-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .amwaj-merchants-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.amwaj-merchants-grid .amwaj-merchant-card {
    width: 100%;
}

/* ========================================
   MERCHANT CARD
   ======================================== */
.amwaj-merchant-card {
    background: var(--amwaj-white);
    border-radius: var(--amwaj-radius-md);
    box-shadow: var(--amwaj-shadow-sm);
    overflow: hidden;
    transition: all var(--amwaj-transition);
    border: 1px solid rgba(44, 71, 149, 0.1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

@media (min-width: 640px) {
    .amwaj-merchant-card {
        border-radius: var(--amwaj-radius-lg);
    }
}

.amwaj-merchant-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--amwaj-shadow-md);
}

.amwaj-merchant-card.amwaj-hidden {
    display: none !important;
}

/* ========================================
   Merchant Cover Image
   ======================================== */
.amwaj-merchant-cover {
    position: relative;
    aspect-ratio: 4 / 3;
    width: 100%;
    overflow: hidden;
    background: linear-gradient(135deg, var(--amwaj-primary) 0%, var(--amwaj-accent) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 640px) {
    .amwaj-merchant-cover {
        aspect-ratio: 16 / 10;
    }
}

.amwaj-merchant-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 500ms ease;
}

.amwaj-merchant-card:hover .amwaj-merchant-cover-img {
    transform: scale(1.05);
}

.amwaj-merchant-cover-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.amwaj-merchant-cover-placeholder span {
    font-family: var(--amwaj-font-heading);
    font-weight: 700;
    font-size: 28px;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* ========================================
   Merchant Badges
   ======================================== */
.amwaj-merchant-badges {
    position: absolute;
    top: 8px;
    left: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    z-index: 10;
}

@media (min-width: 640px) {
    .amwaj-merchant-badges {
        top: 12px;
        left: 12px;
    }
}

.amwaj-badge {
    font-family: var(--amwaj-font-body);
    font-weight: 600;
    font-size: 10px;
    padding: 2px 10px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--amwaj-white);
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

@media (min-width: 640px) {
    .amwaj-badge {
        font-size: 10px;
        padding: 4px 10px;
    }
}

.amwaj-badge-new {
    background: var(--amwaj-accent);
}

.amwaj-badge-featured {
    background: var(--amwaj-primary);
}

/* ========================================
   Merchant Logo
   ======================================== */
.amwaj-merchant-logo {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--amwaj-white);
    border: 2px solid var(--amwaj-white);
    box-shadow: var(--amwaj-shadow-sm);
    z-index: 10;
}

@media (min-width: 640px) {
    .amwaj-merchant-logo {
        top: 12px;
        right: 12px;
        width: 32px;
        height: 32px;
    }
}

.amwaj-merchant-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ========================================
   Merchant Info
   ======================================== */
.amwaj-merchant-info {
    padding: 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

@media (min-width: 640px) {
    .amwaj-merchant-info {
        padding: 16px;
    }
}

/* Category line */
.amwaj-merchant-category {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 4px;
}

@media (min-width: 640px) {
    .amwaj-merchant-category {
        gap: 6px;
        margin-bottom: 4px;
    }
}

.amwaj-cat-icon {
    font-size: 12px;
    line-height: 1;
}

@media (min-width: 640px) {
    .amwaj-cat-icon {
        font-size: 14px;
    }
}

.amwaj-cat-name {
    font-family: var(--amwaj-font-body);
    font-weight: 400;
    font-size: 11px;
    color: var(--amwaj-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

@media (min-width: 640px) {
    .amwaj-cat-name {
        font-size: 12px;
    }
}

/* Merchant name */
.amwaj-merchant-name {
    font-family: var(--amwaj-font-heading);
    font-weight: 700;
    font-size: 14px;
    color: var(--amwaj-text);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (min-width: 640px) {
    .amwaj-merchant-name {
        font-size: 16px;
    }
}

/* Description */
.amwaj-merchant-desc {
    font-family: var(--amwaj-font-body);
    font-weight: 400;
    font-size: 13px;
    color: rgba(0,0,0,0.7);
    margin: 4px 0 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (min-width: 640px) {
    .amwaj-merchant-desc {
        font-size: 14px;
        margin-top: 6px;
    }
}

/* ========================================
   Merchant Location
   ======================================== */
.amwaj-merchant-location {
    margin-top: 8px;
    border-radius: var(--amwaj-radius-sm);
    background: rgba(241, 237, 229, 0.7);
    padding: 8px 10px;
    border: 1px solid rgba(44, 71, 149, 0.1);
    display: flex;
    align-items: flex-start;
    gap: 6px;
    color: var(--amwaj-primary);
}

@media (min-width: 640px) {
    .amwaj-merchant-location {
        margin-top: 12px;
        padding: 8px 10px;
    }
}

.amwaj-location-pin {
    flex-shrink: 0;
    margin-top: 1px;
    width: 14px;
    height: 14px;
}

.amwaj-location-details {
    min-width: 0;
}

.amwaj-location-gate {
    font-family: var(--amwaj-font-body);
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.3;
    display: block;
}

@media (min-width: 640px) {
    .amwaj-location-gate {
        font-size: 12px;
    }
}

.amwaj-location-address {
    font-family: var(--amwaj-font-body);
    font-size: 10px;
    color: var(--amwaj-text-light);
    margin-top: 2px;
    line-height: 1.3;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (min-width: 640px) {
    .amwaj-location-address {
        font-size: 12px;
    }
}

/* ========================================
   Merchant Hours
   ======================================== */
.amwaj-merchant-hours {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-top: 1px solid var(--amwaj-gray-200);
    color: var(--amwaj-gray-500);
    font-family: var(--amwaj-font-body);
    font-size: 11px;
}

@media (min-width: 640px) {
    .amwaj-merchant-hours {
        padding: 8px 16px;
        font-size: 12px;
    }
}

.amwaj-merchant-hours svg {
    flex-shrink: 0;
    width: 12px;
    height: 12px;
}

@media (min-width: 640px) {
    .amwaj-merchant-hours svg {
        width: 14px;
        height: 14px;
    }
}

/* ========================================
   Merchant Contact Links
   ======================================== */
.amwaj-merchant-contact {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-top: 1px solid var(--amwaj-gray-200);
}

.amwaj-contact-link {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--amwaj-gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--amwaj-primary);
    text-decoration: none;
    transition: all var(--amwaj-transition);
}

.amwaj-contact-link:hover {
    background: var(--amwaj-primary);
    color: var(--amwaj-white);
}

/* ========================================
   Clickable Merchant Links
   ======================================== */
.amwaj-merchant-cover-link {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: block;
}

.amwaj-merchant-link {
    color: var(--amwaj-text);
    text-decoration: none;
    transition: color var(--amwaj-transition);
}

.amwaj-merchant-link:hover {
    color: var(--amwaj-primary);
}

.amwaj-merchant-name {
    position: relative;
    z-index: 6;
}

.amwaj-merchant-name a {
    color: inherit;
    text-decoration: none;
}

.amwaj-merchant-name a:hover {
    color: var(--amwaj-primary);
}

/* ========================================
   Animations
   ======================================== */
@keyframes amwajFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.amwaj-merchant-card {
    animation: amwajFadeIn 0.3s ease forwards;
}

.amwaj-merchant-card:nth-child(1) { animation-delay: 0ms; }
.amwaj-merchant-card:nth-child(2) { animation-delay: 50ms; }
.amwaj-merchant-card:nth-child(3) { animation-delay: 100ms; }
.amwaj-merchant-card:nth-child(4) { animation-delay: 150ms; }
.amwaj-merchant-card:nth-child(5) { animation-delay: 200ms; }
.amwaj-merchant-card:nth-child(6) { animation-delay: 250ms; }
.amwaj-merchant-card:nth-child(7) { animation-delay: 300ms; }
.amwaj-merchant-card:nth-child(8) { animation-delay: 350ms; }
.amwaj-merchant-card:nth-child(9) { animation-delay: 400ms; }
.amwaj-merchant-card:nth-child(10) { animation-delay: 450ms; }
.amwaj-merchant-card:nth-child(11) { animation-delay: 500ms; }
.amwaj-merchant-card:nth-child(12) { animation-delay: 550ms; }

/* Sub-gate pill fade-in animation */
@keyframes amwajSubgateFadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.amwaj-subgate-pill {
    animation: amwajSubgateFadeIn 0.2s ease forwards;
}

/* ========================================
   Print Styles
   ======================================== */
@media print {
    .amwaj-gates-filter-bar,
    .amwaj-subgates-row,
    .amwaj-merchants-nav {
        display: none !important;
    }
    .amwaj-merchants-carousel {
        overflow: visible !important;
        flex-wrap: wrap !important;
    }
    .amwaj-merchant-card {
        break-inside: avoid;
    }
}