/* Travelaux marketplace extension — intentionally scoped to .mp-* components. */

.mp-page {
    min-height: 70vh;
    padding-top: 0;
    background: var(--bg-soft);
}

.mp-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(64px, 8vw, 108px) 0 clamp(54px, 7vw, 88px);
    color: var(--white) !important;
    background:
        radial-gradient(circle at 88% 20%, rgba(113, 176, 246, 0.28), transparent 32%),
        #043b7d !important;
}

.mp-hero-grid {
    display: grid;
    gap: 36px;
    align-items: end;
}

.mp-hero-copy {
    max-width: 820px;
}

.mp-hero .eyebrow {
    color: #cfe4ff !important;
}

.mp-hero .mp-hero-copy h1,
.mp-hero .mp-hero-copy h2 {
    color: #fff !important;
}

.mp-hero h1,
.mp-section h1 {
    max-width: 980px;
    font-size: clamp(2.75rem, 7vw, 5.8rem);
    line-height: 0.98;
}

.mp-hero h2,
.mp-section h2 {
    font-size: clamp(2.2rem, 5vw, 4rem);
    line-height: 1;
}

.mp-hero-copy > p:not(.eyebrow) {
    max-width: 760px;
    margin-top: 24px;
    color: #e7f1ff !important;
    font-size: clamp(1rem, 2vw, 1.22rem);
    line-height: 1.75;
}

.mp-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.mp-button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    font: 800 0.78rem/1 var(--font-body);
    letter-spacing: 0.08em;
    text-align: center;
    text-transform: uppercase;
    transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.mp-button:hover {
    transform: translateY(-1px);
    background: var(--primary-dark);
}

.mp-button:focus-visible,
.mp-input:focus,
.mp-select:focus,
.mp-textarea:focus {
    outline: 3px solid rgba(63, 137, 222, 0.28);
    outline-offset: 2px;
}

.mp-button-secondary {
    border-color: var(--primary-border);
    background: #fff;
    color: var(--primary-dark);
}

.mp-button-secondary:hover {
    background: var(--primary-light);
}

.mp-button-light {
    background: #fff;
    color: var(--primary-dark);
}

.mp-button-light:hover {
    background: #eaf3ff;
}

.mp-button-danger {
    background: #9f1d2f;
}

.mp-section {
    padding: clamp(54px, 7vw, 88px) 0;
}

.mp-section-white {
    background: #fff !important;
}

.mp-page > .mp-section:not(.mp-section-white) {
    background: var(--bg-soft) !important;
}

.mp-section-head {
    display: grid;
    gap: 16px;
    max-width: 820px;
    margin-bottom: 34px;
}

.mp-section-head p {
    color: var(--muted);
    line-height: 1.75;
}

.mp-grid {
    display: grid;
    gap: 20px;
}

.mp-grid-2,
.mp-grid-3,
.mp-grid-4 {
    grid-template-columns: minmax(0, 1fr);
}

.mp-card {
    min-width: 0;
    overflow: hidden;
    padding: clamp(22px, 3vw, 32px);
    border: 1px solid var(--primary-border);
    border-radius: 22px;
    background: #fff;
    color: var(--text) !important;
    box-shadow: 0 14px 40px rgba(6, 69, 143, 0.08);
}

.mp-card h2 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1;
}

.mp-card h3 {
    font-size: clamp(1.55rem, 3vw, 2.2rem);
    line-height: 1.05;
}

.mp-card p {
    margin-top: 14px;
    color: var(--muted);
}

.mp-card .eyebrow {
    color: var(--primary) !important;
}

.mp-card .mp-actions {
    margin-top: 22px;
}

.mp-choice-card {
    display: flex;
    min-height: 270px;
    flex-direction: column;
    justify-content: space-between;
}

.mp-card-number {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    margin-bottom: 34px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 900;
}

.mp-search-panel {
    position: relative;
    z-index: 3;
    margin-top: -42px;
}

.mp-form {
    display: grid;
    gap: 22px;
}

.mp-form-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
}

.mp-field {
    display: grid;
    min-width: 0;
    gap: 8px;
}

.mp-field > label,
.mp-field > span:first-child,
.mp-legend {
    color: #17375f;
    font-size: 0.84rem;
    font-weight: 800;
}

.mp-field small,
.mp-help {
    color: var(--muted-2);
    font-size: 0.8rem;
    line-height: 1.55;
}

.mp-input,
.mp-select,
.mp-textarea {
    width: 100%;
    min-width: 0;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid #b7cde7;
    border-radius: 12px;
    background: #fff;
    color: var(--text);
}

.mp-textarea {
    min-height: 118px;
    resize: vertical;
}

.mp-fieldset {
    min-width: 0;
    margin: 0;
    padding: 18px;
    border: 1px solid var(--primary-border);
    border-radius: 16px;
}

.mp-check-grid {
    display: grid;
    gap: 10px;
    margin-top: 12px;
}

.mp-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #304963;
    font-size: 0.9rem;
    line-height: 1.55;
}

.mp-check input {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    margin-top: 3px;
    accent-color: var(--primary);
}

.mp-form-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.mp-alert {
    padding: 15px 18px;
    border: 1px solid #a9c8ed;
    border-radius: 14px;
    background: #edf5ff;
    color: #164779;
    line-height: 1.55;
}

.mp-alert-success {
    border-color: #a7d9bd;
    background: #effbf4;
    color: #17613b;
}

.mp-alert-error {
    border-color: #e9b3bc;
    background: #fff3f5;
    color: #8a2030;
}

.mp-alert-warning {
    border-color: #e6ce95;
    background: #fff9e9;
    color: #6b4b09;
}

.mp-alert ul {
    margin: 8px 0 0;
    padding-left: 20px;
}

.mp-filter-layout {
    display: grid;
    gap: 24px;
    align-items: start;
}

.mp-filter-sidebar {
    position: relative;
}

.mp-results {
    display: grid;
    min-width: 0;
    gap: 18px;
}

.mp-result-card {
    display: grid;
    min-width: 0;
    gap: 22px;
}

.mp-profile-photo,
.mp-profile-placeholder {
    width: 116px;
    height: 116px;
    flex: 0 0 auto;
    border-radius: 18px;
    object-fit: cover;
}

.mp-profile-placeholder {
    display: grid;
    place-items: center;
    border: 1px dashed #8db3de;
    background: var(--primary-light);
    color: var(--primary-dark);
    font-weight: 800;
    text-align: center;
}

.mp-result-main {
    min-width: 0;
}

.mp-result-top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 14px;
}

.mp-result-card h2 {
    font-size: clamp(1.8rem, 4vw, 2.7rem);
}

.mp-meta,
.mp-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.mp-chip,
.mp-status {
    display: inline-flex;
    max-width: 100%;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    border: 1px solid #c2d8f0;
    border-radius: 999px;
    background: #f5f9ff;
    color: #24517f;
    font-size: 0.76rem;
    font-weight: 700;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.mp-status-available {
    border-color: #a7d9bd;
    background: #effbf4;
    color: #17613b;
}

.mp-status-partially_available,
.mp-status-confirmation_required {
    border-color: #e6ce95;
    background: #fff9e9;
    color: #6b4b09;
}

.mp-price {
    color: var(--primary-dark);
    font-size: 1.05rem;
    font-weight: 900;
}

.mp-rating {
    color: #62460d;
    font-weight: 800;
}

.mp-empty {
    padding: clamp(34px, 6vw, 64px);
    border: 1px dashed #8db3de;
    border-radius: 22px;
    background: #fff;
    text-align: center;
}

.mp-empty h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
}

.mp-empty p {
    max-width: 660px;
    margin: 18px auto 0;
    color: var(--muted);
}

.mp-empty .mp-actions {
    justify-content: center;
}

.mp-profile-hero {
    display: grid;
    gap: 28px;
    align-items: center;
}

.mp-profile-hero .mp-profile-photo,
.mp-profile-hero .mp-profile-placeholder {
    width: min(220px, 65vw);
    height: min(220px, 65vw);
}

.mp-detail-list {
    display: grid;
    gap: 14px;
    margin: 22px 0 0;
}

.mp-detail-row {
    display: grid;
    gap: 5px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e2ecf7;
}

.mp-detail-row dt {
    color: #17375f;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.mp-detail-row dd {
    margin: 0;
    color: var(--muted);
}

.mp-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--primary-border);
    border-radius: 16px;
    background: #fff;
}

.mp-table {
    width: 100%;
    min-width: 660px;
    border-collapse: collapse;
}

.mp-table th,
.mp-table td {
    padding: 13px 15px;
    border-bottom: 1px solid #e2ecf7;
    text-align: left;
    vertical-align: top;
}

.mp-table th {
    background: #edf5ff;
    color: #17375f;
    font-size: 0.78rem;
    text-transform: uppercase;
}

.mp-dashboard-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.mp-dashboard-nav a {
    padding: 8px 12px;
    border: 1px solid var(--primary-border);
    border-radius: 999px;
    background: #fff;
    color: var(--primary-dark);
    font-size: 0.78rem;
    font-weight: 800;
}

.mp-dashboard-section {
    scroll-margin-top: calc(var(--header-height) + 20px);
}

.mp-review {
    padding: 20px 0;
    border-bottom: 1px solid #e2ecf7;
}

.mp-review:last-child {
    border-bottom: 0;
}

.mp-review p {
    color: #304963;
}

.mp-review-byline {
    margin-top: 10px;
    color: var(--muted-2);
    font-size: 0.82rem;
}

.mp-hidden {
    display: none !important;
}

.mp-honeypot {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

/* Homepage marketplace entry dialog */
.mp-modal-backdrop {
    position: fixed;
    z-index: 9998;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 18px;
    background: rgba(3, 25, 53, 0.72);
    backdrop-filter: blur(8px);
}

.mp-modal-backdrop[hidden] {
    display: none;
}

.mp-modal {
    position: relative;
    width: min(860px, 100%);
    max-height: min(760px, calc(100vh - 36px));
    overflow-y: auto;
    padding: clamp(24px, 5vw, 46px);
    border: 1px solid #d5e5f8;
    border-radius: 26px;
    background: #fff;
    color: var(--text);
    box-shadow: 0 28px 80px rgba(1, 28, 61, 0.35);
}

.mp-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid #c2d8f0;
    border-radius: 50%;
    background: #fff;
    color: var(--primary-dark);
    font-size: 1.4rem;
}

.mp-modal-head {
    max-width: 660px;
    padding-right: 34px;
}

.mp-modal-head h2 {
    font-size: clamp(2.25rem, 6vw, 4.2rem);
    line-height: 0.98;
}

.mp-modal-head p {
    margin-top: 16px;
    color: var(--muted);
}

.mp-modal-grid {
    display: grid;
    gap: 16px;
    margin-top: 28px;
}

.mp-modal-choice {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    gap: 22px;
    padding: 22px;
    border: 1px solid #bdd4ee;
    border-radius: 18px;
    background: #f7fbff;
}

.mp-modal-choice strong {
    display: block;
    color: var(--primary-dark);
    font-size: 1.05rem;
    line-height: 1.35;
}

.mp-modal-choice span {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-size: 0.9rem;
}

body.mp-modal-open {
    overflow: hidden;
}

@media (min-width: 700px) {
    .mp-grid-2,
    .mp-form-grid-2,
    .mp-modal-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mp-grid-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mp-result-card {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .mp-profile-hero {
        grid-template-columns: auto minmax(0, 1fr);
    }
}

@media (min-width: 920px) {
    .mp-hero-grid {
        grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
    }

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

    .mp-grid-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .mp-form-grid-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .mp-filter-layout {
        grid-template-columns: minmax(260px, 0.34fr) minmax(0, 1fr);
    }

    .mp-filter-sidebar {
        position: sticky;
        top: calc(var(--header-height) + 18px);
    }
}

@media (max-width: 560px) {
    .mp-actions,
    .mp-form-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .mp-button {
        width: 100%;
    }

    .mp-card {
        border-radius: 18px;
    }

    .mp-modal-backdrop {
        align-items: end;
        padding: 8px;
    }

    .mp-modal {
        max-height: calc(100vh - 16px);
        border-radius: 22px 22px 12px 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mp-button {
        transition: none;
    }
}
