:root {
    --primary-color: #4285F4;    /* Main blue */
    --primary-dark: #3367D6;     /* Darker blue for hover states */
    --accent-color: #34A853;     /* Green for success/active states */
    --accent-dark: #2E7D32;      /* Darker green for hover */
    --surface-color: #FFFFFF;    /* White for cards/surfaces */
    --text-primary: #202124;     /* Dark gray for primary text */
    --text-secondary: #5F6368;   /* Medium gray for secondary text */
}

body {
    font-family: Arial, sans-serif;
    text-align: center;
    margin: 0;
    padding: 0;
}

#map {
    height: 100vh;
    width: 100%;
    z-index: 1;
}

.floating-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: #2196F3;
    color: white;
    border: none;
    font-size: 36px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s, background-color 0.2s;
}

.floating-button:hover {
    transform: scale(1.05);
    background: #1976D2;
}

.floating-button:active {
    transform: scale(0.95);
}

.form-container {
    background: white;
    padding: 12px;
    border-radius: 8px;
    width: 280px;
    max-width: 100%;
    max-height: 400px;  /* We can adjust this value if needed */
    overflow-y: auto;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* Add scrollbar styling for better appearance */
.form-container::-webkit-scrollbar {
    width: 8px;
}

.form-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.form-container::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.form-container::-webkit-scrollbar-thumb:hover {
    background: #666;
}

.hidden {
    display: none !important;
}

.form-container.visible {
    transform: translateY(0);
}

input, textarea {
    width: 100%;
    padding: 12px;
    margin: 4px 0;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 16px;
}

/* Add these styles */
#cafeName {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 24px;
    background-color: #ffffff88;
}

#cafeName.loading {
    background-color: #ffffff44;
}

.search-container {
    margin-bottom: 20px;
    position: relative;
}

.search-container::after {
    content: '🔍';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 2100;
    max-height: 300px;
    overflow-y: auto;
}

.search-result-item {
    padding: 10px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
}

.search-result-item:hover {
    background: #f5f5f5;
}

.search-result-item:last-child {
    border-bottom: none;
}

.place-name {
    font-weight: bold;
}

.place-address {
    font-size: 0.9em;
    color: #666;
}

#cafeName.loading {
    background-image: url('data:image/svg+xml;charset=utf8,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid"%3E%3Cpath fill="none" stroke="%23007bff" stroke-width="8" stroke-dasharray="42.76482137044271 42.76482137044271" d="M24.3 30C11.4 30 5 43.3 5 50s6.4 20 19.3 20c19.3 0 32.1-40 51.4-40 C88.6 30 95 43.3 95 50s-6.4 20-19.3 20C56.4 70 43.6 30 24.3 30z" stroke-linecap="round"%3E%3CanimateTransform attributeName="transform" type="rotate" repeatCount="indefinite" dur="1s" keyTimes="0;1" values="0 50 50;360 50 50"%3E%3C/animateTransform%3E%3C/path%3E%3C/svg%3E');
    background-position: right 10px center;
    background-repeat: no-repeat;
    background-size: 20px;
}

.popup-content {
    min-width: 200px;
    max-width: 280px;
    overflow: visible;
}

.popup-content h3 {
    margin: 0 0 8px 0;
    font-size: 16px;
    color: #333;
    max-width: 150px;
}

.popup-content p {
    margin: 0 0 6px 0;
    font-size: 14px;
    color: #666;
}

.rate-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background-color 0.2s;
}

.rate-btn:hover {
    background: var(--primary-dark);
}

.quick-ratings {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin: 12px 0;
}

.rating-item {
    font-size: 20px;
    color: #666;
}

.rating-item i {
    transition: color 0.2s;
}

.fa-solid {
    color: var(--primary-color);
}

.rating-level-1 { color: #f44336; }
.rating-level-2 { color: #2196F3; }
.rating-level-3 { color: #4CAF50; }

.ratings {
    margin-top: 8px;
}

.ratings p {
    margin: 2px 0;
    color: #666;
}

.form-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.form-overlay.visible {
    display: flex;
}

.rating-options {
    display: flex;
    gap: 8px;
    flex: 1;
}

.rating-option {
    flex: 1;
    text-align: center;
    font-size: 1.5em;
}

.rating-option:hover {
    background: #f5f5f5;
}

.rating-option input {
    display: none;
}

.rating-option input:checked + .rating-label {
    font-weight: bold;
    color: #4CAF50;
}

.notification {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    padding: 12px 24px;
    border-radius: 8px;
    color: white;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    opacity: 0;
    transition: transform 0.3s, opacity 0.3s;
    z-index: 2000;
    font-weight: bold;
    background: rgba(0,0,0,0.9);
    border: 1px solid rgba(255,255,255,0.2);
}

.notification.success {
    background: rgba(76,175,80,0.95);
}

.notification.error {
    background: rgba(244,67,54,0.95);
}

.notification.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.notification i {
    font-size: 16px;
    filter: drop-shadow(0 1px 1px rgba(0,0,0,0.2));
}

.search-container {
    margin-bottom: 10px;
}

.ratings-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.rating-group {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;  /* Reduce from 40px */
}

.rating-icons {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 8px 0;
    flex-wrap: nowrap;  /* Prevent wrapping */
}

.rating-options-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.rating-options-stack .rating-option {
    width: 24px;  /* Reduce from 40px */
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.rating-options-stack .rating-option:hover {
    background: #f5f5f5;
}

.rating-options-stack .rating-option input:checked ~ i {
    color: var(--primary-color);
}

/* Special handling for wifi+rocket combo */
.rating-options-stack .rating-option .fa-wifi {
    margin-right: -8px;
}

.rating-options-stack .rating-option .fa-rocket {
    font-size: 1.2em;
    color: var(--primary-color);
    animation: rocketFloat 2s ease-in-out infinite;
    margin-left: -8px;
}

/* Special handling for burger+slash */
.rating-options-stack .rating-option .fa-layers {
    width: 20px;
    height: 20px;
    position: relative;
}

.rating-options-stack .rating-option .fa-layers .fa-slash {
    position: absolute;
    top: 0;
    left: 0;
    transform: scale(2.4);
    color: white;
}

.form-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
}

button {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    background-color: #007bff;
    color: white;
    cursor: pointer;
}

button:hover {
    background-color: #0056b3;
}

.location-btn {
    position: fixed;
    bottom: 28px;
    right: 20px;
    width: 48px;  /* Mobile size by default */
    height: 48px;
    border-radius: 50%;
    background: white;
    color: #666;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    z-index: 1000;
}

.add-cafe-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: white;
    color: #666;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    z-index: 1000;
}

.form-overlay .form-container {
    width: 100%;
    height: 100%;
    max-width: none;
    border-radius: 0;
}

.popup-content {
    max-width: 280px;
}

.details-panel {
    width: 100%;
    max-width: none;
}

.search-box {
    position: fixed;
    top: 10px;
    left: 50%;
    transform: translate(-50%, 0);
    width: calc(100% - 32px);
    max-width: 600px;
    padding: 0;
    z-index: 1000;
}

.search-input-container {
    display: flex;
    align-items: center;
    border-radius: 24px;
    background: rgba(255,255,255,0.2);
    box-shadow: 0 2px 6px rgba(0,0,0,0.4);
    padding: 0 4px;
    position: relative;
}

.search-box input {
    flex: 1;
    font-size: 16px;
    /* Add styles for the placeholder text */
    &::placeholder {
        color: rgba(0,0,0,0.7);
        opacity: 1;
    }
}

.clear-button {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    padding: 6px;
    color: #666;
    background: white;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    z-index: 1;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-box input:not(:placeholder-shown) ~ .clear-button {
    opacity: 1;
    pointer-events: auto;
}

/* Position results below the search box */
.search-results {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    max-height: 50vh;
    overflow-y: auto;
}

.address-link {
    display: block;
    margin: 0 0 12px 0;
    font-size: 14px;
    color: #1a73e8;
    text-decoration: none;
}

.address-link:hover {
    text-decoration: underline;
    color: #174ea6;
}

.popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    gap: 8px;
}

.popup-header h3 {
    margin: 0;
    flex: 1;
}

.share-btn {
    background: none;
    border: none;
    color: #666;  /* Match other icon colors */
    cursor: pointer;
    padding: 8px;
    margin: 0;
    border-radius: 50%;
    font-size: 16px;  /* Match other icon sizes */
    -webkit-tap-highlight-color: transparent;  /* Remove blue highlight on mobile */
    outline: none;  /* Remove focus outline */
}

.share-btn:hover,
.share-btn:active {
    background: rgba(0, 0, 0, 0.1);  /* Subtle hover effect */
}

.share-btn:focus {
    outline: none;
    box-shadow: none;
}

.map-link {
    color: #1a73e8;
    font-size: 16px;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
}

.place-type {
    margin: 0 0 6px 0;
    font-size: 12px;
    color: #1a73e8;
    font-weight: 500;
}

/* User location marker styles */
.user-location-marker {
    width: 16px;
    height: 16px;
    background: #4285F4;
    border-radius: 50%;
    position: relative;
}

.user-location-marker::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    background: #4285F4;
    border-radius: 50%;
    opacity: 0.3;
    animation: pulse 2s ease-out infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.3; }
    70% { transform: scale(3); opacity: 0; }
    100% { transform: scale(3); opacity: 0; }
}

.map-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.install-prompt {
    position: fixed;
    bottom: 30px;
    left: 90px;
    z-index: 1000;
}

.install-prompt button {
    background: #1a73e8;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 24px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    cursor: pointer;
}

.install-prompt button:hover {
    background: #1557b0;
}

.install-instructions {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.instructions-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 300px;
    text-align: left;
}

.instructions-content h3 {
    margin: 0 0 16px 0;
    color: #1a73e8;
}

.instructions-content ol {
    margin: 0 0 20px 0;
    padding-left: 24px;
}

.instructions-content li {
    margin: 12px 0;
    line-height: 1.4;
}

.instructions-content button {
    width: 100%;
    padding: 12px;
    background: #1a73e8;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
}

.instructions-content button:hover {
    background: #1557b0;
}

.copy-url-container {
    margin: 16px 0;
}

.url-display {
    display: flex;
    align-items: center;
    background: #f5f5f5;
    padding: 8px;
    border-radius: 4px;
    margin-top: 8px;
    word-break: break-all;
    gap: 8px;
}

.copy-button {
    background: none;
    border: none;
    color: #1a73e8;
    padding: 4px 8px;
    cursor: pointer;
    flex-shrink: 0;
}

#urlToCopy {
    flex: 1;
    font-size: 14px;
    padding-right: 8px;
}

.delete-btn {
    background: none;
    border: none;
    color: #dc3545;
    padding: 4px 8px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.delete-btn:hover {
    opacity: 1;
}

/* Add confirmation dialog styling */
.confirm-dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    text-align: center;
    z-index: 2100;
}

.confirm-dialog .actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    justify-content: center;
}

.confirm-dialog .cancel-btn {
    background: #6c757d;
}

.confirm-dialog .delete-btn {
    background: #dc3545;
    color: white;
}

.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #242f3e;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
}

.splash-screen.hidden {
    display: none;
}

.splash-content {
    text-align: center;
    color: white;
    padding: 20px;
}

.splash-icon {
    font-size: 64px;
    margin-bottom: 20px;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.splash-icon::after {
    content: "♡";
    position: absolute;
    right: 27px;
    top: 17px;
    -webkit-text-stroke-width: 3px;
    font-size: 26px;
    animation: heartBeat 1.6s ease-in-out infinite;
    transform-origin: center;
}

@keyframes heartBeat {
    0% {
        transform: scale(1);
    }
    14% {
        transform: scale(1.3);
    }
    28% {
        transform: scale(1);
    }
    42% {
        transform: scale(1.3);
    }
    70% {
        transform: scale(1);
    }
}

.splash-content h1 {
    font-size: 32px;
    margin: 0 0 10px 0;
}

.splash-content p {
    font-size: 18px;
    margin: 0 0 30px 0;
    opacity: 0.8;
}

.splash-button {
    position: relative;
    min-width: 120px;
    height: 48px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 24px;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.splash-button:hover:not(:disabled) {
    background: var(--primary-dark);
}

.button-content, .button-text {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    transition: opacity 0.3s;
}

.button-content.hidden,
.button-text.hidden {
    display: none;
}

.splash-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Update ready state to switch content */
.splash-screen.ready .button-content {
    display: none;
}

.splash-screen.ready .button-text.hidden {
    display: block;  /* Show the text when ready */
}

.wifi-info {
    display: flex;
    justify-content: center;  /* Center horizontally */
}

.wifi-password-input {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    padding: 8px;
    width: 70%;  /* Make it shorter */
    max-width: 200px;  /* Maximum width */
}

.wifi-password-input input {
    flex: 1;
    background: transparent;
    border: none;
    color: darkgray;
    font-size: 14px;
    padding: 0;
    width: 100%;
    text-align: center;
    border-bottom: 1px solid var(--primary-color);
}

/* Change border color only on focus */
.wifi-password-input input:not(.readonly-input):focus {
    outline: none;
    border-bottom-color: var(--primary-color);
}

/* Keep readonly state clean */
.wifi-password-input input.readonly-input {
    border: none;
    padding-bottom: 0;
}

.wifi-password-input input.readonly-input {
    cursor: default;
}

.wifi-password-input input:focus {
    outline: none;
}

.wifi-password-input .copy-icon {
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.wifi-password-input .copy-icon:hover {
    opacity: 1;
}

/* Remove the old wifi-info styles that used spans */
.wifi-password {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background-color 0.2s;
    margin: 0 auto;
}

.wifi-password:hover {
    background: rgba(255, 255, 255, 0.1);
}

.wifi-password i {
    opacity: 0.7;
}

.splash-tagline {
    font-size: 16px;
    margin: 20px 0;
    opacity: 0.9;
    font-style: italic;
    line-height: 1.4;
}

.splash-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    opacity: 0.8;
}

.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.splash-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: var(--text-secondary);
}

/* Hide loading and show button when ready */
.splash-screen.ready .splash-loading {
    display: none;
}

.splash-screen.ready .splash-button {
    display: block;
}

/* Make spinner smaller and centered */
.splash-button .loading-spinner {
    width: 20px;
    height: 20px;
    margin: 0;
}

/* Add desktop-specific overrides if needed */
@media (min-width: 769px) {
    .location-btn {
        width: 56px;
        height: 56px;
    }
}

.fa-layers {
    position: relative;
    display: inline-block;
    vertical-align: middle;
}

.fa-layers .fa-slash {
    position: absolute;
    top: 0;
    left: 0;
    transform: scale(2.4);  /* Make slash bigger */
    color: #3a4452;  /* Make slash white */
}

@keyframes rocketFloat {
    0%, 100% { 
        transform: rotate(45deg) translateY(0);
    }
    50% { 
        transform: rotate(45deg) translateY(-3px);
    }
}

.rating-item .fa-rocket {
    font-size: 0.8em;
    color: var(--primary-color);
    animation: rocketFloat 2s ease-in-out infinite;
}

/* Keep wifi icon stable */
.rating-item .fa-wifi {
    margin-right: -8px;
}

/* Make trash icon red */
.delete-btn i {
    color: #dc3545;  /* Bootstrap's danger red */
}

.ratings-legend {
    margin: 24px auto;
    max-width: 360px;  /* But limit maximum width */
    text-align: left;
    background: rgba(255, 255, 255, 0.1);
    padding: 16px;
    border-radius: 8px;
}

.legend-item {
    display: grid;
    /* Define more precise column widths */
    grid-template-columns: 60px 24px 30px 24px 70px 50px;
    align-items: center;
    gap: 4px;  /* Reduce gap between items */
    margin: 8px 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    white-space: nowrap;  /* Prevent wrapping */
}

.legend-item i {
    color: var(--primary-color);
    text-align: center;  /* Center the icons */
}

.legend-or {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    text-align: center;
}

.legend-label {
    color: rgba(255, 255, 255, 0.9);
}

.legend-type {
    color: var(--primary-color);
    text-align: right;  /* Right align the type */
}

/* Special handling for wifi+rocket combo */
.legend-item .fa-rocket {
    margin-left: -8px;
}

/* Style the inline rating form */
.popup-content .ratings-container {
    margin-top: 12px;
}

.popup-content .rating-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.popup-content .rating-options {
    display: flex;
    gap: 4px;
    flex: 1;
}

.popup-content .rating-option {
    flex: 1;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    cursor: pointer;
    transition: background-color 0.2s;
    width:40px;
}

.popup-content .rating-option:hover {
    background: rgba(255, 255, 255, 0.05);
}

.popup-content .rating-option input {
    display: none;
}

.popup-content .rating-option input:checked + .rating-label {
    color: var(--primary-color);
    font-weight: bold;
}

.popup-content .rating-actions {
    display: flex;
    justify-content: center;
    margin: 12px 0;
    width: 100%;
}

.popup-content .submit-rating {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    background: var(--primary-color);
    color: white;
    transition: background-color 0.2s;
}

.popup-content .submit-rating:hover {
    background: var(--primary-dark);
}

.info-btn {
    left: 20px;  /* Position on the left side */
    right: auto; /* Override the right positioning from location-btn */
    bottom: 28px; /* Match location button's bottom position */
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.info-btn.active {
    transform: scale(1.2);
}

@keyframes rocketFloat {
    0%, 100% { 
        transform: rotate(45deg) translateY(3px);
    }
    50% { 
        transform: rotate(45deg) translateY(-3px);
    }
}

.rating-icons .rating-group .fa-rocket {
    font-size: 1em;
    color: var(--primary-color);
    animation: rocketFloat 2s ease-in-out infinite;
}

/* Keep wifi icon stable */
.rating-icons .rating-group .fa-wifi {
    margin-right: -8px;
}

/* Fix InfoWindow overflow */
.gm-style .gm-style-iw-c {
    padding: 12px !important;
    max-width: none !important;
}

.gm-style .gm-style-iw-d {
    overflow: hidden !important;
    max-width: none !important;
}

/* Hide unselected options by default */
.rating-options-stack .rating-option:not(.selected) {
    display: none;
}

/* Show all options when rating */
.rating-options-stack.rating {
    gap: 12px;  /* Restore gap when showing both options */
}

.rating-options-stack.rating .rating-option {
    display: flex;  /* Show all options when rating */
}

/* Default state - selected icon is blue */
.rating-options-stack .rating-option.selected i,
.rating-options-stack .rating-option.selected .fa-rocket {
    color: var(--primary-color);
}

/* Rating mode - ALL icons start grey, regardless of previous state */
.rating-options-stack.rating .rating-option i,
.rating-options-stack.rating .rating-option .fa-rocket,
.rating-options-stack.rating .rating-option.selected i,
.rating-options-stack.rating .rating-option.selected .fa-rocket {
    color: darkgray !important;
    animation: none !important;
}

/* Only change color when explicitly checked during rating */
.rating-options-stack.rating .rating-option input:checked + label i,
.rating-options-stack.rating .rating-option input:checked + label .fa-rocket {
    color: var(--primary-color) !important;
}

/* Restore rocket animation only when checked */
.rating-options-stack.rating .rating-option input:checked + label .fa-rocket {
    animation: rocketFloat 2s ease-in-out infinite !important;
}

/* Special handling for burger slash */
.rating-options-stack.rating .rating-option .fa-layers .fa-slash,
.rating-options-stack.rating .rating-option.selected .fa-layers .fa-slash {
    color: white !important;
}

.rating-options-stack.rating .rating-option input:checked + label .fa-layers .fa-slash {
    color: white !important;
}

.ios-share-icon {
    display: inline-block;
    vertical-align: middle;
    margin: 0px -6px;
    width: 28px;
    object-fit: contain;  /* Add this to ensure image scales properly */
}

/* Add splash footer styles */
.splash-footer {
    margin-top: 30px;
    font-size: 13px;
    opacity: 0.8;
    color: white;
    line-height: 1.4;
}

.splash-footer p {
    margin: 8px 0;
    font-size: 13px;
}

.splash-footer a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s;
}

.splash-footer a:hover {
    color: #5a9cff;  /* Lighter blue on hover */
    text-decoration: underline;
}

