/* ============================================================
   Locations page (/locations)
   ============================================================ */

/* ── Search bar ───────────────────────────────────────────── */

.location-search-bar {
    position: relative;
    max-width: 520px;
    margin: 0 auto 0.5rem;
}

.location-search-icon {
    position: absolute;
    left: 1.1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    stroke: var(--text-muted, #a0a0a0);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    pointer-events: none;
}

.location-search-input {
    width: 100%;
    background: var(--surface, #1c1c1c);
    border: 1px solid rgba(18, 114, 186, 0.4);
    border-radius: 999px;
    color: var(--text, #ffffff);
    font-family: var(--font-body, "Inter", sans-serif);
    font-size: 1rem;
    padding: 0.85rem 1.25rem 0.85rem 2.75rem;
    padding-left: 50px !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.location-search-input::placeholder {
    color: var(--text-muted, #a0a0a0);
}

.location-search-input:focus {
    outline: none;
    border-color: var(--brand-primary, #1272ba);
    box-shadow: 0 0 0 3px var(--brand-primary-tint, rgba(18, 114, 186, 0.15));
}


/* ── Location card ────────────────────────────────────────── */

.location-card {
    background: var(--black, #000000);
    border: 1px solid var(--border, rgba(18, 114, 186, 0.25));
    border-radius: 12px;
    padding: 2rem 1.75rem;
    height: 100%;
    overflow: hidden; /* clips .location-image-wrap's top-bleed corners to match */
    transition:
        background 0.3s ease,
        border-color 0.3s ease,
        transform 0.25s ease,
        box-shadow 0.3s ease;
}

.location-card:hover {
    background: var(--surface, #1c1c1c);
    border-color: var(--brand-primary, #1272ba);
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(var(--brand-primary-rgb, 18, 114, 186), 0.3);
}

/* Bleeds full-width to the card edges despite .location-card's own padding
   (negative margin cancels it on three sides) — only rendered when a
   location has an image set in EventBooking admin, so cards without one
   keep the original text-only layout untouched. */
.location-image-wrap {
    aspect-ratio: 16 / 10;
    margin: -2rem -1.75rem 1.25rem;
    background: var(--surface, #1c1c1c);
}

.location-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.location-tag {
    display: inline-block;
    font-family: var(--font-heading, "Oswald", sans-serif);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--brand-primary-light, #2e8fd4);
    background: var(--brand-primary-tint, rgba(18, 114, 186, 0.15));
    border: 1px solid var(--border, rgba(18, 114, 186, 0.25));
    border-radius: 999px;
    padding: 0.3rem 0.85rem;
    margin-bottom: 1rem;
}

.location-name {
    font-family: var(--font-heading, "Oswald", sans-serif);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text, #ffffff);
    margin-bottom: 0.6rem;
    letter-spacing: -0.01em;
    text-shadow: 1px 1px 1px var(--black, #000000);
}

.location-address {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    color: var(--text-muted, #a0a0a0);
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 0.9rem;
    min-height: 44px;
}

.location-address svg {
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    margin-top: 0.15em;
    stroke: var(--brand-primary-light, #2e8fd4);
    fill: none;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.location-body {
    color: var(--text-muted, #a0a0a0);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.location-directions {
    font-family: var(--font-heading, "Oswald", sans-serif);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: var(--brand-primary-light, #2e8fd4);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: color 0.2s ease, gap 0.2s ease;
}

.location-directions:hover {
    color: var(--white, #ffffff);
    gap: 0.6rem;
}

.location-directions i {
    font-size: 0.7rem;
    padding-top: 3px;
}


/* ── Empty state ──────────────────────────────────────────── */

.location-empty {
    text-align: center;
    color: var(--text-muted, #a0a0a0);
    font-size: 0.95rem;
    padding: 2rem 0;
    margin: 0;
}
