.bottler-directory-hero {
    min-height: 290px;
    background:
        radial-gradient(circle at 84% 18%, rgba(185, 154, 104, 0.17), transparent 34%),
        linear-gradient(135deg, var(--surface) 0%, var(--bg-darker) 100%);
}

.bottler-directory-hero h1 {
    font-size: clamp(2.1rem, 5.2vw, 4.25rem);
}

.bottler-directory-hero-mark svg {
    width: 68%;
    height: 68%;
}

.bottler-explorer-heading {
    display: flex;
    gap: 1.5rem;
    align-items: end;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.bottler-explorer-heading h2 {
    margin: 0;
    color: var(--text);
    font-size: clamp(1.25rem, 2.4vw, 1.7rem);
}

.bottler-explorer-heading .distillery-directory-eyebrow {
    margin-bottom: 0.2rem;
}

.bottler-explorer-heading > p {
    max-width: 440px;
    margin: 0;
    color: var(--muted);
    text-align: right;
}

.bottler-explorer .distillery-results-bar {
    margin-top: 1rem;
}

.bottler-card .distillery-card-trigger {
    background:
        linear-gradient(135deg, rgba(139, 111, 71, 0.11), transparent 58%),
        var(--surface);
}

.bottler-card .distillery-detail-item:last-child:nth-child(odd) {
    grid-column: 1 / -1;
}

/* Shared bottler profile and administration pages. */
.bottler-page {
    width: 100%;
    padding: clamp(0.75rem, 2.5vw, 2.25rem);
    color: var(--text);
}

.bottler-page [hidden] {
    display: none !important;
}

.bottler-page .visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.bottler-page-shell {
    width: min(1120px, 100%);
    margin: 0 auto;
}

.bottler-page-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: clamp(1.25rem, 4vw, 3rem);
    align-items: center;
    margin-bottom: clamp(1rem, 2.5vw, 1.5rem);
    padding: clamp(1.35rem, 3.5vw, 2.75rem);
    overflow: hidden;
    border: 1px solid rgba(185, 154, 104, 0.34);
    border-radius: clamp(1rem, 2vw, 1.6rem);
    background:
        radial-gradient(circle at 88% 12%, rgba(212, 175, 55, 0.16), transparent 32%),
        linear-gradient(135deg, var(--surface), var(--bg-darker));
    box-shadow: var(--shadow-lg);
}

.bottler-page-hero::after {
    content: "";
    position: absolute;
    right: -5rem;
    bottom: -8rem;
    width: 19rem;
    height: 19rem;
    border: 1px solid rgba(185, 154, 104, 0.14);
    border-radius: 50%;
    box-shadow: 0 0 0 2.5rem rgba(185, 154, 104, 0.03);
    pointer-events: none;
}

.bottler-page-hero-copy,
.bottler-page-hero-mark {
    position: relative;
    z-index: 1;
}

.bottler-page-eyebrow {
    margin: 0 0 0.4rem;
    color: var(--gold);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.bottler-page-hero h1 {
    margin: 0;
    overflow-wrap: anywhere;
    color: var(--text);
    font-size: clamp(2rem, 5vw, 3.75rem);
    font-weight: 600;
    line-height: 1.02;
    letter-spacing: -0.03em;
}

.bottler-page-lead {
    max-width: 680px;
    margin: 0.8rem 0 0;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.55;
}

.bottler-page-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1.25rem;
}

.bottler-page-actions .btn,
.bottler-form-actions .btn {
    display: inline-flex;
    min-height: 44px;
    gap: 0.45rem;
    align-items: center;
    justify-content: center;
}

.bottler-page-actions svg,
.bottler-form-actions svg {
    width: 1.05rem;
    height: 1.05rem;
    flex: 0 0 auto;
}

.bottler-page-hero-mark {
    display: grid;
    place-items: center;
    width: clamp(105px, 14vw, 155px);
    aspect-ratio: 1;
    color: var(--gold);
    border: 1px solid rgba(185, 154, 104, 0.26);
    border-radius: 50%;
    background: rgba(185, 154, 104, 0.05);
}

.bottler-page-hero-mark svg {
    width: 66%;
    height: 66%;
    stroke-width: 1.8;
}

.bottler-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.bottler-stat {
    min-width: 0;
    padding: 1rem 1.1rem;
    border: 1px solid rgba(185, 154, 104, 0.24);
    border-radius: 0.9rem;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.bottler-stat strong {
    display: block;
    color: var(--gold);
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
    line-height: 1;
}

.bottler-stat span {
    display: block;
    margin-top: 0.35rem;
    color: var(--muted);
    font-size: 0.82rem;
}

.bottler-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
    gap: 1rem;
}

.bottler-panel {
    min-width: 0;
    padding: clamp(1rem, 2.5vw, 1.5rem);
    color: var(--text);
    border: 1px solid rgba(185, 154, 104, 0.25);
    border-radius: 1rem;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.bottler-panel + .bottler-panel {
    margin-top: 1rem;
}

.bottler-panel-heading {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid rgba(185, 154, 104, 0.2);
}

.bottler-panel-heading svg {
    width: 1.25rem;
    height: 1.25rem;
    flex: 0 0 auto;
    color: var(--gold);
}

.bottler-panel-heading h2,
.bottler-panel-heading h3 {
    margin: 0;
    color: var(--text);
    font-size: 1.12rem;
}

.bottler-description {
    margin: 0;
    color: var(--text);
    line-height: 1.7;
    white-space: pre-line;
}

.bottler-address {
    display: flex;
    gap: 0.55rem;
    align-items: flex-start;
    margin: 0 0 1rem;
    color: var(--muted);
}

.bottler-address svg {
    width: 1.1rem;
    height: 1.1rem;
    flex: 0 0 auto;
    margin-top: 0.2rem;
    color: var(--gold);
}

.bottler-relation-list {
    display: grid;
    gap: 0.45rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.bottler-relation-list li {
    min-width: 0;
    padding: 0.7rem 0.8rem;
    color: var(--text);
    border: 1px solid rgba(185, 154, 104, 0.15);
    border-radius: 0.7rem;
    background: rgba(185, 154, 104, 0.045);
    overflow-wrap: anywhere;
}

.bottler-relation-list a {
    display: block;
    color: var(--gold);
    font-weight: 600;
}

.bottler-empty-copy {
    margin: 0;
    color: var(--muted);
}

/* Form pages */
.bottler-form-page .bottler-page-shell,
.bottler-admin-page .bottler-page-shell {
    width: min(1040px, 100%);
}

.bottler-form-page .bottler-page-hero {
    min-height: 210px;
}

.bottler-form-card {
    padding: 0;
    overflow: hidden;
}

.bottler-form-card-header {
    padding: 1.1rem clamp(1rem, 2.5vw, 1.5rem);
    border-bottom: 1px solid rgba(185, 154, 104, 0.22);
    background: linear-gradient(135deg, rgba(185, 154, 104, 0.08), transparent);
}

.bottler-form-card-header h2 {
    margin: 0;
    color: var(--text);
    font-size: 1.15rem;
}

.bottler-form-card-body {
    padding: clamp(1rem, 3vw, 1.75rem);
}

.bottler-form-page .form-label {
    color: var(--gold) !important;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.025em;
}

.bottler-form-page .form-control,
.bottler-form-page .form-select,
.bottler-admin-page .form-control {
    min-height: 46px;
    color: var(--text) !important;
    background-color: var(--bg-darker) !important;
    border-color: rgba(185, 154, 104, 0.4) !important;
    border-radius: 0.7rem;
}

.bottler-form-page textarea.form-control {
    min-height: 110px;
}

.bottler-form-page .form-control:focus,
.bottler-form-page .form-select:focus,
.bottler-admin-page .form-control:focus {
    border-color: var(--gold) !important;
    box-shadow: 0 0 0 0.2rem rgba(185, 154, 104, 0.14);
}

.bottler-form-page .form-text {
    color: var(--muted) !important;
}

.bottler-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1.5rem;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(185, 154, 104, 0.2);
}

.bottler-danger-zone {
    display: flex;
    justify-content: flex-end;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed rgba(220, 53, 69, 0.35);
}

/* Administration list */
.bottler-admin-toolbar {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.bottler-admin-toolbar .distillery-search-wrap {
    flex: 1 1 auto;
}

.bottler-admin-table-wrap {
    overflow: auto;
    border: 1px solid rgba(185, 154, 104, 0.22);
    border-radius: 0.9rem;
}

.bottler-admin-table {
    min-width: 820px;
    margin: 0;
}

.bottler-admin-table > :not(caption) > * > * {
    padding: 0.85rem;
    color: var(--text);
    background: var(--surface);
    border-color: rgba(185, 154, 104, 0.14);
}

.bottler-admin-table thead th {
    color: var(--gold);
    font-size: 0.74rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    background: var(--bg-darker);
}

@media (max-width: 700px) {
    .bottler-explorer-heading {
        display: block;
    }

    .bottler-explorer-heading > p {
        margin-top: 0.45rem;
        text-align: left;
    }

    .bottler-directory-hero h1 {
        font-size: clamp(2.15rem, 11vw, 3rem);
    }

    .bottler-page {
        padding: 0.75rem;
    }

    .bottler-page-hero {
        grid-template-columns: 1fr;
        padding: 1.4rem 1.15rem;
    }

    .bottler-page-hero h1 {
        max-width: 88%;
        font-size: clamp(2rem, 11vw, 3rem);
    }

    .bottler-page-hero-mark {
        position: absolute;
        top: -2.25rem;
        right: -2.2rem;
        width: 8.5rem;
        opacity: 0.15;
    }

    .bottler-page-actions .btn {
        flex: 1 1 100%;
    }

    .bottler-stat-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.45rem;
    }

    .bottler-stat {
        padding: 0.8rem 0.65rem;
    }

    .bottler-stat span {
        font-size: 0.7rem;
    }

    .bottler-content-grid {
        grid-template-columns: 1fr;
    }

    .bottler-form-actions .btn {
        flex: 1 1 100%;
    }

    .bottler-admin-toolbar {
        align-items: stretch;
        flex-direction: column;
    }
}

@media (max-width: 430px) {
    .bottler-stat-grid {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bottler-page *,
    .bottler-page *::before,
    .bottler-page *::after {
        transition-duration: 0.01ms !important;
    }
}
