.rw-asia-contact-page {
    --rw-contact-red: #e2382a;
    --rw-contact-black: #2c2c2c;
    --rw-contact-muted: #6c757d;
    --rw-contact-line: #e9ecef;
    --rw-contact-surface: #f8f9fa;
    --rw-contact-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    width: 100%;
    background: transparent;
}

.rw-asia-contact-finder {
    --rw-contact-red: #e90006;
    --rw-contact-black: #1a1a1a;
    --rw-contact-muted: #626262;
    --rw-contact-line: #d4d4d4;
    --rw-contact-surface: #f5f5f5;
    color: var(--rw-contact-black);
    font-family: var(--ruwac-font-family, "Aeonik Pro", sans-serif);
}

.rw-asia-contact-finder *,
.rw-asia-contact-finder *::before,
.rw-asia-contact-finder *::after {
    box-sizing: border-box;
}

.rw-asia-contact-finder--page {
    --rw-contact-red: #e2382a;
    --rw-contact-black: #2c2c2c;
    --rw-contact-muted: #6c757d;
    --rw-contact-line: #e9ecef;
    --rw-contact-surface: #f8f9fa;
    --rw-contact-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 20px;
    max-width: 1664px;
    width: 100%;
    height: 750px;
    max-height: 85vh;
    min-height: 750px;
    margin: 20px auto 40px;
    padding-inline: 72px;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.rw-asia-contact-page__sidebar {
    display: flex;
    flex: 0 0 30%;
    flex-direction: column;
    width: 30%;
    min-width: 0;
    height: 100%;
    overflow: hidden;
    border: 1px solid var(--rw-contact-line);
    border-radius: 12px;
    background: #fff;
    box-shadow: var(--rw-contact-shadow);
}

.rw-asia-contact-page__search {
    padding: 30px 30px 20px;
}

.rw-asia-contact-page__search h1 {
    margin: 0 0 10px;
    color: var(--rw-contact-black);
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
}

.rw-asia-contact-page__intro {
    margin: 0 0 25px;
    color: var(--rw-contact-muted);
    line-height: 1.5;
}

.rw-asia-contact-page__sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.rw-asia-contact-finder--page .rw-asia-contact-finder__controls {
    display: block;
}

.rw-asia-contact-finder--page .rw-asia-contact-finder__controls select {
    height: 50px;
    border-color: var(--rw-contact-line);
    background-color: #f8f9fa;
}

.rw-asia-contact-finder--page .rw-asia-contact-finder__controls select:focus {
    border-color: var(--rw-contact-red);
    background-color: #fff;
    box-shadow: 0 0 0 2px rgba(226, 56, 42, 0.3);
}

.rw-asia-contact-finder--page .rw-asia-contact-page__request {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--rw-contact-line);
}

.rw-asia-contact-page__results-panel {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 0 30px 30px;
    background: #fdfdfd;
}

.rw-asia-contact-page__results-panel::-webkit-scrollbar {
    width: 6px;
}

.rw-asia-contact-page__results-panel::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.rw-asia-contact-page__results-panel::-webkit-scrollbar-thumb {
    border-radius: 4px;
    background: #ccc;
}

.rw-asia-contact-finder--page .rw-asia-contact-finder__status {
    margin-bottom: 18px;
    padding: 18px 0 14px;
    border-bottom: 1px solid var(--rw-contact-line);
    color: #212529;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
}

.rw-asia-contact-finder--page .rw-asia-contact-finder__results {
    display: block;
}

.rw-asia-contact-finder--page .rw-asia-contact-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
    padding: 16px;
    border: 1px solid #e1e4e8;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.rw-asia-contact-finder--page .rw-asia-contact-card:hover {
    border-color: var(--rw-contact-red);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.rw-asia-contact-finder--page .rw-asia-contact-card__image {
    width: 94px;
    height: auto;
    max-height: 94px;
    border: 0;
    border-radius: 0;
    background: transparent;
    object-fit: contain;
}

.rw-asia-contact-finder--page .rw-asia-contact-card__type {
    display: inline-flex;
    width: fit-content;
    margin: 0 0 8px;
    padding: 3px 10px;
    border-radius: 100px;
    color: #fff;
    background: var(--rw-contact-red);
    font-size: 0.7rem;
    letter-spacing: 0.5px;
}

.rw-asia-contact-finder--page .rw-asia-contact-card__type.service {
    background: #2a7de2;
}

.rw-asia-contact-finder--page .rw-asia-contact-card__type.partner {
    background: #6c757d;
}

.rw-asia-contact-finder--page .rw-asia-contact-card h3 {
    font-size: 1.1rem;
    line-height: 1.2;
}

.rw-asia-contact-finder--page .rw-asia-contact-card__company {
    margin: 4px 0 10px;
    font-size: 0.9rem;
}

.rw-asia-contact-finder--page .rw-asia-contact-card__links {
    gap: 0;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
}

.rw-asia-contact-finder--page .rw-asia-contact-card__links a {
    padding: 3px 0;
    color: var(--rw-contact-black);
    font-size: 0.92rem;
    line-height: 1.25;
    text-decoration: none;
}

.rw-asia-contact-map {
    position: relative;
    flex: 0 0 70%;
    width: 70%;
    min-width: 0;
    height: 100%;
    overflow: hidden;
    border: 1px solid var(--rw-contact-line);
    border-radius: 12px;
    background: var(--rw-contact-surface);
    box-shadow: var(--rw-contact-shadow);
}

.rw-asia-contact-map__canvas {
    width: 100%;
    height: 100%;
}

.rw-asia-contact-map__loading {
    position: absolute;
    z-index: 500;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 24px;
    color: #4b5563;
    background: linear-gradient(135deg, #edf1f4 0%, #e3e7eb 100%);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-align: center;
}

.rw-asia-contact-map__loading[hidden] {
    display: none;
}

.rw-asia-contact-map__marker-shell {
    border: 0;
    background: transparent;
}

.rw-asia-contact-map__marker {
    display: block;
    width: 60px;
    height: 60px;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    transition: transform 180ms ease;
}

.rw-asia-contact-map__marker:hover {
    transform: scale(1.08);
    box-shadow: none;
}

.rw-asia-contact-map__marker img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.rw-asia-contact-map__popup {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    min-width: 180px;
    color: var(--rw-contact-black);
    font-family: var(--ruwac-font-family, "Aeonik Pro", sans-serif);
}

.rw-asia-contact-map__popup strong {
    color: var(--rw-contact-red);
    font-size: 1rem;
}

.rw-asia-contact-map__popup a {
    color: var(--rw-contact-black);
    overflow-wrap: anywhere;
    text-underline-offset: 3px;
}

/* The full contact page uses the legacy finder block. These overrides are
   activated by the Asia-only script and mirror the universal panel controls. */
#ruwac-contact-finder-app #ruwac-intro-text {
    display: none !important;
}

.rw-asia-contact-finder-page-legacy .ruwac-input-group {
    height: 50px;
}

.rw-asia-contact-finder-page-legacy #ruwac-plz-input,
.rw-asia-contact-finder-page-legacy #ruwac-country-select {
    width: 100%;
    padding: 0 15px;
    border: 1px solid var(--rw-border-color, #dee2e6);
    color: var(--rw-text-on-light-highlight, #212529);
    background-color: var(--rw-bg-light-1, #f8f9fa);
    font-size: 1rem;
    transition: all 0.2s ease;
}

.rw-asia-contact-finder-page-legacy #ruwac-plz-input {
    border-right: 0;
    border-radius: 8px 0 0 8px;
}

.rw-asia-contact-finder-page-legacy #ruwac-country-select {
    padding-right: 42px;
    border-radius: 8px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath fill='none' stroke='%236c757d' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M1 1.5 7 7.5l6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 14px 9px;
    cursor: pointer;
}

.rw-asia-contact-finder-page-legacy #ruwac-plz-input:focus,
.rw-asia-contact-finder-page-legacy #ruwac-country-select:focus {
    z-index: 2;
    outline: none;
    border-color: var(--rw-primary-color, #e2382a);
    background-color: #fff;
    box-shadow: 0 0 0 2px rgba(226, 56, 42, 0.3);
}

.rw-asia-contact-finder__form label {
    display: block;
    margin-bottom: 12px;
    font-size: 1rem;
    font-weight: 700;
}

.rw-asia-contact-finder__controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
}

.rw-asia-contact-finder__controls select,
.rw-asia-contact-finder__controls input {
    width: 100%;
    height: 50px;
    padding: 0 42px 0 15px;
    border: 1px solid var(--rw-border-color, #dee2e6);
    border-radius: 8px;
    color: var(--rw-text-on-light-highlight, #212529);
    background-color: var(--rw-bg-light-1, #f8f9fa);
    font: inherit;
    transition: all 0.2s ease;
}

.rw-asia-contact-finder__controls select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath fill='none' stroke='%236c757d' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M1 1.5 7 7.5l6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 14px 9px;
    cursor: pointer;
}

.rw-asia-contact-finder__controls select:focus,
.rw-asia-contact-finder__controls input:focus {
    z-index: 2;
    outline: none;
    border-color: var(--rw-primary-color, #e2382a);
    background-color: #fff;
    box-shadow: 0 0 0 2px rgba(226, 56, 42, 0.3);
}

.rw-asia-contact-panel__close:focus-visible {
    outline: 3px solid rgba(233, 0, 6, 0.28);
    outline-offset: 3px;
}

.rw-asia-contact-finder__status {
    grid-column: 1 / -1;
    min-height: 24px;
    color: var(--rw-contact-muted);
    font-size: 0.95rem;
}

.rw-asia-contact-finder__status:empty {
    min-height: 0;
}

.rw-asia-contact-finder__results {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.rw-asia-contact-card {
    display: grid;
    grid-template-columns: 90px minmax(0, 1fr);
    gap: 18px;
    min-width: 0;
    padding: 22px;
    border: 1px solid var(--rw-contact-line);
    background: #fff;
}

.rw-asia-contact-card__image {
    width: 90px;
    height: 90px;
    border-radius: 4px;
    object-fit: contain;
    background: var(--rw-contact-surface);
}

.rw-asia-contact-card__type {
    margin: 0 0 8px;
    color: var(--rw-contact-red);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.rw-asia-contact-card h3 {
    margin: 0;
    overflow-wrap: anywhere;
    font-size: 1.22rem;
    line-height: 1.15;
}

.rw-asia-contact-card__company {
    margin: 5px 0 12px;
    color: var(--rw-contact-muted);
    line-height: 1.35;
}

.rw-asia-contact-card__links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
}

.rw-asia-contact-card__links a {
    color: var(--rw-contact-black);
    overflow-wrap: anywhere;
    text-decoration-color: rgba(233, 0, 6, 0.45);
    text-underline-offset: 3px;
}

.rw-asia-contact-card__links a:hover {
    color: var(--rw-contact-red);
}

.rw-asia-contact-panel[hidden] {
    display: none !important;
}

.rw-asia-contact-panel {
    position: fixed;
    z-index: 2000000000;
    inset: 0;
}

.rw-asia-contact-panel__backdrop {
    position: absolute;
    z-index: 2000;
    inset: 0;
    width: 100%;
    border: 0;
    background: rgba(26, 26, 26, 0.48);
    cursor: default;
}

.rw-asia-contact-panel__dialog {
    position: absolute;
    z-index: 2001;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 480px;
    height: 100%;
    overflow: auto;
    background: #fff;
    box-shadow: -24px 0 70px rgba(0, 0, 0, 0.16);
    animation: rwAsiaPanelIn 220ms ease-out both;
}

.rw-asia-contact-panel__content {
    padding: clamp(34px, 6vw, 70px) clamp(24px, 5vw, 54px);
}

.rw-asia-contact-panel__close {
    position: sticky;
    z-index: 2;
    top: 18px;
    float: right;
    width: 44px;
    height: 44px;
    margin: 18px 18px 0 0;
    border: 1px solid var(--rw-contact-line, #d4d4d4);
    border-radius: 50%;
    color: #1a1a1a;
    background: #fff;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
}

.rw-asia-contact-finder--panel .rw-asia-contact-finder__header {
    margin: 24px 0 32px;
    padding-right: 24px;
}

.rw-asia-contact-finder--panel .rw-asia-contact-finder__header h2 {
    margin: 0;
    color: var(--rw-contact-red);
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 700;
    line-height: 0.98;
    letter-spacing: -0.035em;
}

.rw-asia-contact-finder--panel .rw-asia-contact-finder__controls {
    grid-template-columns: 1fr;
}

.rw-asia-contact-finder--panel .rw-asia-contact-finder__results {
    grid-template-columns: 1fr;
    margin-top: 18px;
}

.rw-asia-contact-finder--panel .rw-asia-contact-card {
    grid-template-columns: 72px minmax(0, 1fr);
    padding: 16px;
}

.rw-asia-contact-finder--panel .rw-asia-contact-card__image {
    width: 72px;
    height: 72px;
}

.rw-asia-contact-finder__actions,
.rw-asia-contact-page__request {
    grid-column: 1 / -1;
}

.rw-asia-contact-finder__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--rw-contact-line);
}

.rw-asia-contact-page__request {
    margin-top: 6px;
}

body.rw-asia-contact-panel-open {
    overflow: hidden;
}

@keyframes rwAsiaPanelIn {
    from { transform: translateX(35px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@media (max-width: 1279px) {
    .rw-asia-contact-finder--page {
        padding-inline: 32px;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .rw-asia-contact-finder--page {
        flex-direction: column;
        height: auto;
        max-height: none;
        min-height: 0;
    }

    .rw-asia-contact-page__sidebar,
    .rw-asia-contact-map {
        flex: 0 0 auto;
        width: 100%;
        height: auto;
    }

    .rw-asia-contact-page__results-panel {
        max-height: 520px;
    }

    .rw-asia-contact-map {
        height: 420px;
    }
}

@media (max-width: 767px) {
    .rw-asia-contact-finder--page {
        flex-direction: column;
        gap: 16px;
        height: auto;
        max-height: none;
        min-height: 0;
        margin: 12px auto 24px;
        padding-inline: 16px;
    }

    .rw-asia-contact-page__sidebar {
        flex: 0 0 auto;
        width: 100%;
        height: auto;
        max-height: none;
    }

    .rw-asia-contact-page__search {
        padding: 20px 20px 16px;
    }

    .rw-asia-contact-page__results-panel {
        max-height: 620px;
        padding: 0 20px 20px;
    }

    .rw-asia-contact-finder--page .rw-asia-contact-finder__controls select {
        height: 48px;
    }

    .rw-asia-contact-map {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .rw-asia-contact-panel__dialog,
    .rw-asia-contact-finder__controls button {
        animation: none;
        transition: none;
    }
}
