/* Metro Lodge conversion widgets — mobile-first booking CTAs */

.ml-conv {
    --ml-green: #25d366;
    --ml-green-dark: #1da851;
    --ml-blue: #1565c0;
    --ml-blue-dark: #0d47a1;
    --ml-navy: #0f2744;
    --ml-gold: #f59e0b;
    --ml-radius: 12px;
    --ml-shadow: 0 8px 24px rgba(15, 39, 68, 0.12);
    font-family: inherit;
    color: #1a1a1a;
    box-sizing: border-box;
}

.ml-conv *,
.ml-conv *::before,
.ml-conv *::after {
    box-sizing: border-box;
}

/* Hero */
.ml-conv-hero {
    background: linear-gradient(135deg, #0f2744 0%, #1e3a5f 55%, #2563eb 100%);
    color: #fff;
    border-radius: var(--ml-radius);
    padding: 2rem 1.25rem;
    margin: 0 0 1.5rem;
    text-align: center;
}

.ml-conv-hero h1 {
    margin: 0 0 0.75rem;
    font-size: clamp(1.5rem, 4.5vw, 2.25rem);
    line-height: 1.2;
    font-weight: 700;
    color: #fff;
}

.ml-conv-hero p {
    margin: 0 auto 1.5rem;
    max-width: 36rem;
    font-size: 1.05rem;
    opacity: 0.95;
    line-height: 1.5;
}

.ml-conv-cta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    max-width: 32rem;
    margin: 0 auto;
}

@media (min-width: 640px) {
    .ml-conv-cta-grid {
        grid-template-columns: repeat(4, 1fr);
        max-width: 48rem;
    }
}

.ml-conv-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 48px;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none !important;
    border: none;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    line-height: 1.2;
    text-align: center;
}

.ml-conv-btn:hover,
.ml-conv-btn:focus {
    transform: translateY(-1px);
    box-shadow: var(--ml-shadow);
    text-decoration: none !important;
}

.ml-conv-btn--whatsapp {
    background: var(--ml-green);
    color: #fff !important;
}

.ml-conv-btn--whatsapp:hover {
    background: var(--ml-green-dark);
    color: #fff !important;
}

.ml-conv-btn--book {
    background: var(--ml-blue);
    color: #fff !important;
}

.ml-conv-btn--book:hover {
    background: var(--ml-blue-dark);
    color: #fff !important;
}

.ml-conv-btn--outline {
    background: rgba(255, 255, 255, 0.12);
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.ml-conv-btn--outline:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff !important;
}

.ml-conv-btn--phone {
    background: #fff;
    color: var(--ml-navy) !important;
}

/* Section headings */
.ml-conv-section {
    margin: 2rem 0;
}

.ml-conv-section h2 {
    font-size: clamp(1.25rem, 3.5vw, 1.75rem);
    margin: 0 0 1rem;
    color: var(--ml-navy);
    text-align: center;
}

/* Rate cards */
.ml-conv-rates {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

@media (min-width: 540px) {
    .ml-conv-rates {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 900px) {
    .ml-conv-rates {
        grid-template-columns: repeat(3, 1fr);
    }
}

.ml-conv-rate-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: var(--ml-radius);
    padding: 1rem 1.1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.ml-conv-rate-card h3 {
    margin: 0;
    font-size: 1.05rem;
    color: var(--ml-navy);
}

.ml-conv-rate-card .ml-conv-area {
    font-size: 0.85rem;
    color: #6b7280;
}

.ml-conv-rate-card .ml-conv-price {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--ml-blue);
    margin: 0.25rem 0;
}

.ml-conv-rate-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 0.5rem;
}

.ml-conv-rate-actions .ml-conv-btn {
    flex: 1 1 auto;
    min-width: 7rem;
    font-size: 0.85rem;
    min-height: 42px;
    padding: 0.5rem 0.75rem;
}

.ml-conv-rate-actions .ml-conv-btn--outline-dark {
    background: #f3f4f6;
    color: var(--ml-navy) !important;
    border: 1px solid #d1d5db;
}

/* Compare table */
.ml-conv-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--ml-radius);
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.ml-conv-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 520px;
    background: #fff;
}

.ml-conv-table th,
.ml-conv-table td {
    padding: 0.85rem 1rem;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.95rem;
}

.ml-conv-table th {
    background: var(--ml-navy);
    color: #fff;
    font-weight: 600;
    white-space: nowrap;
}

.ml-conv-table tr:last-child td {
    border-bottom: none;
}

.ml-conv-table tbody tr:hover {
    background: #f8fafc;
}

.ml-conv-table .ml-conv-price {
    font-weight: 700;
    color: var(--ml-blue);
    white-space: nowrap;
}

/* Trust grid */
.ml-conv-trust {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

@media (min-width: 768px) {
    .ml-conv-trust {
        grid-template-columns: repeat(4, 1fr);
    }
}

.ml-conv-trust-item {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: var(--ml-radius);
    padding: 1rem;
    text-align: center;
}

.ml-conv-trust-item .ml-conv-trust-icon {
    font-size: 1.5rem;
    line-height: 1;
    margin-bottom: 0.35rem;
}

.ml-conv-trust-item strong {
    display: block;
    font-size: 0.9rem;
    color: var(--ml-navy);
    margin-bottom: 0.2rem;
}

.ml-conv-trust-item span {
    font-size: 0.8rem;
    color: #6b7280;
    line-height: 1.35;
}

/* Floating WhatsApp */
.ml-wa-fab {
    position: fixed;
    right: 16px;
    bottom: 80px;
    z-index: 99990;
}

.ml-wa-fab__btn {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: var(--ml-green);
    color: #fff;
    border: none;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.45);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    line-height: 1;
    transition: transform 0.15s ease;
}

.ml-wa-fab__btn:hover {
    transform: scale(1.05);
    background: var(--ml-green-dark);
}

.ml-wa-fab__panel {
    display: none;
    position: absolute;
    right: 0;
    bottom: calc(100% + 10px);
    width: min(280px, calc(100vw - 32px));
    background: #fff;
    border-radius: var(--ml-radius);
    box-shadow: var(--ml-shadow);
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.ml-wa-fab.is-open .ml-wa-fab__panel {
    display: block;
}

.ml-wa-fab__head {
    background: var(--ml-green);
    color: #fff;
    padding: 0.85rem 1rem;
    font-weight: 600;
    font-size: 0.95rem;
}

.ml-wa-fab__list {
    list-style: none;
    margin: 0;
    padding: 0.35rem 0;
}

.ml-wa-fab__list a {
    display: block;
    padding: 0.75rem 1rem;
    color: #1a1a1a !important;
    text-decoration: none !important;
    font-size: 0.92rem;
    border-bottom: 1px solid #f3f4f6;
}

.ml-wa-fab__list a:hover {
    background: #f0fdf4;
    color: var(--ml-green-dark) !important;
}

.ml-wa-fab__list li:last-child a {
    border-bottom: none;
}

/* Sticky book bar */
.ml-sticky-book {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99980;
    background: #fff;
    border-top: 1px solid #e5e7eb;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
    padding: 0.5rem 0.75rem calc(0.5rem + env(safe-area-inset-bottom, 0px));
    display: flex;
    gap: 0.5rem;
    align-items: center;
    justify-content: center;
}

.ml-sticky-book .ml-conv-btn {
    flex: 1;
    max-width: 12rem;
    min-height: 46px;
}

.ml-sticky-book .ml-conv-btn--book {
    flex: 2;
    max-width: none;
}

.ml-sticky-book .ml-conv-btn--outline-dark {
    background: #f3f4f6;
    color: var(--ml-navy) !important;
    border: 1px solid #d1d5db;
}

body.ml-has-sticky-book {
    padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
}

/* Loading state */
.ml-conv-loading {
    text-align: center;
    padding: 2rem;
    color: #6b7280;
}
