.agr-wrap {
    --agr-maroon: #681318;
    --agr-maroon-soft: #8b3438;
    --agr-ink: #292426;
    --agr-muted: #716a6c;
    --agr-line: #eadedf;
    --agr-soft: #fbf7f5;
    --agr-soft-2: #f7eeee;
    --agr-gold: #c79a43;
    --agr-green: #3c8b37;
    --agr-red: #bc5f50;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: clamp(24px, 4vw, 54px) clamp(16px, 4vw, 46px);
    background: linear-gradient(180deg, #fff 0%, var(--agr-soft) 100%);
    color: var(--agr-ink);
    font-family: inherit;
    overflow: clip;
}

.agr-wrap--full {
    box-shadow: 0 0 0 100vmax var(--agr-soft);
    clip-path: inset(0 -100vmax);
}

.agr-wrap * {
    box-sizing: border-box;
}

.agr-inner {
    width: min(100%, 1320px);
    margin: 0 auto;
}

.agr-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: clamp(18px, 3vw, 34px);
    align-items: center;
    margin-bottom: clamp(22px, 3vw, 34px);
    padding: clamp(18px, 3vw, 28px);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 8px;
    background:
        radial-gradient(circle at 90% 20%, rgba(220, 178, 86, .28), transparent 32%),
        linear-gradient(115deg, #5e1116, #7a2026 54%, #9a6130);
    box-shadow: 0 14px 34px rgba(41, 36, 38, .08);
}

.agr-hero::after {
    content: "";
    position: absolute;
    inset: auto -90px -120px auto;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .18);
    pointer-events: none;
}

.agr-eyebrow {
    margin: 0 0 8px;
    color: var(--agr-maroon);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.agr-hero h2,
.agr-panel h3,
.agr-booking h3 {
    margin: 0;
    color: var(--agr-maroon);
    font-family: Georgia, "Times New Roman", serif;
    letter-spacing: 0;
}

.agr-hero .agr-eyebrow,
.agr-hero h2,
.agr-hero p {
    color: #fff;
}

.agr-hero h2 {
    font-size: clamp(30px, 3.5vw, 46px);
    line-height: 1.05;
}

.agr-hero p {
    max-width: 690px;
    margin: 12px 0 0;
    color: rgba(255, 255, 255, .82);
    font-size: clamp(15px, 1.2vw, 17px);
    line-height: 1.65;
}

.agr-hero-rate {
    min-width: 215px;
    padding: 15px 18px;
    position: relative;
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 8px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 12px 30px rgba(27, 12, 12, .18);
}

.agr-hero-rate span,
.agr-hero-rate small {
    display: block;
    color: var(--agr-muted);
    font-size: 13px;
    font-weight: 750;
}

.agr-hero-rate strong {
    display: block;
    margin: 7px 0;
    color: var(--agr-maroon);
    font-size: clamp(26px, 3vw, 36px);
    line-height: 1;
}

.agr-top-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(18px, 2.4vw, 28px);
}

.agr-panel,
.agr-booking {
    border: 1px solid var(--agr-line);
    border-radius: 8px;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 16px 38px rgba(41, 36, 38, .06);
}

.agr-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 0 0 14px;
}

.agr-panel h3,
.agr-booking h3 {
    font-size: clamp(24px, 2.2vw, 34px);
    line-height: 1.16;
}

.agr-rate-card,
.agr-trends {
    padding: clamp(14px, 2vw, 22px);
}

.agr-pulse {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid #ebd4d6;
    border-radius: 999px;
    color: var(--agr-maroon);
    background: var(--agr-soft-2);
    font-size: 12px;
    font-weight: 800;
}

.agr-pulse::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--agr-gold);
    box-shadow: 0 0 0 0 rgba(199, 154, 67, .4);
    animation: agr-pulse 1.8s ease-in-out infinite;
}

.agr-live-rates {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}

.agr-live-rate {
    min-height: 112px;
    padding: 14px 12px;
    border: 1px solid var(--agr-line);
    border-radius: 8px;
    background:
        linear-gradient(180deg, #fff, #fff9f8);
    box-shadow: 0 10px 22px rgba(41, 36, 38, .045);
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.agr-live-rate.is-active,
.agr-live-rate:hover {
    border-color: rgba(104, 19, 24, .28);
    box-shadow: 0 14px 26px rgba(104, 19, 24, .1);
    transform: translateY(-1px);
}

.agr-live-rate span {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 5px 9px;
    border-radius: 999px;
    background: var(--agr-soft-2);
    color: var(--agr-maroon);
    font-size: 12px;
    font-weight: 850;
    line-height: 1;
}

.agr-live-rate strong {
    display: block;
    margin-top: 14px;
    color: var(--agr-ink);
    font-size: clamp(18px, 1.7vw, 23px);
    line-height: 1.1;
}

.agr-live-rate small {
    display: block;
    margin-top: 7px;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.3;
}

.agr-field input,
.agr-field select,
.agr-field textarea {
    width: 100%;
    min-height: 46px;
    border: 1px solid #e5d8d9;
    border-radius: 8px;
    background: #fff;
    color: var(--agr-ink);
    padding: 10px 13px;
    font: inherit;
    outline: none;
}

.agr-field input:focus,
.agr-field select:focus,
.agr-field textarea:focus {
    border-color: var(--agr-maroon-soft);
    box-shadow: 0 0 0 3px rgba(104, 19, 24, .08);
}

.agr-table-shell {
    overflow: hidden;
    border: 1px solid var(--agr-line);
    border-radius: 8px;
    background: #fff;
}

.agr-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.agr-table th {
    background: var(--agr-maroon);
    color: #fff;
    font-weight: 800;
}

.agr-table th,
.agr-table td {
    padding: clamp(10px, 1.05vw, 14px) clamp(11px, 1.25vw, 16px);
    border-bottom: 1px solid var(--agr-line);
    text-align: right;
    vertical-align: middle;
    font-size: clamp(14px, 1.05vw, 16px);
    line-height: 1.25;
}

.agr-table th:first-child,
.agr-table td:first-child,
.agr-history-table th,
.agr-history-table td {
    text-align: left;
}

.agr-table tbody tr:nth-child(even) {
    background: var(--agr-soft-2);
}

.agr-table tbody tr {
    animation: agr-row-in .45s both;
}

.agr-table tbody tr:nth-child(2) { animation-delay: .04s; }
.agr-table tbody tr:nth-child(3) { animation-delay: .08s; }
.agr-table tbody tr:nth-child(4) { animation-delay: .12s; }

.agr-table td strong {
    display: block;
    font-size: clamp(16px, 1.25vw, 18px);
    line-height: 1.2;
}

.agr-table td span {
    display: block;
    margin-top: 3px;
    color: var(--agr-green);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.3;
}

.agr-wrap .agr-up { color: var(--agr-green); }
.agr-wrap .agr-down { color: var(--agr-red); }

.agr-history-shell {
    max-height: 310px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
}

.agr-history-shell .agr-history-table {
    touch-action: pan-y;
}

.agr-history-shell::-webkit-scrollbar {
    width: 7px;
}

.agr-history-shell::-webkit-scrollbar-thumb {
    background: #d8bfc1;
    border-radius: 999px;
}

.agr-trends {
    margin-top: clamp(22px, 3vw, 34px);
}

.agr-chart-head {
    align-items: flex-start;
}

.agr-chart-head p {
    margin: 7px 0 0;
    color: var(--agr-muted);
    font-size: 15px;
    line-height: 1.55;
}

.agr-chip-row,
.agr-periods {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.agr-chip-row {
    margin: 2px 0 18px;
}

.agr-chip-row button,
.agr-periods button,
.agr-form button {
    border: 1px solid #e3d7d8;
    border-radius: 999px;
    background: #fff;
    color: var(--agr-maroon);
    cursor: pointer;
    font: inherit;
    font-weight: 750;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}

.agr-chip-row button {
    display: inline-flex;
    gap: 9px;
    align-items: center;
    min-height: 42px;
    padding: 9px 14px;
}

.agr-chip-row button i {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--dot);
}

.agr-periods button {
    min-height: 40px;
    padding: 8px 15px;
}

.agr-chip-row button.is-active,
.agr-periods button.is-active {
    border-color: #d8bfc1;
    background: var(--agr-soft-2);
    box-shadow: 0 8px 18px rgba(104, 19, 24, .08);
}

.agr-chip-row button:hover,
.agr-periods button:hover,
.agr-form button:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(104, 19, 24, .1);
}

.agr-chart-wrap {
    position: relative;
    min-height: 390px;
    padding: 12px 6px 0;
    border: 1px solid var(--agr-line);
    border-radius: 8px;
    background: linear-gradient(180deg, #fff, #fffaf9);
}

.agr-chart-wrap canvas {
    display: block;
    width: 100%;
    height: 390px;
}

.agr-chart-tooltip {
    position: absolute;
    pointer-events: none;
    min-width: 142px;
    padding: 10px 12px;
    border-radius: 8px;
    background: rgba(41, 36, 38, .94);
    color: #fff;
    font-size: 13px;
    line-height: 1.45;
    transform: translate(-50%, -118%);
    z-index: 2;
}

.agr-booking {
    display: grid;
    grid-template-columns: minmax(260px, .7fr) minmax(0, 1.3fr);
    gap: clamp(18px, 3vw, 32px);
    align-items: center;
    margin-top: clamp(22px, 3vw, 34px);
    padding: clamp(20px, 3vw, 34px);
}

.agr-booking-copy p:last-child {
    margin: 12px 0 0;
    color: var(--agr-muted);
    line-height: 1.65;
}

.agr-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.agr-field label {
    display: block;
    margin-bottom: 6px;
    color: var(--agr-maroon);
    font-size: 13px;
    font-weight: 800;
}

.agr-wide,
.agr-form button,
.agr-form-status {
    grid-column: 1 / -1;
}

.agr-field textarea {
    resize: vertical;
}

.agr-form button {
    min-height: 50px;
    border-color: var(--agr-maroon);
    background: var(--agr-maroon);
    color: #fff;
}

.agr-form-status {
    margin: 0;
    min-height: 20px;
    color: var(--agr-maroon);
    font-weight: 750;
}

@keyframes agr-row-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes agr-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(199, 154, 67, .42); }
    50% { box-shadow: 0 0 0 8px rgba(199, 154, 67, 0); }
}

@media (max-width: 1024px) {
    .agr-booking {
        grid-template-columns: 1fr;
    }

    .agr-history-shell {
        max-height: 310px;
    }

    .agr-live-rates {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .agr-wrap {
        padding: 22px 14px;
    }

    .agr-hero {
        grid-template-columns: 1fr;
        align-items: start;
        padding: 18px;
    }

    .agr-hero-rate {
        width: 100%;
        min-width: 0;
    }

    .agr-panel-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .agr-rate-card,
    .agr-trends,
    .agr-booking {
        padding: 14px;
    }

    .agr-live-rates {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .agr-live-rate {
        min-height: 98px;
        padding: 12px;
    }

    .agr-live-rate strong {
        font-size: 18px;
    }

    .agr-table,
    .agr-table thead,
    .agr-table tbody,
    .agr-table th,
    .agr-table td,
    .agr-table tr {
        display: block;
        width: 100%;
    }

    .agr-table thead {
        display: none;
    }

    .agr-table tbody tr {
        padding: 10px 12px;
        border-bottom: 1px solid var(--agr-line);
    }

    .agr-table tbody tr:last-child {
        border-bottom: 0;
    }

    .agr-table th,
    .agr-table td {
        display: flex;
        justify-content: space-between;
        gap: 16px;
        padding: 6px 0;
        border: 0;
        background: transparent;
        text-align: right;
    }

    .agr-table tbody th {
        color: var(--agr-maroon);
        font-size: 15px;
    }

    .agr-rate-card .agr-table td:nth-of-type(1)::before { content: "Today"; }
    .agr-rate-card .agr-table td:nth-of-type(2)::before { content: "Yesterday"; }
    .agr-history-table td:nth-of-type(1)::before { content: "Date"; }
    .agr-history-table td:nth-of-type(2)::before { content: "Rate"; }

    .agr-table td::before {
        color: var(--agr-muted);
        font-weight: 750;
        text-align: left;
    }

    .agr-table td span {
        font-size: 11px;
    }

    .agr-history-shell {
        max-height: 350px;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-y;
    }

    .agr-chart-wrap,
    .agr-chart-wrap canvas {
        min-height: 350px;
        height: 350px;
    }

    .agr-form {
        grid-template-columns: 1fr;
    }
}
