/* style.css */
/* Contains all visual styling for the Host Family Selection application. */
/* FIX: Adjusted #msg styling for sticky positioning and proper fadeIn/fadeOut transitions. */
/* NEW: Added styles for confirmation modal. */
/* NEW: Added mobile-specific styles for header, map controls, and bottom sheet. */
/* REFACTOR: Adjusted touch targets for interest buttons on mobile. */
/* FIX: Lightbox navigation buttons repositioned for mobile accessibility. */
/* CRITICAL FIX: Header buttons are now icon-only and perfectly round on mobile portrait. */
/* CRITICAL FIX: Ensure interest buttons are always visible on mobile portrait with reinforced styles. */
/* CRITICAL FIX: Ensure preferences header badge is visible on mobile. */
/* CRITICAL FIX: Changed mobile header button text hiding method to ensure badge visibility. */
/* CRITICAL FIX: Ensure interest button text wraps correctly and icons are visible on small screens. */
/* CRITICAL FIX: Adjust header/map height for better compatibility with mobile browser address bars. */
/* CRITICAL FIX: Move floating map controls to the bottom on mobile to prevent obscuring profile. */
/* NEW FIX: "I'm Interested" button is now full width on mobile, other two are below. */
/* NEW FIX: Robust iPhone header and safe-area adjustments for bottom controls. */
/* NEW FIX: Hide map control buttons when mobile bottom sheet (host profile/help) is active. */
/* CRITICAL FIX: Removed global overflow:hidden from body; managed dynamically by JS for overlays. */
/* CRITICAL FIX: Ensure 100dvh is used correctly for viewport heights. */
/* NEW FIX: Profile header title and reference now wrap gracefully for long names. */
/* NEW FIX: Centralized "Interested" button on mobile portrait, others below. */
/* NEW FIX: Profile header spacing and alignment fixed for desktop and mobile. */


:root {
    --primary-color: #E6007E;
    --primary-hover: #c5006b;
    --secondary-color: #2294D2;
    --secondary-hover: #1a7bb8;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --not-sure-color: #e2e5e2; /* NEW: Grey for not-sure state */
    --not-sure-hover: #d0d3d0; /* NEW: Darker grey for hover */
    --light-bg: #f9f9f9;
    --white: #ffffff;
    --border-color: #ddd;
    --text-primary: #000;
    --text-secondary: #666;
    --shadow: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-hover: 0 4px 8px rgba(0,0,0,0.15);
    --shadow-medium: 0 4px 20px rgba(0,0,0,0.15);
    --shadow-heavy: 0 8px 32px rgba(0,0,0,0.25);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --overlay-width: 630px;
    --header-height-desktop: 80px; /* NEW: Differentiate desktop header height */
    --header-height-mobile: 60px; /* NEW: Define mobile header height */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    height: 100%;
    /* overflow: hidden; */ /* Removing global overflow hidden from html */
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    /* overflow: hidden; */ /* Removing global overflow hidden from body */
    background: var(--light-bg);
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 14px;
    /* Prevent iOS rubber banding scroll on overall body */
    touch-action: pan-y;
    /* Ensure body extends to fill available viewport, considering safe areas */
    min-height: 100vh; /* Fallback for browsers not supporting dvh */
    min-height: 100dvh; /* Dynamic viewport height for modern browsers */
    /* Padding for safe area at top and bottom - critical for iOS fixed headers/footers */
    padding-top: env(safe-area-inset-top, 0px); 
    padding-bottom: env(safe-area-inset-bottom, 0px); 
    overscroll-behavior-y: contain; /* Prevent pull-to-refresh on iOS */
    position: relative; /* Needed for `overflow: hidden` when applied via class */
}

/* Class added by JS when an overlay is open to prevent background scroll */
body.no-scroll {
    overflow: hidden;
}

/* Main Application Header (Desktop Default) */
#app-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height-desktop); /* Use desktop height */
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    box-shadow: var(--shadow-medium);
}

#app-header .header-left {
    display: flex;
    align-items: center;
    gap: 20px;
    min-width: 0; /* Allow text to shrink */
}

#app-header .logo-compact {
    height: 50px; /* Original height for the logo */
    filter: brightness(0) invert(1); /* Makes logo white */
    flex-shrink: 0;
}

#app-header .header-title-container {
    min-width: 0; /* Allow text to shrink */
    flex: 1; /* Take up available space */
}

#app-header #app-title {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

#app-header #app-description {
    font-size: 0.9rem;
    opacity: 0.9;
    font-weight: 400;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#app-header .header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

#app-header .header-btn {
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}

#app-header .header-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-1px);
    color: white;
}

/* Header Preferences Button Badge */
#preferences-btn {
    position: relative;
}

#preferences-btn .badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--primary-color); /* Default pink */
    color: white;
    border-radius: 50%;
    padding: 4px 8px;
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 24px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: background-color 0.3s ease;
}

#preferences-btn .badge.badge-green {
    background-color: var(--success-color);
}

#preferences-btn .badge.badge-orange {
    background-color: var(--warning-color);
}

#preferences-btn .badge.badge-grey { /* New style for 'not selected' or 0 interested */
    background-color: var(--not-sure-color);
    color: var(--primary-color);
}

/* Full-width Map Container */
#map-canvas { 
    position: fixed;
    top: var(--header-height-desktop); /* Use desktop header height */
    left: 0;
    right: 0;
    /* Use 100dvh for dynamic viewport height */
    height: calc(100dvh - var(--header-height-desktop) - env(safe-area-inset-bottom, 0px)); 
    z-index: 1;
    width: 100%;
}

/* Floating Map Controls */
.map-controls-floating {
    position: fixed;
    top: calc(var(--header-height-desktop) + 20px); /* Adjust for desktop header height */
    right: 20px;
    z-index: 1002;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: opacity 0.3s ease, visibility 0.3s ease; /* Add transition for hiding */
}

.map-control-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    border: none;
    box-shadow: var(--shadow-medium);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.map-control-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-heavy);
    background: var(--primary-color);
    color: white;
}

.map-control-btn.active {
    background: var(--primary-color);
    color: white;
}

/* Combined Map & Preferences Legend Panel */
.map-info-panel {
    position: fixed;
    top: calc(var(--header-height-desktop) + 20px); /* Adjust for desktop header height */
    left: 20px;
    background: white;
    padding: 15px;
    border-radius: 12px;
    box-shadow: var(--shadow-medium);
    z-index: 1002;
    max-width: 280px;
    display: none; /* Hidden by default, controlled by JS */
    flex-direction: column;
    gap: 20px;
    transition: left var(--transition);
}

.map-info-panel h3 {
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--primary-color);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
}

.map-info-panel ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.map-info-panel li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 0.85rem;
    color: var(--text-primary);
}

.map-info-panel li:last-child {
    margin-bottom: 0;
}

/* Map Legend Icon Meanings */
.map-legend-section .legend-icon {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    flex-shrink: 0;
}

/* Map Icon Meanings - Colors */
.map-legend-section .legend-icon.legend-interested {
    background: var(--success-color); /* Green */
}
.map-legend-section .legend-icon.legend-not-sure {
    background: var(--not-sure-color); /* Grey */
}
.map-legend-section .legend-icon.legend-not-interested {
    background: var(--danger-color); /* Red */
}
.map-legend-section .legend-icon.legend-study {
    background: #343a40; /* Blue/Dark Grey */
}

/* My Current Preferences (Interest Legend) specific styles */
.interest-legend-section .legend-title {
    margin-top: 15px;
    margin-bottom: 8px;
    border-bottom: 1px dashed #eee;
    padding-bottom: 5px;
    color: #495057;
    font-size: 0.8rem;
    text-transform: none;
    letter-spacing: normal;
}
.interest-legend-section .legend-title:first-child {
    margin-top: 0;
}

.interest-legend-item .icon {
    font-size: 1rem;
    width: 18px;
    text-align: center;
    flex-shrink: 0;
}

.interest-legend-item.interested .icon {
    color: var(--success-color);
}

.interest-legend-item.not-interested .icon {
    color: var(--danger-color);
}

/* Not-sure legend icon with new grey/pink scheme */
.interest-legend-item.not-sure .icon {
    background-color: var(--not-sure-color);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.interest-legend-item.not-sure .icon i {
    color: var(--primary-color) !important;
}

.interest-legend-item span {
    color: var(--text-primary);
    flex-grow: 1;
}

.interest-legend-empty-state {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-align: center;
    padding: 10px;
}

/* Host Overlay (Desktop) */
.overlay {
    position: fixed;
    top: var(--header-height-desktop); /* Adjust for desktop header height */
    width: var(--overlay-width);
    height: calc(100dvh - var(--header-height-desktop)); /* Use dynamic viewport height */
    background: white;
    z-index: 1001;
    box-shadow: var(--shadow-heavy);
    transform: translateX(-100%);
    transition: transform var(--transition), opacity var(--transition), visibility var(--transition);
    opacity: 0;
    visibility: hidden;
    display: flex;
    flex-direction: column;
    overflow: hidden; /* Keep overflow hidden for desktop overlay */
}

.overlay.right-panel {
    left: 0;
}

.overlay.open {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
}

.overlay.peek {
    transform: translateX(calc(-100% + 60px));
    opacity: 1;
    visibility: visible;
}

/* Host Profile Header (Desktop & Mobile) */
.overlay-header, .bottom-sheet-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: white;
    padding: 15px 20px; /* Increased vertical padding */
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Aligned to start for better left alignment */
    box-shadow: var(--shadow);
    transition: background var(--transition); 
    flex-shrink: 0; /* Prevent header from shrinking when content scrolls */
    
    /* Ensure elements are arranged in a row and wrap if necessary */
    flex-wrap: wrap; 
    gap: 10px; /* Default gap between elements */
}

.overlay-header i[class*="fa"], .bottom-sheet-header i[class*="fa"] {
    color: white;
    transition: color var(--transition);
    font-size: 1.2rem;
}

.overlay-header.grey-header i[class*="fa"], .bottom-sheet-header.grey-header i[class*="fa"] {
    color: var(--primary-color) !important;
}

.overlay-header .host-reference,
.overlay-header .host-name-location,
.bottom-sheet-header .host-reference,
.bottom-sheet-header .host-name-location {
    color: white;
    transition: color var(--transition);
}
.overlay-header.grey-header .host-reference,
.overlay-header.grey-header .host-name-location,
.bottom-sheet-header.grey-header .host-name-location {
    color: var(--primary-color) !important;
}

.overlay-title {
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px; /* Explicit gap between icon, reference and name */
    line-height: 1.3;
    flex-wrap: wrap; /* Allow title elements to wrap if needed */
    flex-grow: 1; /* Allow the title container to take available space */
    min-width: 0; /* Allow the title container to shrink */
}

.overlay-title .host-reference {
    font-weight: 900;
    white-space: nowrap; /* Keep on one line for reference */
    flex-shrink: 0; /* Don't allow it to shrink much */
    min-width: fit-content; /* Allow it to take content width */
}

.overlay-title .host-name-location {
    font-weight: 700;
    flex-shrink: 1;
    min-width: 0;
    white-space: normal; /* NEW: Allow text to wrap naturally */
    overflow: hidden; /* Hide overflow if it goes beyond available vertical space */
    text-overflow: ellipsis; /* Still show ellipsis for long names, but after wrapping */
}

.overlay-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: var(--transition);
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto; /* Push to the far right */
    flex-shrink: 0; /* Don't allow it to shrink */
}

.overlay-close:hover {
    background: rgba(255,255,255,0.2);
    transform: scale(1.1);
}

/* Overlay Content (Host Details) */
.overlay-content {
    flex: 1;
    overflow-y: auto;
    padding: 0;
    background: #f8f9fa;
}

.overlay-content::-webkit-scrollbar {
    width: 6px;
}

.overlay-content::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.overlay-content::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

/* Welcome State */
.welcome-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%; /* Ensure it takes full height of its container */
    padding: 40px 20px;
    text-align: center;
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
}

.welcome-icon {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.welcome-title {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.welcome-text {
    color: #666;
    line-height: 1.6;
    max-width: 300px;
}

/* Enhanced Welcome State for Multiple Hosts - COMPACT VERSION */
.welcome-state-multiple {
    padding: 0;
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
    height: 100%;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.welcome-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 20px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.welcome-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.welcome-icon-multiple {
    font-size: 2.5rem;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.welcome-title-multiple {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 5px;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.welcome-subtitle {
    font-size: 0.85rem;
    opacity: 0.95;
    font-weight: 400;
    position: relative;
    z-index: 1;
}

.welcome-instructions {
    flex: 1;
    padding: 15px;
    background: white;
    overflow-y: auto;
}

.instruction-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
    padding: 12px 15px;
    background: linear-gradient(135deg, #fafbff 0%, #ffffff 100%);
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.instruction-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(230, 0, 126, 0.1);
}

.instruction-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.instruction-item:hover::before {
    transform: scaleX(1);
}

.instruction-number {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    margin-right: 12px;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(230, 0, 126, 0.3);
    position: relative;
    z-index: 1;
}

.instruction-content {
    flex: 1;
    min-width: 0;
}

.instruction-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 4px;
    line-height: 1.2;
}

.instruction-text {
    color: #555;
    line-height: 1.4;
    font-size: 0.8rem;
}

.welcome-cta {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 15px;
    text-align: center;
    border-top: 1px solid #e9ecef;
    flex-shrink: 0;
}

.cta-text {
    font-size: 0.9rem;
    color: #495057;
    margin-bottom: 10px;
    font-weight: 500;
}

.cta-button {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.8rem;
    box-shadow: 0 3px 10px rgba(230, 0, 126, 0.3);
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(230, 0, 126, 0.4);
}

.btn:active {
    transform: translateY(0);
}

/* Host Interest Buttons */
.host-interest-buttons {
    display: flex;
    gap: 12px;
    margin: 15px 0;
    padding: 15px 20px;
    background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(248,249,250,0.95) 100%);
    border-radius: 12px;
    border: 2px solid rgba(230, 0, 126, 0.1);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 10px;
    z-index: 100;
    flex-wrap: wrap; /* Allow buttons to wrap */
    justify-content: center; /* Center buttons when wrapping */
}

.host-interest-buttons.floating {
    position: sticky;
    top: 0;
    margin: 0 0 15px 0;
    border-radius: 0 0 12px 12px;
    border-top: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.interest-btn {
    flex: 1 1 auto; /* Allow growth but also shrinking based on content */
    min-width: 100px; /* Minimum width to prevent squishing */
    max-width: 300px; /* Max width for larger screens to avoid stretching too much */
    padding: 12px 10px; /* Reduced horizontal padding for text */
    border: none;
    border-radius: 8px;
    font-size: 0.9rem; /* Default font size for desktop */
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column; /* Stack icon and text vertically */
    align-items: center; /* Center content horizontally */
    justify-content: center;
    gap: 4px; /* Reduced gap between icon and text */
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    min-height: 60px; /* Ensure a decent touch target height */
    text-align: center; /* Center text within the button */
}

.interest-btn i {
    font-size: 1.2rem; /* Size for the icon */
    margin-bottom: 2px; /* Small space below icon */
}

.interest-btn span {
    font-size: 0.8rem; /* Smaller font for the text label */
    line-height: 1.2; /* Compact line height */
    white-space: normal; /* Allow text to wrap */
}


.interest-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.interest-btn:hover::before {
    left: 100%;
}

.interest-btn-interested {
    background: linear-gradient(135deg, var(--success-color) 0%, #218838 100%);
    color: white;
    box-shadow: 0 3px 10px rgba(40, 167, 69, 0.3);
}

.interest-btn-interested:hover {
    background: linear-gradient(135deg, #218838 0%, #1e7e34 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4);
}

.interest-btn-interested.selected {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.5), 0 0 15px rgba(40, 167, 69, 0.4);
    border: 2px solid rgba(255,255,255,0.8);
}

.interest-btn-not-interested {
    background: linear-gradient(135deg, var(--danger-color) 0%, #a00021 100%); 
    color: white;
    box-shadow: 0 3px 10px rgba(220, 53, 69, 0.3);
}

.interest-btn-not-interested:hover {
    background: linear-gradient(135deg, #a00021 0%, #8b0000 100%); 
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.4);
}

.interest-btn-not-interested.selected {
    background: linear-gradient(135deg, var(--danger-color) 0%, #ff6b6b 100%); 
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.5), 0 0 15px rgba(220, 53, 69, 0.4);
    border: 2px solid rgba(255,255,255,0.8);
}

/* Not Sure button - New grey/pink color scheme */
.interest-btn-not-sure {
    background: linear-gradient(135deg, var(--not-sure-color) 0%, var(--not-sure-hover) 100%); 
    color: var(--primary-color);
    box-shadow: 0 3px 10px rgba(226, 229, 226, 0.3);
    border: 1px solid rgba(226, 229, 226, 0.5);
}

.interest-btn-not-sure:hover {
    background: linear-gradient(135deg, var(--not-sure-hover) 0%, #c0c3c0 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(226, 229, 226, 0.4);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.interest-btn-not-sure.selected {
    background: linear-gradient(135deg, var(--not-sure-color) 0%, #f0f3f0 100%);
    box-shadow: 0 0 0 3px rgba(230, 0, 126, 0.3), 0 0 15px rgba(230, 0, 126, 0.2);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-weight: 700;
}

.interest-btn:active {
    transform: translateY(0);
}

/* New style for single host mode - disable buttons visually */
.host-interest-buttons.single-host-mode .interest-btn {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none; /* Disable all mouse events */
}


/* Loading State */
.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 200px;
    flex-direction: column;
    gap: 15px;
}

.loading-spinner {
    display: inline-block;
    width: 30px;
    height: 30px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Preference Form Overlay */
.preference-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.8);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background: white;
    border-radius: 16px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-heavy);
    display: flex;
    flex-direction: column;
    position: relative;
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 20px;
    border-radius: 16px 16px 0 0;
    text-align: center;
    position: relative;
    flex-shrink: 0;
}

.modal-header h2 {
    font-size: 1.4rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.modal-header p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-top: 5px;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: rgba(255,255,255,0.4);
    transform: scale(1.1);
}

.modal-body {
    padding: 30px;
    flex-grow: 1;
    overflow-y: auto;
}

/* Form Styles */
.progress-container {
    background: #f0f2f5;
    border-radius: 8px;
    padding: 10px 15px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color); /* Corrected: Consistent border color */
    background: linear-gradient(135deg, #f0f2f5 0%, #e9ecef 100%); /* Added subtle gradient */
}

.progress-container .progress-percentage {
    font-size: 0.8rem;
    color: #6c757d;
    background: var(--primary-color);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    float: right;
}

.progress-container .progress-bar-fill {
    height: 6px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 3px;
    width: 0%;
    transition: width 0.3s ease;
}

.contact-info-section {
    margin-bottom: 30px;
    padding: 20px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--light-bg);
}

.contact-info-section h3 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    border-bottom: 1px dashed var(--border-color);
    padding-bottom: 10px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-primary);
}

.form-group input[type="text"],
.form-group input[type="email"] {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: var(--transition);
    background: var(--white);
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(230, 0, 126, 0.1);
}

/* Form validation colors */
input.error, select.error {
    border-color: var(--danger-color) !important;
    background-color: #fff5f5 !important;
    animation: shake 0.5s ease-in-out;
}
input.success, select.success {
    border-color: var(--success-color) !important;
    background-color: #f8fff9 !important;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.validation-summary {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
    color: #721c24;
    display: none;
}

.validation-summary.show {
    display: block;
    animation: fadeIn 0.3s ease-out;
}

.validation-summary h4 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.validation-summary ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.validation-summary li {
    font-size: 0.9rem;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.validation-summary li:last-child {
    margin-bottom: 0;
}

.validation-summary .fas {
    font-size: 1.1em;
}

.validation-summary .fas.fa-check-circle {
    color: var(--success-color);
}
.validation-summary .fas.fa-exclamation-triangle {
    color: var(--danger-color);
}
.validation-summary .text-success {
    color: #155724;
}
.validation-summary .text-danger {
    color: #721c24;
}

.submit-section {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    margin-top: 20px;
}

#sendemail {
    background: var(--primary-color);
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

#sendemail:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

#sendemail:disabled {
    background: #cccccc;
    cursor: not-allowed;
    opacity: 0.7;
}

.loader {
    display: none;
    margin-left: 10px;
}

.loader img {
    width: 24px;
    height: 24px;
}

#msg {
    margin-top: 0;
    padding: 15px;
    border-radius: 0 0 8px 8px;
    font-weight: 600;
    text-align: left;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    position: sticky;
    top: 0px;
    width: 100%;
    box-sizing: border-box;
    z-index: 10;
    box-shadow: var(--shadow);
}

#msg.msg-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    border-top: none;
}

#msg.msg-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-top: none;
}

#msg.msg-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
    border-top: none;
}

/* NEW STYLES FOR PREFERENCES LIST & HEADER BADGE */

/* Preference List Container */
#preferences-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

#preferences-list .preference-group-title {
    background: var(--light-bg);
    padding: 12px 20px;
    font-weight: 700;
    color: var(--text-primary);
    font-size: 0.95rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

#preferences-list .preference-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    background: var(--white);
    border-bottom: 1px solid var(--border-color);
    transition: background 0.2s ease, transform 0.2s ease;
    position: relative;
}

/* Only interested items are draggable */
#preferences-list .preference-item[data-interest-status="interested"] {
    cursor: grab;
}

#preferences-list .preference-item:last-child {
    border-bottom: none;
}

#preferences-list .preference-item:hover {
    background: #f0f0f0;
}

/* SortableJS Styles */
#preferences-list .sortable-ghost {
    opacity: 0.2;
    background: var(--primary-color);
    border: 1px dashed white;
}

#preferences-list .sortable-chosen {
    box-shadow: var(--shadow-heavy);
    cursor: grabbing;
}

#preferences-list .sortable-drag {
    opacity: 0.9;
}

.preference-item .drag-handle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-right: 15px;
    cursor: grab;
    flex-shrink: 0;
}

/* Hide drag handle for non-draggable items */
#preferences-list .preference-item:not([data-interest-status="interested"]) .drag-handle {
    display: none;
}

.preference-item .status-icon {
    font-size: 1rem;
    margin-right: 10px;
    flex-shrink: 0;
}

.preference-item .host-details {
    flex-grow: 1;
}

.preference-item .host-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1rem;
}

.preference-item .host-ref-city {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.preference-item .action-buttons {
    display: flex;
    gap: 5px;
    margin-left: 15px;
    flex-shrink: 0;
}

.preference-item .action-buttons .mini-btn {
    background: #eee;
    border: 1px solid #ddd;
    color: #555;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.preference-item .action-buttons .mini-btn.selected {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.preference-item .action-buttons .mini-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}
        
/* Map InfoWindow Styling */
/* These rules effectively hide the default Google Maps InfoWindow frame */
.gm-style-iw {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    pointer-events: auto !important; 
    overflow: visible !important;
}

.gm-style-iw-d {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    overflow: visible !important;
    padding: 0 !important;
    pointer-events: none !important;
}

.gm-style-iw-c {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    max-width: none !important;
    pointer-events: auto !important;
    overflow: visible !important;
}

/* Hide InfoWindow close button */
.gm-style-iw-t {
    display: none !important;
}

/* Hide InfoWindow connector/stem */
.gm-style-iw-tc {
    display: none !important;
}

/* Remove default InfoWindow styling */
.gm-style-iw-chr {
    display: none !important;
}

/* Confirmation Modal Styles */
.confirmation-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.8);
    z-index: 2500;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.confirmation-modal.show {
    opacity: 1;
    visibility: visible;
}

.confirmation-content {
    background: var(--white);
    border-radius: 16px;
    max-width: 500px;
    width: 100%;
    box-shadow: var(--shadow-heavy);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.confirmation-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 20px;
    border-radius: 16px 16px 0 0;
    text-align: center;
    position: relative;
    flex-shrink: 0;
}

.confirmation-header h3 {
    font-size: 1.2rem;
    margin-bottom: 0;
}

.confirmation-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.confirmation-close:hover {
    background: rgba(255,255,255,0.4);
}

.confirmation-body {
    padding: 25px;
    text-align: center;
    color: var(--text-primary);
}

.confirmation-body p {
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.confirmation-body ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    max-height: 200px;
    overflow-y: auto;
    background: var(--light-bg);
}

.confirmation-body li {
    padding: 10px 15px;
    border-bottom: 1px dashed #eee;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.confirmation-body li:last-child {
    border-bottom: none;
}

.confirmation-body li .order-number {
    font-weight: 700;
    color: var(--primary-color);
    flex-shrink: 0;
    min-width: 20px;
    text-align: right;
}

.confirmation-body li .host-name {
    flex-grow: 1;
    font-weight: 500;
}

.confirmation-footer {
    padding: 20px;
    display: flex;
    justify-content: center;
    gap: 15px;
    border-top: 1px solid var(--border-color);
    flex-shrink: 0;
}

.confirmation-footer .btn {
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.confirmation-footer .confirm-yes {
    background: var(--success-color);
    color: white;
    border: none;
    box-shadow: 0 3px 10px rgba(40, 167, 69, 0.3);
}

.confirmation-footer .confirm-yes:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4);
}

.confirmation-footer .confirm-no {
    background: var(--danger-color);
    color: white;
    border: none;
    box-shadow: 0 3px 10px rgba(220, 53, 69, 0.3);
}

.confirmation-footer .confirm-no:hover {
    background: #a00021;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.4);
}

/* NEW: Mobile Bottom Sheet Styles */
.bottom-sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 0; /* Initially hidden, height will be controlled by JS */
    max-height: 90vh; /* Max height to avoid covering entire screen */
    max-height: 90dvh; /* Dynamic viewport height */
    background: white;
    z-index: 1001; /* Above map, same as desktop overlay */
    box-shadow: var(--shadow-heavy);
    transform: translateY(100%); /* Start off-screen */
    transition: transform 0.3s ease-out, height 0.3s ease-out, opacity 0.3s ease-out, visibility 0.3s ease-out;
    opacity: 0;
    visibility: hidden;
    display: flex; /* Flex container for header and content */
    flex-direction: column;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    overflow: hidden; /* Hide scrollbar until content is ready */
}

.bottom-sheet.open {
    transform: translateY(0); /* Slide into view */
    height: auto; /* Allow height to adjust to content when open */
    opacity: 1;
    visibility: visible;
    /* Ensure content scrolls within the max-height */
    overflow-y: auto; 
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}


.bottom-sheet-header {
    /* Reuses existing .overlay-header styles for consistency */
    /* Adjust specific styles for mobile if needed, but aim for consistency */
}

.bottom-sheet-content {
    flex: 1; /* Takes remaining space */
    overflow-y: auto; /* Enables scrolling for content */
    padding: 0; /* Content sections will manage their own padding */
    background: #f8f9fa;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}

/* Mobile Specific Styles */
@media (max-width: 768px) {
    /* Hide desktop overlay on mobile */
    .overlay {
        display: none !important;
    }

    /* Show mobile bottom sheet on mobile */
    .bottom-sheet {
        display: flex;
    }

    /* Adjust header for mobile */
    #app-header {
        height: auto; /* Let content and padding define height */
        min-height: calc(var(--header-height-mobile) + env(safe-area-inset-top, 0px)); /* Ensure minimum height includes safe area */
        padding: 0 15px;
        /* Using env(safe-area-inset-top) for iOS notch/address bar safety */
        padding-top: env(safe-area-inset-top, 0px); 
    }

    #app-header .logo-compact {
        height: 40px; /* Smaller logo on mobile */
    }

    #app-header .header-title-container {
        /* Hide title and description on mobile to save space */
        display: none;
    }

    #app-header .header-actions {
        gap: 8px; /* Reduce gap between buttons */
    }

    #app-header .header-btn {
        /* CRITICAL: Hide all direct text content */
        font-size: 0; 
        width: 45px;
        height: 45px;
        border-radius: 50%;
        padding: 0; /* Remove padding to center icon */
        justify-content: center; /* Center the icon horizontally */
        align-items: center; /* Center the icon vertically */
    }

    /* CRITICAL: Re-enable font-size for icons within header buttons */
    #app-header .header-btn i {
        font-size: 1.2rem; /* Ensure icon is visible and sized */
        margin: 0 !important; /* Remove any margin that might push it */
    }

    /* CRITICAL FIX: Ensure the badge (which is a span) is visible on mobile */
    #preferences-btn .badge {
        display: flex !important; /* Ensure badge is a flex container */
        top: -5px;
        right: -5px;
        padding: 3px 6px;
        min-width: 20px;
        font-size: 0.6rem;
    }
    /* Set color for badge on mobile if it has no status color */
    #preferences-btn .badge.badge-grey { 
        color: var(--primary-color) !important;
    }


    /* Adjust map canvas for mobile header height */
    #map-canvas {
        top: calc(var(--header-height-mobile) + env(safe-area-inset-top, 0px));
        /* Use 100dvh for dynamic viewport height on iOS */
        height: calc(100dvh - var(--header-height-mobile) - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)); /* Adjusted for both top and bottom safe areas */
    }

    /* Adjust floating map controls for mobile */
    .map-controls-floating {
        /* Positioning at the bottom center of the screen */
        top: auto; 
        bottom: calc(20px + env(safe-area-inset-bottom, 0px)); /* Distance from the bottom + safe area */
        left: 50%;
        right: auto;
        transform: translateX(-50%); /* Center horizontally */
        flex-direction: row; /* Arrange controls horizontally for better thumb access */
        gap: 8px;
        z-index: 1002; /* Ensure it's above map, but below bottom sheet */
    }

    /* NEW: Hide map controls when bottom sheet is active */
    body.bottom-sheet-active .map-controls-floating {
        display: none !important; /* Completely hide them */
    }

    .map-control-btn {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }

    /* Adjust map info panel for mobile */
    .map-info-panel {
        top: calc(var(--header-height-mobile) + env(safe-area-inset-top, 0px) + 15px); /* Position below header */
        left: 15px;
        max-width: calc(100% - 30px); /* Take full available width, with margins */
        padding: 12px;
    }

    /* Interest Buttons - Mobile Layout: Interested (full width), others (half width) */
    .host-interest-buttons {
        gap: 8px; /* Reduced gap for smaller screens */
        margin: 10px auto; /* Center the container horizontally */
        padding: 12px 10px; /* Adjusted padding */
        top: 5px; /* Adjust sticky top for mobile */
        flex-direction: column; /* Stack buttons by default on mobile */
        justify-content: center; /* Center buttons horizontally */
        max-width: 400px; /* Optional: constrain width on larger phones */
    }
    
    .interest-btn {
        flex: 1 1 auto; /* Allow growth but also shrinking based on content */
        min-height: 48px; /* Meet minimum touch target size (48x48px recommended) */
        padding: 10px 8px; /* Further adjusted padding for very small screens */
        font-size: 0.75rem; /* Smaller font for buttons on mobile */
        gap: 2px; /* Even smaller gap between icon and text */
        width: 100%; /* Ensure full width by default */
    }

    /* Specific override for "Not Interested" and "Not Sure" to be side-by-side */
    /* This needs to apply to the parent flex container to make them row-based */
    .host-interest-buttons {
        /* On mobile, if there are multiple buttons (not just the single-host-mode case),
           we'll structure them specifically. */
        flex-direction: row; /* Allow all items to be in a row */
        flex-wrap: wrap; /* Allow wrapping */
        justify-content: center; /* Center the wrapped items */
        gap: 8px; /* Keep the gap */
    }

    .host-interest-buttons .interest-btn-interested {
        width: 100%; /* Always full width */
        margin-bottom: 8px; /* Space below it */
    }

    .host-interest-buttons .interest-btn:not(.interest-btn-interested) {
        width: calc(50% - 4px); /* Half width for others, with gap */
    }


    .interest-btn i {
        font-size: 1rem; /* Slightly smaller icon on mobile */
    }
    .interest-btn span {
        font-size: 0.7rem; /* Smallest font for the text label on mobile */
    }


    /* Specific styles for preferences list items on mobile */
    .preference-item {
        padding: 10px 15px;
        flex-wrap: wrap; /* Allow content to wrap */
        align-items: flex-start; /* Align items to the top if content wraps */
    }
    .preference-item .drag-handle {
        margin-right: 10px;
        order: 0; /* Keep handle at the start */
    }
    .preference-item .host-details {
        order: 1; /* After handle */
        flex-grow: 1;
        min-width: calc(100% - 70px); /* Adjust based on handle+buttons width */
    }
    .preference-item .action-buttons {
        margin-top: 10px;
        margin-left: 0;
        order: 2; /* Moves buttons to next line */
        width: 100%;
        justify-content: center;
    }
    .preference-item .status-icon {
        margin-right: 8px;
    }
    
    /* Mobile header specific adjustments */
    .bottom-sheet-header {
        padding: 12px 15px; /* Adjust vertical padding for mobile */
        align-items: center;
        justify-content: flex-start; /* Align contents to the left */
        gap: 8px; /* Smaller gap for mobile header elements */
    }
    
    .bottom-sheet-header .overlay-title {
        flex-grow: 1; /* Allow title to take up remaining space */
        min-width: 0; /* Allow title to shrink */
        align-items: center; /* Vertically align items within the title */
        gap: 5px; /* Smaller gap within title for mobile */
    }

    .bottom-sheet-header .overlay-close {
        margin-left: auto; /* Push close button to the right */
        margin-right: 0;
    }

    .bottom-sheet-header .host-reference,
    .bottom-sheet-header .host-name-location {
        font-size: 1rem; /* Slightly smaller font for mobile header */
        white-space: normal; /* Allow name and location to wrap */
        line-height: 1.2;
    }
    .bottom-sheet-header .host-reference {
        font-size: 0.9rem; /* Reference can be slightly smaller */
    }
}
