/* ============================================================
   Trip To Mountains — Trip Calculator (CSS STYLES)
   File: /assets/css/trip-calculator.css
   ============================================================ */

/* ── Typography & Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

/* ── Custom Theme Design Variables ── */
:root {
    --ttm-primary:        #1a6b3a;       /* Deep Forest Green */
    --ttm-primary-light:  #e8f3ec;
    --ttm-gold:           #F9AB30;       /* Rich Gold */
    --ttm-gold-light:     #fef6eb;
    --ttm-white:          #ffffff;
    --ttm-light:          #f8f9fa;
    --ttm-border:         #cbd5e1;       /* Gray border */
    --ttm-text:           #1e293b;
    --ttm-muted:          #64748b;
    --ttm-success:        #25D366;       /* WhatsApp Green */
    --ttm-danger:         #ef4444;       /* Error Red */
    --ttm-radius-sm:      8px;
    --ttm-radius-md:      12px;
    --ttm-radius-lg:      16px;
    --ttm-shadow-sm:      0 4px 10px rgba(15, 23, 42, 0.04);
    --ttm-shadow-md:      0 8px 24px rgba(15, 23, 42, 0.08);
    --ttm-shadow-lg:      0 20px 40px rgba(15, 23, 42, 0.15);
    --ttm-transition:     all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --ttm-font:           'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ============================================================
   RESET & SCOPED STYLES
   ============================================================ */
#ttm-calc-popup,
#ttm-calc-trigger {
    font-family: var(--ttm-font);
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

#ttm-calc-popup *,
#ttm-calc-popup *::before,
#ttm-calc-popup *::after {
    box-sizing: border-box;
}

/* ============================================================
   FLOATING TRIGGER BUTTON
   ============================================================ */
#ttm-calc-trigger {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9998;

    display: flex;
    align-items: center;
    gap: 10px;

    background: var(--ttm-primary);
    color: var(--ttm-white);
    border: none;
    border-radius: 50px;
    padding: 15px 25px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(26, 107, 58, 0.3);
    transition: var(--ttm-transition);
}

#ttm-calc-trigger:hover {
    background: #124d29;
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(26, 107, 58, 0.45);
}

#ttm-calc-trigger:active {
    transform: translateY(-1px);
}

.ttm-calc-icon {
    font-size: 15px;
    line-height: 1;
}

.ttm-calc-label {
    white-space: nowrap;
}

@media (max-width: 480px) {
    #ttm-calc-trigger {
        padding: 8px 12px;
        bottom: 20px;
        right: 20px;
    }
    .ttm-calc-label {
        font-size: 11px;
    }
}

/* ============================================================
   DARK BACKDROP OVERLAY
   ============================================================ */
#ttm-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);

    opacity: 0;
    visibility: hidden;
    transition: var(--ttm-transition);
}

#ttm-overlay.ttm-active {
    opacity: 1;
    visibility: visible;
}

/* ============================================================
   POPUP CONTAINER
   ============================================================ */
#ttm-calc-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    z-index: 10000;

    width: 95%;
    max-width: 650px;
    height: 90vh;
    max-height: 850px;

    background: var(--ttm-white);
    border-radius: var(--ttm-radius-lg);
    box-shadow: var(--ttm-shadow-lg);

    display: flex;
    flex-direction: column;
    overflow: hidden;

    opacity: 0;
    visibility: hidden;
    transition: var(--ttm-transition);
}

#ttm-calc-popup.ttm-active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

/* ============================================================
   POPUP HEADER
   ============================================================ */
.ttm-popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 28px;
    background: var(--ttm-primary);
    color: var(--ttm-white);
    flex-shrink: 0;
}

.ttm-popup-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.ttm-popup-title span:first-child {
    font-size: 24px;
}

#ttm-close-btn {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: var(--ttm-white);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--ttm-transition);
    flex-shrink: 0;
}

#ttm-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* ============================================================
   POPUP BODY (Scrollable Container)
   ============================================================ */
.ttm-popup-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px 28px;
    scroll-behavior: smooth;
    background: #fafcfb;
}

.ttm-popup-body::-webkit-scrollbar {
    width: 6px;
}
.ttm-popup-body::-webkit-scrollbar-track {
    background: var(--ttm-light);
}
.ttm-popup-body::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}
.ttm-popup-body::-webkit-scrollbar-thumb:hover {
    background: var(--ttm-muted);
}

/* ============================================================
   TOUR TYPE SEGMENTED TOGGLE
   ============================================================ */
.ttm-tour-type-toggle-wrapper {
    margin-bottom: 24px;
    display: flex;
    justify-content: center;
}

.ttm-tour-type-toggle {
    display: flex;
    background: #f1f5f9;
    padding: 4px;
    border-radius: 30px;
    border: 1px solid var(--ttm-border);
    width: 100%;
    max-width: 450px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.03);
}

.ttm-toggle-btn {
    flex: 1;
    border: none;
    background: none;
    padding: 10px 15px;
    font-size: 14px;
    font-weight: 600;
    color: var(--ttm-muted);
    border-radius: 25px;
    cursor: pointer;
    transition: var(--ttm-transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.ttm-toggle-btn.ttm-active {
    background: var(--ttm-primary);
    color: var(--ttm-white);
    box-shadow: 0 4px 12px rgba(26, 107, 58, 0.2);
}

/* ============================================================
   SECTIONS
   ============================================================ */
.ttm-section {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--ttm-border);
}

.ttm-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.ttm-section-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--ttm-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 16px 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.ttm-section-title small {
    text-transform: none;
    font-weight: 400;
    color: var(--ttm-muted);
    font-size: 12px;
    letter-spacing: 0;
}

/* ============================================================
   FORM FIELDS
   ============================================================ */
.ttm-field-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 600px) {
    .ttm-field-group {
        grid-template-columns: 1fr !important;
        gap: 12px;
    }
}

.ttm-field {
    margin-bottom: 16px;
    position: relative;
}

.ttm-field:last-child {
    margin-bottom: 0;
}

.ttm-field label {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--ttm-text);
    margin-bottom: 8px;
}

.ttm-required {
    color: var(--ttm-danger);
    margin-left: 2px;
}

.ttm-field input[type="text"],
.ttm-field input[type="tel"],
.ttm-field input[type="date"],
.ttm-field input[type="number"],
.ttm-field select,
.ttm-field textarea {
    width: 100%;
    height: 44px; /* Touch-friendly constant height */
    padding: 10px 16px;
    border: 1.5px solid var(--ttm-border);
    border-radius: var(--ttm-radius-sm);
    font-size: 14.5px;
    color: var(--ttm-text);
    background: var(--ttm-white);
    transition: var(--ttm-transition);
    outline: none;
}

.ttm-field textarea {
    height: auto;
    resize: vertical;
    min-height: 80px;
}

.ttm-field input:focus,
.ttm-field select:focus,
.ttm-field textarea:focus {
    border-color: var(--ttm-primary);
    box-shadow: 0 0 0 3px rgba(26, 107, 58, 0.12);
}

.ttm-field select:disabled {
    background: var(--ttm-light);
    color: var(--ttm-muted);
    cursor: not-allowed;
}

.description {
    font-size: 12px;
    color: var(--ttm-muted);
    margin: 6px 0 0 0;
    line-height: 1.4;
}

/* ============================================================
   VALIDATION ERROR HIGHLIGHTS
   ============================================================ */
.ttm-input-error {
    border-color: var(--ttm-danger) !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12) !important;
}

.ttm-field-error-msg {
    color: var(--ttm-danger);
    font-size: 11.5px;
    font-weight: 600;
    display: block;
    margin-top: 6px;
}

/* ============================================================
   DYNAMIC COUNTER CONTROLS
   ============================================================ */
.ttm-counter {
    display: flex;
    align-items: center;
    border: 1.5px solid var(--ttm-border);
    border-radius: var(--ttm-radius-sm);
    overflow: hidden;
    width: fit-content;
    background: var(--ttm-white);
}

.ttm-counter button {
    background: var(--ttm-light);
    border: none;
    width: 44px;
    height: 44px;
    font-size: 20px;
    font-weight: 700;
    color: var(--ttm-primary);
    cursor: pointer;
    transition: var(--ttm-transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ttm-counter button:hover {
    background: var(--ttm-primary);
    color: var(--ttm-white);
}

.ttm-counter button:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.ttm-counter button:disabled:hover {
    background: var(--ttm-light);
    color: var(--ttm-primary);
}

.ttm-counter-display {
    min-width: 54px;
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    color: var(--ttm-text);
}

/* ============================================================
   COLLAPSIBLE DAY ACCORDION (Card-style refinement)
   ============================================================ */
.ttm-accordion-day {
    border: 1.5px solid var(--ttm-border);
    border-radius: var(--ttm-radius-md);
    margin-bottom: 16px;
    background: var(--ttm-white);
    overflow: hidden;
    box-shadow: var(--ttm-shadow-sm);
    transition: var(--ttm-transition);
}

.ttm-accordion-day:hover {
    border-color: #cbd5e1;
    box-shadow: var(--ttm-shadow-md);
}

.ttm-accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    cursor: pointer;
    background: #f8fafc;
    user-select: none;
    transition: var(--ttm-transition);
    width: 100%;
}

.ttm-accordion-header:hover {
    background: #f1f5f9;
}

.ttm-acc-title-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ttm-acc-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--ttm-text);
}

.ttm-day-subtotal-badge {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--ttm-primary);
    background: var(--ttm-primary-light);
    padding: 4px 10px;
    border-radius: 12px;
    border: 1px solid rgba(26,107,58,0.15);
}

/* Validation badges */
.ttm-day-validation-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 20px;
}

.ttm-incomplete-badge {
    color: #e25822;
    background: #fdf0ed;
    border: 1px solid rgba(226, 88, 34, 0.15);
}

.ttm-complete-badge {
    color: #2e7d32;
    background: #e8f5e9;
    border: 1px solid rgba(46, 125, 50, 0.15);
}

.ttm-acc-chevron {
    font-size: 12px;
    color: var(--ttm-muted);
    transition: transform 0.3s ease;
}

.ttm-accordion-header.ttm-acc-open {
    background: var(--ttm-primary-light);
    border-bottom: 1.5px solid var(--ttm-border);
}

.ttm-accordion-header.ttm-acc-open .ttm-acc-chevron {
    transform: rotate(180deg);
    color: var(--ttm-primary);
}

.ttm-accordion-header.ttm-acc-open .ttm-acc-title {
    color: var(--ttm-primary);
}

.ttm-accordion-content {
    padding: 24px;
    background: var(--ttm-white);
}

/* Accordion sections (Places, Hotels, Vehicles) */
.ttm-acc-section {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px dashed var(--ttm-border);
}

.ttm-acc-section h5 {
    margin: 0 0 14px 0;
    font-size: 14px;
    font-weight: 700;
    color: var(--ttm-text);
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ttm-acc-section h5 small {
    font-size: 12px;
    font-weight: normal;
    color: var(--ttm-muted);
}

/* Room Settings Layout (Dropdown side-by-side with Counter) */
.ttm-day-room-settings {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 16px;
}

@media (max-width: 600px) {
    .ttm-day-room-settings {
        grid-template-columns: 1fr !important;
        gap: 12px;
    }
}

/* ============================================================
   HOTEL LOCATION WARNING BOX
   ============================================================ */
.ttm-hotel-note {
    background: var(--ttm-gold-light);
    border: 1px solid rgba(249, 171, 48, 0.3);
    color: #8a5800;
    padding: 12px 16px;
    border-radius: var(--ttm-radius-sm);
    font-size: 12.5px;
    line-height: 1.45;
    margin-bottom: 16px;
    font-weight: 500;
}

.ttm-stars {
    color: var(--ttm-gold);
    letter-spacing: 1px;
}

/* ============================================================
   PLACES CHECKLIST PILLS
   ============================================================ */
.ttm-acc-places-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ttm-place-pill {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px;
    border: 1.5px solid var(--ttm-border);
    border-radius: 30px;
    cursor: pointer;
    background: var(--ttm-white);
    color: var(--ttm-text);
    font-size: 13.5px;
    font-weight: 500;
    transition: var(--ttm-transition);
    user-select: none;
    height: 38px;
}

.ttm-place-pill:hover {
    border-color: var(--ttm-primary);
    background: var(--ttm-primary-light);
    color: var(--ttm-primary);
}

.ttm-place-pill.ttm-checked {
    background: var(--ttm-primary);
    color: var(--ttm-white);
    border-color: var(--ttm-primary);
    box-shadow: 0 4px 10px rgba(26, 107, 58, 0.15);
}

.ttm-place-pill.ttm-checked::before {
    content: "✓ ";
    font-weight: 700;
    margin-right: 6px;
}

.ttm-place-pill-name {
    margin-right: 6px;
}

.ttm-place-pill-price {
    font-size: 11px;
    opacity: 0.85;
    font-weight: 700;
}

/* ============================================================
   GROUP TOUR INCLUDES CARD
   ============================================================ */
.ttm-includes-card {
    background: var(--ttm-light);
    border: 1.5px solid var(--ttm-border);
    border-radius: var(--ttm-radius-md);
    padding: 18px;
    box-shadow: var(--ttm-shadow-sm);
}

.ttm-inc-label {
    display: block;
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--ttm-muted);
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.ttm-inc-hotel-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--ttm-text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.ttm-inc-hotel-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    color: var(--ttm-primary);
    background: var(--ttm-primary-light);
    padding: 3px 10px;
    border-radius: 12px;
    margin-top: 6px;
    border: 1px solid rgba(26,107,58,0.1);
}

.ttm-inc-places-list {
    margin: 8px 0 0 0;
    padding-left: 0;
    list-style: none;
}

.ttm-inc-places-list li {
    font-size: 13.5px;
    font-weight: 500;
    color: var(--ttm-text);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ttm-inc-places-list li:last-child {
    margin-bottom: 0;
}

/* ============================================================
   UNIFIED PRICE SUMMARY BOX
   ============================================================ */
.ttm-price-section {
    background: var(--ttm-light);
    border: 1.5px solid var(--ttm-border);
    border-radius: var(--ttm-radius-md);
    padding: 20px !important;
    margin-bottom: 0 !important;
}

.ttm-price-breakdown {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ttm-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14.5px;
    color: var(--ttm-text);
}

.ttm-price-row span:last-child {
    font-weight: 600;
}

.ttm-total-row {
    padding-top: 12px;
    border-top: 2px solid var(--ttm-border);
    font-size: 18px;
    font-weight: 700;
    color: var(--ttm-primary);
}

.ttm-on-demand {
    margin: 14px 0 0 0;
    padding: 12px 16px;
    background: rgba(249, 171, 48, 0.08);
    border: 1px solid rgba(249, 171, 48, 0.3);
    border-radius: var(--ttm-radius-sm);
    font-size: 13px;
    color: #825400;
    font-weight: 500;
    line-height: 1.45;
}

/* ============================================================
   POPUP FOOTER
   ============================================================ */
.ttm-popup-footer {
    padding: 20px 28px;
    border-top: 1px solid var(--ttm-border);
    background: var(--ttm-white);
    flex-shrink: 0;
}

.ttm-primary-btn {
    width: 100%;
    padding: 16px;
    background: var(--ttm-primary);
    color: var(--ttm-white);
    border: none;
    border-radius: var(--ttm-radius-sm);
    font-size: 16.5px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(26, 107, 58, 0.25);
    transition: var(--ttm-transition);
}

.ttm-primary-btn:hover:not(:disabled) {
    background: #114a27;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 107, 58, 0.35);
}

.ttm-primary-btn:disabled {
    background: #cbd5e1;
    color: #94a3b8;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* Styled Book Now Button when Day Accordions are Incomplete */
.ttm-primary-btn.ttm-btn-disabled-style {
    background: #f1f5f9;
    color: #94a3b8;
    border: 2px dashed var(--ttm-border);
    box-shadow: none;
    cursor: pointer; /* Keep cursor pointer so click triggers auto-expand validator warnings */
}

.ttm-primary-btn.ttm-btn-disabled-style:hover {
    background: #e2e8f0;
    border-color: #cbd5e1;
}

/* ============================================================
   SECONDARY SLIDE-IN OVERLAY: BOOKING REVIEW VIEW
   ============================================================ */
.ttm-review-overlay {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 10010;

    background: var(--ttm-white);
    display: flex;
    flex-direction: column;
    overflow: hidden;

    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.ttm-review-overlay.ttm-active {
    transform: translateX(0);
}

.ttm-review-header {
    display: flex;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1.5px solid var(--ttm-border);
    background: var(--ttm-light);
    flex-shrink: 0;
    gap: 16px;
}

.ttm-back-btn {
    border: 1.5px solid var(--ttm-border);
    background: var(--ttm-white);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ttm-text);
    cursor: pointer;
    transition: var(--ttm-transition);
}

.ttm-back-btn:hover {
    background: var(--ttm-light);
    border-color: #cbd5e1;
}

.ttm-review-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--ttm-text);
}

.ttm-review-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    background: #fafcfb;
}

.ttm-review-body::-webkit-scrollbar {
    width: 6px;
}
.ttm-review-body::-webkit-scrollbar-track {
    background: var(--ttm-light);
}
.ttm-review-body::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

.ttm-receipt-card {
    background: var(--ttm-white);
    border: 1.5px solid var(--ttm-border);
    border-radius: var(--ttm-radius-md);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--ttm-shadow-sm);
}

.ttm-receipt-card h4 {
    margin: 0 0 14px 0;
    font-size: 14px;
    font-weight: 700;
    color: var(--ttm-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ttm-receipt-table {
    width: 100%;
    border-collapse: collapse;
}

.ttm-receipt-table tr th,
.ttm-receipt-table tr td {
    padding: 8px 0;
    font-size: 14px;
    border-bottom: 1px solid #f1f5f9;
}

.ttm-receipt-table tr th {
    text-align: left;
    color: var(--ttm-muted);
    font-weight: 600;
    width: 35%;
}

.ttm-receipt-table tr td {
    color: var(--ttm-text);
    font-weight: 500;
    text-align: right;
}

.ttm-receipt-table tr:last-child th,
.ttm-receipt-table tr:last-child td {
    border-bottom: none;
}

/* Green receipt pricing block */
.ttm-receipt-pricing {
    background: var(--ttm-primary) !important;
    border: none !important;
    color: var(--ttm-white);
}

.ttm-receipt-pricing h4 {
    color: var(--ttm-white) !important;
}

.ttm-receipt-pricing span {
    color: var(--ttm-white);
}

/* Review view footer */
.ttm-review-footer {
    padding: 20px 24px;
    border-top: 1px solid var(--ttm-border);
    background: var(--ttm-white);
    flex-shrink: 0;
}

.ttm-wa-btn {
    width: 100%;
    padding: 16px;
    background: var(--ttm-success);
    color: var(--ttm-white);
    border: none;
    border-radius: var(--ttm-radius-sm);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
    transition: var(--ttm-transition);
}

.ttm-wa-btn:hover {
    background: #1eb857;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
}

.ttm-wa-btn i {
    font-size: 20px;
}

/* ============================================================
   MOBILE RESPONSIVENESS (Responsive fixes for small viewports)
   ============================================================ */
@media (max-width: 600px) {
    #ttm-calc-popup {
        width: 100%;
        height: 100vh;
        max-height: 100%;
        border-radius: 0;
        top: 0;
        left: 0;
        transform: none;
        opacity: 0;
        visibility: hidden;
    }

    #ttm-calc-popup.ttm-active {
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .ttm-popup-header {
        padding: 16px 20px;
    }

    .ttm-popup-body {
        padding: 20px 16px;
    }

    .ttm-popup-footer {
        padding: 16px 20px;
    }
    
    .ttm-review-header {
        padding: 16px 20px;
    }
    
    .ttm-review-body {
        padding: 16px 12px;
    }
    
    .ttm-review-footer {
        padding: 16px 20px;
    }

    .ttm-review-overlay {
        width: 100%;
        height: 100%;
        border-radius: 0;
        transform: translateX(100%);
    }

    .ttm-receipt-table tr th {
        width: 100% !important;
        display: block;
        padding-bottom: 2px;
        border-bottom: none;
    }

    .ttm-receipt-table tr td {
        width: 100% !important;
        display: block;
        text-align: left;
        padding-top: 2px;
        padding-bottom: 8px;
    }

    .ttm-receipt-table tr {
        border-bottom: 1px solid #f1f5f9;
    }

    .ttm-place-pill {
        width: 100%; /* Stacks places vertically on mobile for touch ease */
        justify-content: space-between;
    }

    .ttm-day-room-settings {
        grid-template-columns: 1fr !important;
        gap: 12px;
    }
}