/* Material Design Variables */
:root {
    /* Primary Colors */
    --mdc-theme-primary: #1976d2;
    --mdc-theme-primary-variant: #1565c0;
    --mdc-theme-secondary: #03dac6;
    --mdc-theme-secondary-variant: #018786;
    
    /* Surface Colors */
    --mdc-theme-surface: #ffffff;
    --mdc-theme-background: #fafafa;
    --mdc-theme-error: #b00020;
    
    /* Text Colors */
    --mdc-theme-on-primary: #ffffff;
    --mdc-theme-on-secondary: #000000;
    --mdc-theme-on-surface: #000000;
    --mdc-theme-on-background: #000000;
    --mdc-theme-on-error: #ffffff;
    
    /* Text Color Variants */
    --mdc-theme-text-primary-on-background: rgba(0, 0, 0, 0.87);
    --mdc-theme-text-secondary-on-background: rgba(0, 0, 0, 0.60);
    --mdc-theme-text-hint-on-background: rgba(0, 0, 0, 0.38);
    --mdc-theme-text-disabled-on-background: rgba(0, 0, 0, 0.38);
    
    /* Elevations */
    --mdc-elevation-z1: 0 2px 1px -1px rgba(0,0,0,.2), 0 1px 1px 0 rgba(0,0,0,.14), 0 1px 3px 0 rgba(0,0,0,.12);
    --mdc-elevation-z2: 0 3px 1px -2px rgba(0,0,0,.2), 0 2px 2px 0 rgba(0,0,0,.14), 0 1px 5px 0 rgba(0,0,0,.12);
    --mdc-elevation-z4: 0 2px 4px -1px rgba(0,0,0,.2), 0 4px 5px 0 rgba(0,0,0,.14), 0 1px 10px 0 rgba(0,0,0,.12);
    --mdc-elevation-z8: 0 5px 5px -3px rgba(0,0,0,.2), 0 8px 10px 1px rgba(0,0,0,.14), 0 3px 14px 2px rgba(0,0,0,.12);
    
    /* Transitions */
    --mdc-animation-standard: cubic-bezier(0.4, 0.0, 0.2, 1);
    --mdc-animation-decelerated: cubic-bezier(0.0, 0.0, 0.2, 1);
    --mdc-animation-accelerated: cubic-bezier(0.4, 0.0, 1, 1);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--mdc-theme-background);
    color: var(--mdc-theme-text-primary-on-background);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Material Typography */
.mdc-typography {
    font-family: 'Roboto', sans-serif;
}

.mdc-typography--headline6 {
    font-size: 1.25rem;
    font-weight: 500;
    line-height: 2rem;
    letter-spacing: 0.0125em;
    margin: 0;
    color: var(--mdc-theme-text-primary-on-background);
}

/* Top App Bar */
.mdc-top-app-bar {
    background-color: var(--mdc-theme-primary);
    color: var(--mdc-theme-on-primary);
    position: relative;
    left: 0;
    right: 0;
    z-index: 7;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--mdc-elevation-z4);
    transition: box-shadow 250ms var(--mdc-animation-standard);
}

.mdc-top-app-bar__row {
    display: flex;
    position: relative;
    box-sizing: border-box;
    width: 100%;
    height: 64px;
    padding: 0 24px;
    align-items: center;
}

.mdc-top-app-bar__section {
    display: inline-flex;
    flex: 1 1 auto;
    align-items: center;
    min-width: 0;
    z-index: 1;
}

.mdc-top-app-bar__section--align-end {
    justify-content: flex-end;
    flex: 0 1 auto;
    gap: 16px;
    align-items: center;
}

.mdc-top-app-bar__title {
    font-size: 1.25rem;
    font-weight: 500;
    letter-spacing: 0.0125em;
    text-decoration: inherit;
    text-transform: inherit;
    display: flex;
    align-items: center;
    gap: 8px;
}

.app-icon {
    font-size: 24px;
}

.subtitle {
    font-size: 0.875rem;
    opacity: 0.7;
    font-weight: 400;
}

/* User Profile Dropdown */
.user-profile-dropdown {
    position: relative;
    display: inline-block;
    margin-left: 16px;
}

.user-profile-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.2s ease;
    object-fit: cover;
}

.user-profile-avatar:hover {
    border-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.05);
}

.profile-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: var(--mdc-elevation-z8);
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1000;
}

.user-profile-dropdown.active .profile-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.profile-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 16px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--mdc-theme-text-primary-on-background);
    transition: background 0.2s ease;
    font-family: 'Roboto', sans-serif;
}

.profile-dropdown-item:hover {
    background: rgba(0, 0, 0, 0.04);
}

.profile-dropdown-item .material-icons {
    font-size: 20px;
    color: var(--mdc-theme-text-secondary-on-background);
}

.mdc-top-app-bar--fixed-adjust {
    padding-top: 0;
}

/* Material Layout */
/* Simple Single Column Layout */
.simple-layout {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 4px 4px 4px; /* No top padding, only sides and bottom */
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Flight Information Banner */
.flight-info-banner {
    background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%);
    border-radius: 8px;
    padding: 16px 24px;
    display: none; /* Hidden by default, shown for authenticated users via JS */
    align-items: center;
    justify-content: center;
    gap: 32px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    color: white;
}

.flight-segment {
    display: flex;
    align-items: center;
    gap: 12px;
}

.flight-icon {
    font-size: 32px;
    opacity: 0.9;
}

.flight-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.flight-route {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
}

.flight-route strong {
    font-weight: 600;
    letter-spacing: 0.5px;
}

.flight-date {
    font-size: 0.875rem;
    opacity: 0.9;
    background: rgba(255, 255, 255, 0.15);
    padding: 2px 8px;
    border-radius: 4px;
}

.flight-meta {
    font-size: 0.8125rem;
    opacity: 0.85;
}

.flight-divider {
    width: 1px;
    height: 50px;
    background: rgba(255, 255, 255, 0.3);
}

.mdc-top-app-bar--fixed-adjust {
    padding-top: 64px;
}

/* Cards */
.mdc-card {
    background: var(--mdc-theme-surface);
    border-radius: 4px;
    box-shadow: var(--mdc-elevation-z2);
    transition: box-shadow 250ms var(--mdc-animation-standard);
    width: 100%;
}

/* Material Cards */
.mdc-card {
    background-color: var(--mdc-theme-surface);
    border-radius: 4px;
    box-shadow: var(--mdc-elevation-z1);
    overflow: hidden;
    transition: box-shadow 250ms var(--mdc-animation-standard);
}

.mdc-card:hover {
    box-shadow: var(--mdc-elevation-z2);
}

.mdc-card__primary-action {
    cursor: default;
}

.mdc-card__content {
    padding: 0 20px 20px 20px;
}

.card-header {
    padding: 20px 20px 0 20px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 16px;
}

.map-card .card-header {
    justify-content: flex-start;
}

.card-header h2 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.agenda-counter {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--mdc-theme-text-secondary-on-background);
    margin-left: 4px;
}

.card-header .material-icons {
    font-size: 20px;
    color: var(--mdc-theme-primary);
}

.date-filter-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 16px 16px 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    display: none;
}

.stay-expand-collapse-container {
    display: none;
}

.date-filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 16px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--mdc-theme-text-primary-on-background);
    cursor: pointer;
    transition: all 150ms var(--mdc-animation-standard);
    user-select: none;
}

.date-filter-tag .material-icons {
    font-size: 16px;
    color: var(--mdc-theme-text-secondary-on-background);
}

.date-filter-tag:hover {
    background: rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
    box-shadow: var(--mdc-elevation-z2);
}

.date-filter-tag.active {
    background: var(--mdc-theme-primary);
    color: var(--mdc-theme-on-primary);
    border-color: var(--mdc-theme-primary);
}

.date-filter-tag.active .material-icons {
    color: var(--mdc-theme-on-primary);
}

.expand-collapse-tag {
    background: rgba(0, 0, 0, 0.06);
    border-color: rgba(0, 0, 0, 0.18);
    margin-top: 4px; /* Small gap from date filters */
    display: none; /* Hide on desktop, show on mobile */
    padding: 6px 10px !important; /* Smaller padding for compact size */
    font-size: 0.75rem !important; /* Smaller font */
}

.expand-collapse-tag:hover {
    background: rgba(0, 0, 0, 0.1);
}

/* Desktop/Mobile visibility helpers */
.desktop-only {
    display: block;
}

.mobile-only {
    display: none;
}

/* Material Text Fields */
.mdc-text-field {
    height: 56px;
    border-radius: 4px 4px 0 0;
    background-color: rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: visible;
    will-change: opacity, transform, color;
    margin-bottom: 4px;
    display: flex;
    align-items: flex-end;
}

.mdc-text-field--filled {
    background-color: rgba(0, 0, 0, 0.04);
}

.mdc-text-field--textarea {
    height: auto;
    min-height: 56px;
    resize: none;
    padding: 0;
    align-items: stretch;
}

.mdc-text-field__input {
    width: 100%;
    height: 32px;
    padding: 20px 16px 6px;
    border: none;
    border-radius: 0;
    background: none;
    appearance: none;
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.009375em;
    text-decoration: inherit;
    text-transform: inherit;
    box-sizing: border-box;
    transition: opacity 150ms var(--mdc-animation-standard);
    display: flex;
    align-items: center;
}

.mdc-text-field__input:focus {
    outline: none;
}

.mdc-text-field--textarea .mdc-text-field__input {
    height: auto;
    min-height: 28px;
    padding: 20px 16px 6px;
    resize: none;
}

.mdc-text-field__resizer {
    display: flex;
    position: relative;
    flex-grow: 1;
    min-height: 56px;
    max-height: 120px;
    overflow: hidden;
    resize: vertical;
    width: 100%;
}

.mdc-floating-label {
    position: absolute;
    left: 16px;
    top: 18px;
    transition: transform 150ms var(--mdc-animation-standard),
                color 150ms var(--mdc-animation-standard);
    color: var(--mdc-theme-text-secondary-on-background);
    pointer-events: none;
    font-size: 1rem;
    line-height: 1.15rem;
    letter-spacing: 0.009375em;
    z-index: 1;
    background: transparent;
}

.mdc-text-field--textarea .mdc-floating-label {
    top: 16px;
    transform: translateY(0);
}

.mdc-text-field--focused .mdc-floating-label,
.mdc-text-field--with-value .mdc-floating-label {
    transform: translateY(-140%) scale(0.75);
    color: var(--mdc-theme-primary);
    background: var(--mdc-theme-background);
    padding: 0 4px;
    margin-left: -4px;
}

.mdc-text-field--textarea.mdc-text-field--focused .mdc-floating-label,
.mdc-text-field--textarea.mdc-text-field--with-value .mdc-floating-label {
    transform: translateY(-50%) scale(0.75);
    top: -8px;
    background: var(--mdc-theme-background);
    padding: 0 4px;
    margin-left: -4px;
}

.mdc-line-ripple {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    transform: scaleX(0);
    transition: transform 180ms var(--mdc-animation-standard),
                opacity 180ms var(--mdc-animation-standard);
    opacity: 0;
    z-index: 2;
}

.mdc-line-ripple::before {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--mdc-theme-text-hint-on-background);
    content: "";
}

.mdc-line-ripple::after {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--mdc-theme-primary);
    content: "";
    transform: scaleX(0);
    transition: transform 180ms var(--mdc-animation-standard);
}

.mdc-text-field--focused .mdc-line-ripple::after {
    transform: scaleX(1);
}

.mdc-text-field__ripple {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* Material Select */
.mdc-select {
    position: relative;
    height: 56px;
    border-radius: 4px 4px 0 0;
    background-color: rgba(0, 0, 0, 0.04);
    overflow: visible;
    margin-bottom: 4px;
    display: flex;
    align-items: flex-end;
}

.mdc-select__anchor {
    display: flex;
    align-items: center;
    position: relative;
    height: 100%;
    cursor: pointer;
    outline: none;
}

.mdc-select__selected-text-container {
    flex: 1;
    padding: 20px 16px 6px;
    font-size: 1rem;
    line-height: 1.15rem;
    letter-spacing: 0.009375em;
    display: flex;
    align-items: center;
    min-height: 32px;
}

.mdc-select__dropdown-icon {
    width: 24px;
    height: 24px;
    margin-right: 12px;
    transition: transform 150ms var(--mdc-animation-standard);
}

.mdc-select--activated .mdc-select__dropdown-icon {
    transform: rotate(180deg);
}

.mdc-select__menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--mdc-theme-surface);
    box-shadow: var(--mdc-elevation-z8);
    border-radius: 4px;
    z-index: 1000;
    transform-origin: top center;
    transition: transform 150ms var(--mdc-animation-standard),
                opacity 150ms var(--mdc-animation-standard);
    transform: scaleY(0);
    opacity: 0;
    max-height: 200px;
    overflow-y: auto;
}

.mdc-select--activated .mdc-select__menu {
    transform: scaleY(1);
    opacity: 1;
}

.mdc-list {
    list-style: none;
    margin: 0;
    padding: 8px 0;
}

.mdc-list-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: 48px;
    padding: 0 16px;
    overflow: hidden;
    will-change: opacity, transform, color;
    cursor: pointer;
    position: relative;
}

.mdc-list-item:hover {
    background-color: rgba(0, 0, 0, 0.04);
}

.mdc-list-item--selected {
    background-color: rgba(25, 118, 210, 0.12);
    color: var(--mdc-theme-primary);
}

.mdc-list-item__text {
    flex: 1;
    font-size: 1rem;
    line-height: 1.5rem;
    letter-spacing: 0.009375em;
}

.mdc-list-item__ripple {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* Material Buttons */
.mdc-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-width: 64px;
    height: 36px;
    border: none;
    outline: none;
    line-height: inherit;
    user-select: none;
    appearance: none;
    overflow: visible;
    vertical-align: middle;
    border-radius: 4px;
    font-family: 'Roboto', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.0892857143em;
    text-decoration: none;
    text-transform: uppercase;
    cursor: pointer;
    transition: box-shadow 280ms var(--mdc-animation-standard);
}

.mdc-button--raised {
    background-color: var(--mdc-theme-primary);
    color: var(--mdc-theme-on-primary);
    box-shadow: var(--mdc-elevation-z2);
    padding: 0 24px;
}

.mdc-button--raised:hover,
.mdc-button--raised:focus {
    box-shadow: var(--mdc-elevation-z4);
}

.mdc-button__label {
    position: relative;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

.mdc-button__ripple {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    border-radius: inherit;
}

/* Form Layout */
.material-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-items: end;
    margin-bottom: 4px;
}

.form-row .mdc-button {
    height: 56px;
    margin-top: 8px;
}

.form-row .mdc-text-field {
    margin-bottom: 0;
}

/* Agenda Items */
.agenda-container {
    max-height: calc(100vh - 280px);
    overflow-y: auto;
    padding-right: 8px;
    min-height: 200px;
}

.agenda-container::-webkit-scrollbar {
    width: 4px;
}

.agenda-container::-webkit-scrollbar-track {
    background: transparent;
}

.agenda-container::-webkit-scrollbar-thumb {
    background: var(--mdc-theme-text-hint-on-background);
    border-radius: 2px;
}

.agenda-container::-webkit-scrollbar-thumb:hover {
    background: var(--mdc-theme-text-secondary-on-background);
}

.agenda-item {
    background: var(--mdc-theme-surface);
    border-radius: 4px;
    margin-bottom: 12px;
    padding: 12px 16px 8px 16px;
    box-shadow: var(--mdc-elevation-z1);
    transition: box-shadow 250ms var(--mdc-animation-standard);
    border-left: 4px solid var(--mdc-theme-primary);
    overflow: hidden;
}

/* Desktop: always show expanded content, hide collapsed preview and toggle */
.agenda-item .collapsed-preview {
    display: none;
}

.agenda-item .expanded-content {
    display: block;
}

.card-expand-toggle {
    display: none;
}

.agenda-item:hover {
    box-shadow: var(--mdc-elevation-z2);
}

.agenda-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 0;
}

.left-content {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.right-content {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

/* Title row with author avatar */
.agenda-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 4px;
}

.agenda-title {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--mdc-theme-text-primary-on-background);
    margin-bottom: 4px;
    line-height: 1.3;
    word-wrap: break-word;
    max-width: 100%;
    display: flex;
    align-items: center;
    gap: 6px;
}

.agenda-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 4px;
    font-size: 0.8125rem;
    color: var(--mdc-theme-text-secondary-on-background);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 3px;
}

.meta-item .material-icons {
    font-size: 14px;
}

/* New meta-row structure for desktop */
.meta-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
    color: #546e7a;
}

.meta-row .material-icons {
    font-size: 16px;
    vertical-align: middle;
}

.meta-row .category-badge {
    padding: 4px 10px;
    font-size: 0.75rem;
    white-space: nowrap;
    color: #546e7a;
    border-radius: 12px;
    margin-left: 6px;
}

.meta-divider {
    margin: 0 6px;
    color: #90a4ae;
}

.meta-row.vote-counts {
    display: flex;
    gap: 16px;
}

.vote-count-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.875rem;
    cursor: pointer;
}

.vote-count-item .material-icons {
    font-size: 18px;
}

/* Compact voter avatars for agenda cards */
.voter-avatars-compact {
    display: flex;
    gap: 12px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.avatar-group {
    display: flex;
    position: relative;
}

.avatar-compact-overlap {
    position: relative;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    margin-left: -8px;
    transition: transform 0.2s ease;
}

.avatar-compact-overlap:first-child {
    margin-left: 0;
}

.avatar-compact-overlap:hover {
    transform: translateY(-2px);
    z-index: 10;
}

.avatar-compact-overlap img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.avatar-placeholder-compact {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 500;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.vote-badge-compact {
    position: absolute;
    bottom: -3px;
    right: -3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.vote-badge-compact .material-icons {
    font-size: 11px;
    color: white;
}

.vote-badge-compact.upvote-badge {
    background-color: #4caf50;
}

.vote-badge-compact.downvote-badge {
    background-color: #f44336;
}

/* Old styles - kept for backwards compatibility */
.avatar-compact {
    position: relative;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.avatar-compact img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e0e0e0;
}

.agenda-description {
    color: var(--mdc-theme-text-secondary-on-background);
    margin: 0;
    padding: 0;
    line-height: 1.4;
    font-size: 0.8125rem;
    width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-height: 2.8em; /* ~2 lines based on line-height 1.4 */
    overflow: hidden;
}

.agenda-footer {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-top: 0;
    padding-top: 0;
}

.vote-section {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
}

.vote-btn {
    background: #e0e0e0;
    color: #9e9e9e;
    border: none;
    padding: 0;
    border-radius: 50%;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.8125rem;
    transition: all 150ms var(--mdc-animation-standard);
    box-shadow: var(--mdc-elevation-z2);
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    flex-shrink: 0;
}

.vote-btn:hover {
    box-shadow: var(--mdc-elevation-z4);
    transform: scale(1.1);
}

.upvote-btn.active {
    background: #4caf50;
    color: white;
}

.upvote-btn.active:hover {
    background: #45a049;
}

.downvote-btn.active {
    background: #f44336;
    color: white;
}

.downvote-btn.active:hover {
    background: #da190b;
}

/* Edit Button */
.edit-btn {
    background: transparent;
    border: none;
    color: #1976d2;
    cursor: pointer;
    padding: 2px;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    min-width: 24px;
    min-height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 150ms var(--mdc-animation-standard);
    flex-shrink: 0;
}

.edit-btn:hover {
    background: rgba(25, 118, 210, 0.1);
}

.edit-btn .material-icons {
    font-size: 16px;
}

.vote-btn .material-icons {
    font-size: 20px;
}

.vote-count {
    font-weight: 500;
    color: var(--mdc-theme-primary);
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 0.8125rem;
}

.vote-count .material-icons {
    font-size: 16px;
}

.vote-count-display {
    display: flex;
    align-items: center;
    gap: 3px;
    font-weight: 500;
    font-size: 0.8125rem;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 12px;
    transition: background-color 150ms var(--mdc-animation-standard);
}

.vote-count-display:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.vote-count-display .material-icons {
    font-size: 16px;
}

.voter-tooltip {
    position: absolute;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    z-index: 10000;
    max-width: 300px;
    box-shadow: var(--mdc-elevation-z8);
    animation: fadeIn 150ms var(--mdc-animation-standard);
}

.tooltip-voter {
    padding: 4px 0;
    white-space: nowrap;
}

.tooltip-empty {
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.category-badge {
    color: #546e7a;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.0333333333em;
    text-transform: uppercase;
    white-space: nowrap;
    flex-shrink: 0;
}

.added-by {
    font-size: 0.6875rem;
    color: var(--mdc-theme-text-secondary-on-background);
    font-style: italic;
    text-align: right;
    margin: 0;
}

/* Author avatar in title row */
.author-avatar-container {
    flex-shrink: 0;
}

.author-avatar,
.author-avatar-placeholder {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e0e0e0;
    cursor: pointer;
}

.author-avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
}

/* Voter row container */
.voter-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
    gap: 12px;
}

/* Change Vote button */
.change-vote-btn {
    background: var(--mdc-theme-primary);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 6px 12px;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
    white-space: nowrap;
}

.change-vote-btn:hover {
    background: #1565c0;
}

.change-vote-btn:active {
    transform: scale(0.98);
}

/* ===== STAYS SECTION STYLES ===== */
.stay-item {
    border-left: 4px solid #4caf50;
    position: relative;
}

.stay-item.purchased {
    background-color: #f1f8f4;
    border-left-color: #2e7d32;
}

.stay-thumbnail {
    width: 120px;
    height: 120px;
    overflow: hidden;
    border-radius: 8px;
    float: left;
    margin-right: 16px;
    margin-bottom: 8px;
}

.stay-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.stay-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #546e7a;
    padding: 4px 10px;
    border-radius: 12px;
    margin-left: 6px;
    font-size: 0.75rem;
}

.stay-type-badge .material-icons {
    font-size: 16px;
}

.stay-notes {
    margin: 8px 0;
    padding: 8px 0;
    font-size: 0.875rem;
    color: #546e7a;
    font-style: italic;
}

.stay-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.purchased-badge,
.not-purchased-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 500;
}

.purchased-badge {
    background: #e8f5e9;
    color: #2e7d32;
}

.purchased-badge .material-icons {
    font-size: 16px;
}

.not-purchased-badge {
    background: #fff3e0;
    color: #e65100;
}

.not-purchased-badge .material-icons {
    font-size: 16px;
}

.stay-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background: var(--mdc-theme-primary);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    transition: background 0.2s ease;
}

.stay-link-btn:hover {
    background: #1565c0;
}

.stay-link-btn .material-icons {
    font-size: 16px;
}

.delete-stay-btn {
    background: transparent;
    border: none;
    color: #d32f2f;
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    transition: background 0.2s ease;
    margin-left: 4px;
}

.delete-stay-btn:hover {
    background: #ffebee;
}

.delete-stay-btn .material-icons {
    font-size: 18px;
}

.checkbox-group {
    display: flex;
    align-items: center;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: normal;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.9375rem;
    color: var(--mdc-theme-text-primary-on-background);
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Map */
/* Map Card */
.map-card {
    width: 100%;
    margin-top: 24px;
}

#map-container {
    width: 100%;
    height: 400px;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    z-index: 1;
    margin-top: 20px;
}

/* Sort Select */
.sort-select {
    width: 160px;
    flex-shrink: 0;
    margin-bottom: 0;
}

/* Messages */
.message {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    padding: 16px 24px;
    border-radius: 4px;
    font-weight: 500;
    box-shadow: var(--mdc-elevation-z8);
    z-index: 10000;
    animation: slideDown 300ms var(--mdc-animation-decelerated);
}

.message.success {
    background: #4caf50;
    color: white;
}

.message.error {
    background: var(--mdc-theme-error);
    color: var(--mdc-theme-on-error);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 48px 24px;
    color: var(--mdc-theme-text-secondary-on-background);
}

.empty-state h3 {
    margin-bottom: 16px;
    color: var(--mdc-theme-text-primary-on-background);
    font-size: 1.25rem;
    font-weight: 500;
}

.empty-state p {
    font-size: 1rem;
    line-height: 1.5;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .material-layout {
        grid-template-columns: minmax(280px, 350px) 1fr;
        gap: 16px;
    }
}

@media (max-width: 900px) {
    .simple-layout {
        padding: 0 4px 4px 4px; /* No top padding, only sides and bottom */
        gap: 8px;
    }
    
    #map-container {
        height: 300px;
    }
    
    .agenda-container {
        max-height: none;
    }
}

@media (max-width: 768px) {
    .mdc-top-app-bar__row {
        padding: 0 16px;
        height: 56px;
    }
    
    .mdc-top-app-bar--fixed-adjust {
        padding-top: 10px;
    }
    
    .mdc-top-app-bar__title {
        font-size: 1.125rem;
    }
    
    .subtitle {
        display: none;
    }
    
    .material-layout {
        margin: 8px auto;
        padding: 0 12px;
        gap: 12px;
    }
    
    .mdc-card__content {
        padding: 0 16px 16px 16px;
    }
    
    .card-header {
        padding: 16px 16px 0 16px;
        margin-bottom: 12px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-bottom: 8px;
    }
    
    .agenda-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 12px;
    }
    
    .agenda-meta {
        gap: 8px;
    }
    
    .agenda-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .vote-section {
        width: 100%;
        justify-content: space-between;
    }
    
    #map-container {
        height: 250px;
    }
    
    .agenda-container {
        max-height: 300px;
    }
}

/* Material Design Focus States */
.mdc-text-field:not(.mdc-text-field--disabled):hover {
    background-color: rgba(0, 0, 0, 0.08);
}

.mdc-text-field--focused {
    background-color: rgba(0, 0, 0, 0.12);
}

.mdc-select:not(.mdc-select--disabled):hover {
    background-color: rgba(0, 0, 0, 0.08);
}



/* Header */
header {
    background: rgba(255, 255, 255, 0.95);
    padding: 1.5rem 0;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 1000;
}

header h1 {
    font-size: 2rem;
    margin-bottom: 0.3rem;
    color: #2c3e50;
}

header p {
    color: #7f8c8d;
    font-size: 1rem;
}

/* Compact Layout */
.compact-layout {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 1.5rem;
    height: calc(100vh - 200px);
}

.left-panel, .right-panel {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.left-panel {
    min-width: 400px;
}

.right-panel {
    overflow: hidden;
}

/* Main Content */
main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 0.25rem;
}

.compact-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    padding: 0.75rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    height: fit-content;
}

.compact-section h2 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.4rem;
    text-align: left;
}

/* Agenda Header */
.agenda-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.agenda-header select {
    padding: 0.4rem 0.8rem;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 0.9rem;
    background: white;
}

/* Agenda Items */
.agenda-container {
    max-height: calc(100vh - 300px);
    overflow-y: auto;
    padding-right: 0.5rem;
}

.agenda-container::-webkit-scrollbar {
    width: 6px;
}

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

.agenda-container::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.agenda-container::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.agenda-item {
    background: #fff;
    border: 2px solid #ecf0f1;
    border-radius: 8px;
    padding: 1rem;
    transition: all 0.3s ease;
    position: relative;
    margin-bottom: 0.8rem;
}

.agenda-item:hover {
    border-color: #3498db;
    transform: translateY(-1px);
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
}

.agenda-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.agenda-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.3rem;
}

.agenda-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
    font-size: 0.8rem;
    color: #7f8c8d;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.agenda-description {
    color: #555;
    margin-bottom: 1rem;
    line-height: 1.5;
    width: 100%;
    /* Truncate to 2 lines with ellipsis */
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    word-break: break-word;
}

.agenda-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.vote-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.vote-count {
    font-weight: 600;
    color: #27ae60;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.category-badge {
    color: #546e7a;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.added-by {
    font-size: 0.8rem;
    color: #95a5a6;
    font-style: italic;
}

/* Map */
#map-container {
    height: 300px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
}

/* Compact Form Styles */
#add-item-form {
    width: 100%;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
}

.form-row input,
.form-row select,
.form-row button {
    padding: 0.6rem;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 0.9rem;
    transition: border-color 0.3s ease;
}

.form-row input:focus,
.form-row select:focus {
    outline: none;
    border-color: #3498db;
}

#description {
    width: 100%;
    padding: 0.6rem;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 0.9rem;
    resize: vertical;
    margin-bottom: 0.8rem;
}

#description:focus {
    outline: none;
    border-color: #3498db;
}

.form-row button[type="submit"] {
    background: #27ae60;
    color: white;
    border: none;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-row button[type="submit"]:hover {
    background: #2ecc71;
    transform: translateY(-1px);
}

/* Responsive Design */
@media (max-width: 1000px) {
    .compact-layout {
        grid-template-columns: 1fr;
        height: auto;
    }
    
    .left-panel {
        min-width: auto;
        order: 2;
    }
    
    .right-panel {
        order: 1;
    }
    
    .agenda-container {
        max-height: 400px;
    }
}

@media (max-width: 768px) {
    /* More compact header on mobile */
    header {
        padding: 0.75rem 0;
    }
    
    header h1 {
        font-size: 1.375rem;
        margin-bottom: 0.15rem;
    }
    
    header p {
        font-size: 0.8125rem;
    }
    
    main {
        margin: 0 auto;
        padding: 0 0.25rem;
    }
    
    /* Compact flight info on mobile */
    .flight-info-banner {
        flex-direction: column;
        gap: 16px;
        padding: 12px 16px;
        margin-bottom: 0; /* Remove bottom margin to reduce gap */
        border: 2px solid rgba(255, 255, 255, 0.3);
    }
    
    /* Add borders to section cards on mobile */
    .agenda-card {
        border: 2px solid #e0e0e0;
        border-radius: 8px;
        overflow: hidden;
    }
    
    .flight-segment {
        width: 100%;
        gap: 10px;
    }
    
    .flight-icon {
        font-size: 28px;
    }
    
    .flight-route {
        font-size: 0.9375rem;
        gap: 8px;
    }
    
    .flight-date {
        font-size: 0.8125rem;
    }
    
    .flight-meta {
        font-size: 0.75rem;
    }
    
    .flight-divider {
        width: 100%;
        height: 1px;
    }
    
    .compact-section {
        padding: 0.625rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    /* Horizontal scrolling date filter */
    .date-filter-container {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        gap: 8px !important;
        padding: 8px 16px !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE and Edge */
    }
    
    .date-filter-container::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Opera */
    }
    
    .date-filter-tag {
        flex-shrink: 0 !important;
        white-space: nowrap !important;
        padding: 6px 12px !important;
        font-size: 0.75rem !important;
    }
    
    /* Make expand/collapse button wrap to new line on mobile */
    .date-filter-container {
        flex-wrap: wrap !important; /* Override nowrap to allow button to wrap */
        justify-content: flex-start !important;
    }

    .stay-expand-collapse-container {
        display: flex !important;
        justify-content: flex-end;
        padding: 0 16px 16px 16px;
    }
    
    .expand-collapse-tag {
        display: inline-flex !important; /* Show on mobile */
        flex-grow: 0 !important; /* Don't grow */
        flex-shrink: 0 !important; /* Don't shrink */
        flex-basis: auto !important; /* Size based on content only */
        width: fit-content !important; /* Fit content width */
        max-width: fit-content !important; /* Don't expand */
        min-width: 0 !important; /* Remove any min-width */
        margin-left: auto !important; /* Push to the right on its line */
        margin-top: 8px !important; /* Space from date filters above */
        padding: 4px 8px !important; /* Compact padding */
        font-size: 0.7rem !important; /* Smaller text */
        gap: 4px !important; /* Smaller gap between icon and text */
        order: 999; /* Move to end after all date filters */
    }
    
    .expand-collapse-tag .material-icons {
        font-size: 14px !important; /* Smaller icon */
    }
    
    /* Show/hide desktop vs mobile elements */
    .desktop-only {
        display: none !important;
    }
    
    .mobile-only {
        display: block !important;
    }
    
    /* Mobile-friendly card layout - similar to map popup */
    .agenda-item {
        padding: 12px;
        margin-bottom: 10px;
        background: var(--mdc-theme-surface);
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        position: relative;
    }
    
    /* Highlight unvoted cards with light red background when collapsed */
    .agenda-item.unvoted:not(.expanded) {
        background: #ffebee !important;
        border-left: 4px solid #ef5350 !important;
    }
    
    /* Compact padding for collapsed cards */
    .agenda-item:not(.expanded) {
        padding: 8px 12px;
    }
    
    /* Show expand/collapse all button on mobile */
    .expand-toggle-btn {
        display: inline-flex !important;
    }
    
    /* Collapsed state by default on mobile */
    .agenda-item .collapsed-preview {
        display: block;
    }
    
    .agenda-item .expanded-content {
        display: none;
    }
    
    .agenda-item .right-content {
        display: none;
    }
    
    /* Expanded state when toggled */
    .agenda-item.expanded .collapsed-preview {
        display: none;
    }
    
    .agenda-item.expanded .expanded-content {
        display: block;
    }
    
    .agenda-item.expanded .right-content {
        display: flex;
    }
    
    /* Expand toggle button */
    .card-expand-toggle {
        position: absolute;
        top: 8px;
        right: 8px;
        width: 32px;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(0, 0, 0, 0.05);
        border-radius: 50%;
        cursor: pointer;
        transition: all 0.3s ease;
        z-index: 10;
    }
    
    .card-expand-toggle:hover {
        background: rgba(0, 0, 0, 0.1);
    }
    
    .card-expand-toggle .expand-icon {
        font-size: 20px;
        color: #546e7a;
        transition: transform 0.3s ease;
    }
    
    .agenda-item.expanded .card-expand-toggle .expand-icon {
        transform: rotate(180deg);
    }
    
    /* Author avatar positioned below collapse button */
    .agenda-header .author-avatar-container.mobile-only {
        display: block; /* Show on mobile */
        position: absolute;
        top: 48px;
        right: 8px;
        z-index: 10;
    }
    
    /* Collapsed preview styles */
    .collapsed-preview {
        padding-right: 40px; /* Space for expand button */
        cursor: pointer;
    }
    
    .preview-compact-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        min-height: 32px;
    }
    
    .preview-info {
        display: flex;
        align-items: center;
        gap: 8px;
        flex: 1;
        min-width: 0;
        font-size: 0.875rem;
        overflow: hidden;
    }
    
    .preview-name {
        font-weight: 500;
        color: #2c3e50;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .preview-votes {
        display: flex;
        align-items: center;
        gap: 6px;
        flex-shrink: 0;
        pointer-events: none; /* Allow clicks to pass through to collapsed-preview */
    }
    
    .vote-mini {
        display: flex;
        align-items: center;
        gap: 2px;
        font-size: 0.75rem;
        font-weight: 500;
        white-space: nowrap;
        pointer-events: none; /* Allow clicks to pass through to collapsed-preview */
    }
    
    .vote-mini .material-icons {
        font-size: 16px;
    }
    
    .upvote-mini {
        color: #4caf50;
    }
    
    .downvote-mini {
        color: #f44336;
    }
    
    .no-votes-mini {
        font-size: 0.75rem;
        color: #90a4ae;
        font-style: italic;
        pointer-events: none; /* Allow clicks to pass through */
    }
    
    .preview-title {
        font-size: 1rem;
        font-weight: 500;
        color: #2c3e50;
        margin-bottom: 6px;
        line-height: 1.3;
    }
    
    .preview-location {
        display: flex;
        align-items: center;
        gap: 4px;
        font-size: 0.8125rem;
        color: #546e7a;
        margin-bottom: 8px;
    }
    
    .preview-location .material-icons {
        font-size: 16px;
    }
    
    .preview-voters {
        display: flex;
        align-items: center;
    }
    
    .agenda-header {
        flex-direction: column;
        gap: 8px;
        margin-bottom: 0;
        align-items: stretch;
    }
    
    .left-content {
        width: 100%;
        overflow: hidden;
    }
    
    .agenda-title {
        font-size: 1rem;
        font-weight: 500;
        margin-bottom: 8px;
        line-height: 1.3;
        color: #2c3e50;
    }
    
    /* Organize meta info in rows with proper wrapping */
    .agenda-meta {
        display: flex;
        flex-direction: column;
        gap: 6px;
        margin-bottom: 8px;
    }
    
    .meta-row {
        font-size: 0.8125rem;
        color: #546e7a;
        display: flex;
        align-items: center;
        gap: 4px;
        flex-wrap: wrap;
    }
    
    .meta-row .material-icons {
        font-size: 16px;
        vertical-align: middle;
    }
    
    .meta-row .category-badge {
        padding: 3px 8px;
        font-size: 0.7rem;
        white-space: nowrap;
        flex-shrink: 0;
        color: #546e7a;
        border-radius: 12px;
        margin-left: 4px;
    }
    
    .meta-divider {
        margin: 0 4px;
        color: #90a4ae;
    }
    
    /* Vote counts on same line */
    .meta-row.vote-counts {
        display: flex;
        gap: 12px;
    }
    
    .vote-count-item {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        font-size: 0.8125rem;
        cursor: pointer;
    }
    
    .vote-count-item .material-icons {
        font-size: 16px;
    }
    
    /* Vote buttons section */
    .right-content {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        width: 100%;
        margin-top: 8px;
        padding-top: 8px;
        border-top: 1px solid #e0e0e0;
    }
    
    .vote-section {
        display: flex;
        gap: 6px;
    }
    
    .vote-buttons {
        gap: 6px;
        display: flex;
        flex-direction: row;
    }
    
    .vote-btn {
        width: 36px;
        height: 36px;
        min-width: 36px;
        min-height: 36px;
        padding: 0;
        flex-shrink: 0;
    }
    
    .vote-btn .material-icons {
        font-size: 18px;
    }
    
    /* Description more compact */
    .agenda-description {
        font-size: 0.8125rem;
        margin-top: 6px;
        line-height: 1.4;
        color: #546e7a;
        font-style: italic;
        width: 100%;
        /* Truncate to 2 lines with ellipsis */
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        word-break: break-word;
    }
    
    /* Added by in smaller text */
    .added-by {
        font-size: 0.6875rem;
        margin-top: 6px;
        color: #78909c;
        text-align: right;
        width: 100%;
    }
    
    .agenda-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    /* Date filter tags */
    .date-filter-tag {
        padding: 4px 10px;
        font-size: 0.75rem;
    }
    
    /* Add Activity button */
    .mdc-button {
        padding: 8px 16px;
        font-size: 0.875rem;
    }
    
    #map-container {
        height: 250px;
    }
    
    /* Mobile-optimized modal */
    .mdc-dialog__surface {
        min-width: auto !important;
        width: 95vw !important;
        max-width: 95vw !important;
        max-height: 90vh !important;
        margin: 0 auto !important;
    }
    
    .mdc-dialog__header {
        padding: 16px !important;
        position: sticky;
        top: 0;
        background: white;
        z-index: 10;
    }
    
    .mdc-dialog__close {
        top: 12px !important;
        right: 12px !important;
        padding: 6px !important;
    }
    
    .mdc-dialog__close .material-icons {
        font-size: 20px !important;
    }
    
    .mdc-dialog__title {
        font-size: 1.125rem !important;
    }
    
    .mdc-dialog__content {
        padding: 12px 16px !important;
    }
    
    .mdc-dialog__actions {
        padding: 12px 16px 16px !important;
        position: sticky;
        bottom: 0;
        background: white;
        z-index: 10;
        border-top: 1px solid rgba(0, 0, 0, 0.12);
    }
    
    /* Stack form fields vertically */
    .modal-form-row {
        flex-direction: column !important;
        gap: 12px !important;
    }
    
    .modal-form-field {
        margin-bottom: 12px !important;
    }
    
    /* Simplified form fields on mobile */
    .simple-label {
        font-size: 0.8125rem !important;
    }
    
    .simple-input,
    .simple-textarea {
        padding: 10px 12px !important;
        font-size: 0.9375rem !important;
        -webkit-appearance: none;
        appearance: none;
        border-radius: 4px;
    }
    
    .simple-textarea {
        min-height: 70px !important;
    }
    
    /* Smaller input fields */
    .mdc-text-field {
        font-size: 0.875rem !important;
    }
    
    .mdc-text-field__input {
        font-size: 0.875rem !important;
        padding: 12px !important;
    }
    
    .mdc-floating-label {
        font-size: 0.875rem !important;
    }
    
    /* Category buttons more compact */
    .category-grid {
        gap: 8px !important;
    }
    
    .category-btn {
        padding: 8px 12px !important;
        font-size: 0.8125rem !important;
    }
    
    .category-btn .material-icons {
        font-size: 18px !important;
    }
    
    /* Modal buttons */
    .mdc-dialog__actions .mdc-button {
        padding: 8px 12px !important;
        font-size: 0.875rem !important;
    }
    
    /* ===== STAYS MOBILE OPTIMIZATIONS ===== */
    .stay-item {
        padding: 12px;
    }
    
    .stay-thumbnail {
        width: calc(100% - 80px); /* Leave space for collapse button and avatar */
        height: 120px;
        float: none;
        margin-right: 0;
        margin-bottom: 12px;
    }
    
    .stay-type-badge {
        margin-left: 0;
        margin-top: 4px;
    }
    
    .stay-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* Success/Error Messages */
.message {
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
    text-align: center;
    font-weight: 500;
}

.message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Loading State */
.loading {
    text-align: center;
    padding: 2rem;
    color: #7f8c8d;
}

.loading::after {
    content: "...";
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0%, 20% { color: rgba(0,0,0,0); text-shadow: .25em 0 0 rgba(0,0,0,0), .5em 0 0 rgba(0,0,0,0); }
    40% { color: #7f8c8d; text-shadow: .25em 0 0 rgba(0,0,0,0), .5em 0 0 rgba(0,0,0,0); }
    60% { text-shadow: .25em 0 0 #7f8c8d, .5em 0 0 rgba(0,0,0,0); }
    80%, 100% { text-shadow: .25em 0 0 #7f8c8d, .5em 0 0 #7f8c8d; }
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #7f8c8d;
}

.empty-state h3 {
    margin-bottom: 1rem;
    color: #95a5a6;
}

.empty-state p {
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Modal Styles */
.mdc-dialog {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
}

.mdc-dialog--open {
    display: flex !important;
}

.mdc-dialog__container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
}

.mdc-dialog__surface {
    min-width: 500px;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    background: white;
    border-radius: 4px;
    box-shadow: var(--mdc-elevation-z8);
    position: relative;
}

.mdc-dialog__scrim {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.32);
    z-index: -1;
}

.mdc-dialog__header {
    padding: 24px 24px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 10;
}

.mdc-dialog__close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(0, 0, 0, 0.54);
    transition: all 0.2s ease;
    z-index: 1;
}

.mdc-dialog__close:hover {
    background-color: rgba(0, 0, 0, 0.04);
    color: rgba(0, 0, 0, 0.87);
}

.mdc-dialog__close .material-icons {
    font-size: 24px;
}

.mdc-dialog__title {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--mdc-theme-text-primary-on-background);
    margin: 0;
}

.mdc-dialog__content {
    padding: 20px 24px;
    overflow-y: auto;
    max-height: calc(80vh - 160px);
}

.mdc-dialog__actions {
    padding: 8px 24px 24px;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    position: sticky;
    bottom: 0;
    background: #fff;
    border-top: 1px solid rgba(0, 0, 0, 0.12);
    z-index: 10;
}

.modal-form-field {
    width: 100%;
    margin-bottom: 16px;
}

/* Activity Details Modal */
.details-content {
    padding: 0;
}

.details-modal-section {
    margin-bottom: 20px;
}

.details-modal-section h3 {
    color: var(--mdc-theme-primary);
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.details-modal-section h3 .material-icons {
    font-size: 20px;
}

.details-modal-section p {
    margin: 8px 0;
    line-height: 1.6;
    color: var(--mdc-theme-text-primary-on-background);
}

.details-modal-section p strong {
    font-weight: 500;
    color: var(--mdc-theme-text-secondary-on-background);
    margin-right: 4px;
}

/* Stay details image styling - smaller, compact version */
.stay-details-image-compact {
    width: 100%;
    max-width: 400px;
    margin: 0 auto 20px auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--mdc-elevation-z2);
}

.stay-details-image-compact img {
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: cover;
    display: block;
}

/* Old large image style - kept for backward compatibility */
.stay-details-image {
    width: 100%;
    max-width: 100%;
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--mdc-elevation-z2);
}

.stay-details-image img {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: cover;
    display: block;
}

/* Activity details image section with overlay button */
.activity-details-image-section {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 0 auto 20px auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--mdc-elevation-z2);
}

.activity-details-image {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: cover;
    display: block;
}

.change-image-btn {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 20px;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    color: var(--mdc-theme-primary);
    cursor: pointer;
    box-shadow: var(--mdc-elevation-z2);
    transition: all 0.2s ease;
    font-family: inherit;
}

.change-image-btn:hover {
    background: rgba(255, 255, 255, 1);
    box-shadow: var(--mdc-elevation-z4);
    transform: translateY(-2px);
}

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

.change-image-btn .material-icons {
    font-size: 18px;
}

/* Photo Selector Modal */
.photo-selector-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    padding: 8px;
}

.photo-selector-item {
    position: relative;
    aspect-ratio: 4/3;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.2s ease;
    box-shadow: var(--mdc-elevation-z2);
}

.photo-selector-item:hover {
    border-color: var(--mdc-theme-primary);
    box-shadow: var(--mdc-elevation-z4);
    transform: scale(1.02);
}

.photo-selector-item.selected {
    border-color: var(--mdc-theme-primary);
    box-shadow: 0 0 0 1px var(--mdc-theme-primary);
}

.photo-selector-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.photo-selector-item .selected-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--mdc-theme-primary);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--mdc-elevation-z2);
}

.photo-selector-item .selected-badge .material-icons {
    color: white;
    font-size: 20px;
}

/* Image selector modal - wider for grid */
#image-selector-modal .mdc-dialog__surface {
    max-width: 800px;
    width: 90vw;
}

/* Booking link button - prominent at top */
.booking-link-section {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.booking-link-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--mdc-theme-primary);
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    border-radius: 4px;
    box-shadow: var(--mdc-elevation-z2);
    transition: all 0.2s ease;
}

.booking-link-button:hover {
    background: var(--mdc-theme-primary-variant);
    box-shadow: var(--mdc-elevation-z4);
    transform: translateY(-1px);
}

.booking-link-button .material-icons {
    font-size: 20px;
}

/* Details link styling - old style kept for compatibility */
.details-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--mdc-theme-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
    margin-top: 8px;
}

.details-link:hover {
    color: var(--mdc-theme-primary-variant);
    text-decoration: underline;
}

.details-link .material-icons {
    font-size: 18px;
}

/* Voter avatars in details modal */
.voter-avatars-details {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 12px;
}

.voter-card {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #f5f5f5;
    border-radius: 20px;
    border: 2px solid transparent;
    transition: all 0.2s ease;
}

.voter-card.upvote {
    background: #e8f5e9;
    border-color: #4caf50;
}

.voter-card.downvote {
    background: #ffebee;
    border-color: #f44336;
}

.voter-profile-pic {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid white;
}

.voter-profile-placeholder {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--mdc-theme-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    font-size: 0.875rem;
    border: 2px solid white;
}

.voter-card.upvote .voter-profile-placeholder {
    background: #4caf50;
}

.voter-card.downvote .voter-profile-placeholder {
    background: #f44336;
}

.voter-name {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--mdc-theme-text-primary-on-background);
}

/* Vote details styling - old text list style */
.vote-details {
    margin-top: 12px;
}

.vote-details p {
    margin-bottom: 8px;
}

.vote-details ul {
    list-style: none;
    padding-left: 0;
    margin: 8px 0;
}

.vote-details li {
    padding: 4px 0;
    color: var(--mdc-theme-text-primary-on-background);
    display: flex;
    align-items: center;
    gap: 8px;
}

.vote-details li::before {
    content: '•';
    color: var(--mdc-theme-primary);
    font-weight: bold;
    font-size: 1.2rem;
}

/* Details vote section */
.details-vote-section {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

.details-vote-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9375rem;
    font-weight: 500;
}

.details-vote-btn:hover {
    background: #f5f5f5;
}

.details-vote-btn.upvote-btn.active {
    background: #e8f5e9;
    border-color: #4caf50;
    color: #2e7d32;
}

.details-vote-btn.downvote-btn.active {
    background: #ffebee;
    border-color: #f44336;
    color: #c62828;
}

.details-vote-btn .material-icons {
    font-size: 24px;
}

.vote-label {
    font-weight: 500;
}

/* Details edit button */
.details-edit-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    background: var(--mdc-theme-primary);
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1rem;
    font-weight: 500;
    box-shadow: var(--mdc-elevation-z2);
}

.details-edit-btn:hover {
    background: var(--mdc-theme-primary-variant);
    box-shadow: var(--mdc-elevation-z4);
    transform: translateY(-1px);
}

.details-edit-btn .material-icons {
    font-size: 20px;
}

.details-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 8px;
    padding: 8px 0;
}

.details-row .material-icons {
    font-size: 20px;
    color: var(--mdc-theme-primary);
    flex-shrink: 0;
}

.details-label {
    font-weight: 500;
    color: rgba(0, 0, 0, 0.6);
    min-width: 80px;
}

.details-value {
    flex: 1;
    color: rgba(0, 0, 0, 0.87);
}

.voter-list {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

/* Profile image voter display */
.voter-item-with-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.voter-avatar-container {
    position: relative;
    width: 60px;
    height: 60px;
}

.voter-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #e0e0e0;
}

.voter-avatar-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 500;
    border: 3px solid #e0e0e0;
}

.vote-badge {
    position: absolute;
    bottom: -4px;
    right: -4px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.vote-badge .material-icons {
    font-size: 16px;
    color: white;
}

.upvote-badge {
    background-color: #4caf50;
}

.downvote-badge {
    background-color: #f44336;
}

.voter-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(0, 0, 0, 0.87);
    text-align: center;
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Old voter item styles (kept for backwards compatibility) */
.voter-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    margin-bottom: 4px;
    background-color: #f5f5f5;
    border-radius: 4px;
    font-size: 0.875rem;
}

.voter-item .material-icons {
    font-size: 18px;
}

.voter-item.upvote {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.voter-item.downvote {
    background-color: #ffebee;
    color: #c62828;
}

.voter-item.upvote .material-icons {
    color: #2e7d32;
}

.voter-item.downvote .material-icons {
    color: #c62828;
}

.no-voters {
    color: rgba(0, 0, 0, 0.38);
    font-style: italic;
    font-size: 0.875rem;
    padding: 8px 0;
}

.details-description {
    white-space: pre-wrap;
    line-height: 1.6;
}

.details-description.ai-suggestion {
    background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
    border-left: 4px solid #1976d2;
    color: rgba(0, 0, 0, 0.75);
    white-space: pre-line;
}

.details-description.ai-suggestion.loading {
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    border-left: 4px solid #9e9e9e;
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(0, 0, 0, 0.6);
}

.details-description.ai-suggestion.loading::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-top: 2px solid #1976d2;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Simplified form styles */
.simple-form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: relative; /* Added for absolute positioned children like autocomplete dropdown */
}

.simple-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--mdc-theme-primary);
    margin: 0;
}

.simple-input,
.simple-textarea {
    width: 100%;
    padding: 12px 16px;
    font-size: 1rem;
    font-family: inherit;
    border: 1px solid rgba(0, 0, 0, 0.23);
    border-radius: 4px;
    background: white;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.simple-input:focus,
.simple-textarea:focus {
    outline: none;
    border-color: var(--mdc-theme-primary);
    box-shadow: 0 0 0 1px var(--mdc-theme-primary);
}

.simple-input[readonly] {
    background-color: rgba(0, 0, 0, 0.04);
    color: rgba(0, 0, 0, 0.6);
    cursor: not-allowed;
}

.simple-input::placeholder,
.simple-textarea::placeholder {
    color: rgba(0, 0, 0, 0.4);
}

.simple-textarea {
    resize: vertical;
    min-height: 60px;
    line-height: 1.5;
}

.modal-form-row {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.modal-form-row .modal-form-field {
    flex: 1;
    margin-bottom: 0;
}

/* Location Validation Feedback */
.location-field {
    position: relative;
}

.location-field {
    position: relative;
    z-index: 10;
}

.location-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff !important;
    background-color: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 4px;
    box-shadow: var(--mdc-elevation-z8);
    max-height: 300px;
    overflow-y: auto;
    z-index: 10000;
    display: none;
    margin-top: 4px;
}

/* Google Places Autocomplete Suggestions */
.places-autocomplete-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 4px;
    box-shadow: var(--mdc-elevation-z8);
    max-height: 400px;
    overflow-y: auto;
    z-index: 10001;
    display: none;
    margin-top: 4px;
}

.places-autocomplete-suggestions.active {
    display: block;
}

.place-suggestion-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: background-color 150ms var(--mdc-animation-standard);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    background-color: #ffffff;
}

.place-suggestion-item:last-child {
    border-bottom: none;
}

.place-suggestion-item:hover {
    background-color: rgba(25, 118, 210, 0.08);
}

.place-suggestion-item .material-icons {
    color: var(--mdc-theme-primary);
    font-size: 20px;
    margin-top: 2px;
    flex-shrink: 0;
}

.place-suggestion-text {
    flex: 1;
    min-width: 0;
}

.place-suggestion-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--mdc-theme-text-primary-on-background);
    margin-bottom: 2px;
}

.place-suggestion-address {
    font-size: 0.75rem;
    color: var(--mdc-theme-text-secondary-on-background);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.place-suggestion-loading {
    padding: 16px;
    text-align: center;
    color: var(--mdc-theme-text-secondary-on-background);
    font-size: 0.875rem;
}

/* Selected Place Info */
.selected-place-info {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background-color: rgba(76, 175, 80, 0.04);
    border: 1px solid rgba(76, 175, 80, 0.2);
    border-radius: 4px;
    margin-top: 6px;
    transition: all 200ms ease;
}

.selected-place-info .material-icons:first-child {
    color: #4caf50;
    font-size: 16px;
    opacity: 0.8;
}

.selected-place-text {
    flex: 1;
    font-size: 0.8125rem;
    color: var(--mdc-theme-text-secondary-on-background);
    font-weight: 400;
}

.clear-place-btn {
    background: none;
    border: none;
    padding: 2px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 150ms var(--mdc-animation-standard);
    opacity: 0.5;
}

.clear-place-btn:hover {
    background-color: rgba(0, 0, 0, 0.08);
    opacity: 1;
}

.clear-place-btn .material-icons {
    font-size: 16px;
    color: var(--mdc-theme-text-secondary-on-background);
}

/* Enable Google Search Button */
.enable-google-search-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: linear-gradient(135deg, #4285f4 0%, #34a853 100%);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 200ms ease;
    margin-top: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.enable-google-search-btn:hover {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transform: translateY(-1px);
}

.enable-google-search-btn .material-icons {
    font-size: 18px;
}

.suggestion-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: background-color 150ms var(--mdc-animation-standard);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    background-color: #ffffff;
}

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

.suggestion-item:hover {
    background-color: rgba(0, 0, 0, 0.04);
}

.suggestion-item .material-icons {
    color: var(--mdc-theme-primary);
    font-size: 20px;
    margin-top: 2px;
}

.suggestion-text {
    flex: 1;
    min-width: 0;
}

.suggestion-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--mdc-theme-text-primary-on-background);
    margin-bottom: 2px;
}

.suggestion-address {
    font-size: 0.75rem;
    color: var(--mdc-theme-text-secondary-on-background);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.location-validation {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    display: none;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    pointer-events: none;
}

.location-validation.validating {
    display: flex;
    color: var(--mdc-theme-text-secondary-on-background);
}

.location-validation.valid {
    display: flex;
    color: #4caf50;
}

.location-validation.invalid {
    display: flex;
    color: #f44336;
}

.location-validation .validation-icon {
    font-size: 20px;
    animation: none;
}

.location-validation.validating .validation-icon {
    animation: spin 1s linear infinite;
}

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

.validation-text {
    font-weight: 500;
    white-space: nowrap;
}

/* Category Tag Selector */
.category-selector {
    width: 100%;
    margin-bottom: 16px;
}

.category-label {
    display: block;
    font-size: 0.75rem;
    color: var(--mdc-theme-text-secondary-on-background);
    margin-bottom: 8px;
    font-weight: 500;
    letter-spacing: 0.03333em;
}

.category-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.category-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background-color: rgba(0, 0, 0, 0.04);
    border: 2px solid transparent;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--mdc-theme-text-primary-on-background);
    cursor: pointer;
    transition: all 150ms var(--mdc-animation-standard);
    outline: none;
}

.category-tag:hover {
    background-color: rgba(98, 0, 238, 0.08);
    border-color: rgba(98, 0, 238, 0.3);
}

.category-tag:focus {
    box-shadow: 0 0 0 3px rgba(98, 0, 238, 0.12);
}

.category-tag.selected {
    background-color: var(--mdc-theme-primary);
    color: white;
    border-color: var(--mdc-theme-primary);
}

.category-tag.selected:hover {
    background-color: #7c4dff;
    border-color: #7c4dff;
}

.tag-icon {
    font-size: 1.125rem;
    line-height: 1;
}

.tag-text {
    line-height: 1;
}


/* Modal Select Dropdown */
.mdc-dialog .mdc-select__menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 4px;
    box-shadow: var(--mdc-elevation-z4);
    z-index: 1001;
    display: none;
}

.mdc-dialog .mdc-select__menu .mdc-list-item {
    padding: 12px 16px;
    cursor: pointer;
}

.mdc-dialog .mdc-select__menu .mdc-list-item:hover {
    background: rgba(0, 0, 0, 0.04);
}

/* Agenda Card */
.agenda-card {
    width: 100%;
}

/* Header improvements and Add Activity Button */
.agenda-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 0;
    padding: 20px 20px 16px 20px;
    position: relative;
    z-index: 10;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.card-header-secondary {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 16px;
    padding: 16px 20px 0 20px;
}

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

.expand-toggle-btn {
    flex-shrink: 0;
    min-height: 36px;
    padding: 0 12px;
    font-size: 0.875rem;
    display: none; /* Hidden on desktop, shown on mobile */
}

.expand-toggle-btn .mdc-button__icon {
    margin-right: 6px;
    font-size: 18px;
}

.add-stay-btn,
.add-activity-btn,
.add-transportation-btn {
    flex-shrink: 0;
    background-color: var(--mdc-theme-primary) !important;
    color: var(--mdc-theme-on-primary) !important;
    min-height: 36px;
    padding: 0 16px;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.0892857143em;
    text-transform: uppercase;
    border-radius: 4px;
    box-shadow: var(--mdc-elevation-z2);
    border: none;
    cursor: pointer;
    transition: all 150ms var(--mdc-animation-standard);
    display: flex !important;
    align-items: center;
    white-space: nowrap;
    position: relative;
    z-index: 100;
}

.add-stay-btn:hover,
.add-activity-btn:hover,
.add-transportation-btn:hover {
    box-shadow: var(--mdc-elevation-z4);
    background-color: var(--mdc-theme-primary-variant) !important;
}

.add-stay-btn .mdc-button__icon,
.add-activity-btn .mdc-button__icon,
.add-transportation-btn .mdc-button__icon {
    margin-right: 8px;
    font-size: 18px;
    color: white;
}

.add-stay-btn .mdc-button__label,
.add-activity-btn .mdc-button__label,
.add-transportation-btn .mdc-button__label {
    font-weight: 500;
}

/* Mobile dropdown button - hidden by default on desktop */
.add-dropdown-btn {
    display: none;
    flex-shrink: 0;
    background-color: var(--mdc-theme-primary) !important;
    color: var(--mdc-theme-on-primary) !important;
    min-height: 36px;
    padding: 0 16px;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.0892857143em;
    text-transform: uppercase;
    border-radius: 4px;
    box-shadow: var(--mdc-elevation-z2);
    border: none;
    cursor: pointer;
    transition: all 150ms var(--mdc-animation-standard);
    align-items: center;
    white-space: nowrap;
    position: relative;
    z-index: 100;
}

.add-dropdown-btn:hover {
    box-shadow: var(--mdc-elevation-z4);
    background-color: var(--mdc-theme-primary-variant) !important;
}

.add-dropdown-btn .mdc-button__icon {
    margin-right: 8px;
    font-size: 18px;
    color: white;
}

.add-dropdown-btn .mdc-button__label {
    font-weight: 500;
}

/* Dropdown menu for mobile */
.add-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    box-shadow: var(--mdc-elevation-z8);
    border-radius: 4px;
    margin-top: 4px;
    overflow: hidden;
    z-index: 1000;
}

.add-dropdown-menu.show {
    display: block;
}

.add-dropdown-menu button {
    width: 100%;
    padding: 12px 16px;
    border: none;
    background: white;
    text-align: left;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.0892857143em;
    text-transform: uppercase;
    color: var(--mdc-theme-text-primary-on-background);
    cursor: pointer;
    transition: background 150ms ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

.add-dropdown-menu button:hover {
    background: rgba(0, 0, 0, 0.04);
}

.add-dropdown-menu button .material-icons {
    font-size: 20px;
    color: var(--mdc-theme-primary);
}

.add-dropdown-menu button:not(:last-child) {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

/* Ensure proper Material button styling */
.mdc-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-width: 64px;
    padding: 0 16px;
    border: none;
    outline: none;
    line-height: inherit;
    user-select: none;
    appearance: none;
    overflow: visible;
    vertical-align: middle;
    border-radius: 4px;
    font-family: Roboto, sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.0892857143em;
    text-decoration: none;
    text-transform: uppercase;
    will-change: transform, opacity;
    transition: box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);
}

.mdc-button--raised {
    box-shadow: var(--mdc-elevation-z2);
}

.mdc-button--raised:hover,
.mdc-button--raised:focus {
    box-shadow: var(--mdc-elevation-z4);
}

/* ===== TIMELINE STYLES ===== */
.timeline-card {
    margin-bottom: 24px;
}

.timeline-card .card-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.timeline-card .card-header h2 {
    flex: 1 1 auto;
    min-width: 200px;
}

.timeline-card .header-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    position: relative; /* For dropdown menu positioning */
}

.timeline-container {
    padding: 20px 0;
}

.timeline-wrapper {
    position: relative;
    padding-left: 0;
}

/* Timeline date groups */
.timeline-date-group {
    position: relative;
    margin-bottom: 32px;
}

.timeline-date-group:last-child {
    margin-bottom: 0;
}

.timeline-date-header {
    position: relative;
    margin-bottom: 16px;
    padding-left: 0;
    display: flex;
    align-items: center;
    gap: 16px;
}

.date-indicator {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

.date-indicator::after {
    content: '';
    position: absolute;
    left: 100%;
    top: 50%;
    right: calc(-100vw + 100%);
    height: 1px;
    background: linear-gradient(to right, var(--mdc-theme-primary), transparent);
    opacity: 0.3;
    margin-left: 8px;
    pointer-events: none;
}

.date-dot {
    display: none;
}

.date-label {
    font-size: 1rem;
    font-weight: 500;
    color: var(--mdc-theme-primary);
    text-transform: capitalize;
    padding-right: 12px;
}

.date-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 2;
    flex-shrink: 0;
    margin-left: auto;
}

.view-day-summary-btn,
.add-activity-date-btn {
    background: var(--mdc-theme-background);
    border: 1px solid var(--mdc-theme-primary);
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.2s ease;
    padding: 0;
    color: var(--mdc-theme-primary);
}

.view-day-summary-btn:hover,
.add-activity-date-btn:hover {
    opacity: 1;
    background: rgba(25, 118, 210, 0.08);
    transform: scale(1.05);
}

.view-day-summary-btn .material-icons,
.add-activity-date-btn .material-icons {
    font-size: 20px;
}

/* TBD group styling */
.timeline-date-group.tbd-group .date-dot {
    background: #999;
    box-shadow: 0 0 0 2px #999;
}

.timeline-date-group.tbd-group .date-label {
    color: #999;
}

/* Timeline items container */
.timeline-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-left: 70px;
    position: relative;
}

/* No activities message */
.no-activities-message {
    padding: 8px 16px;
    text-align: center;
    color: var(--mdc-theme-text-secondary-on-background);
    font-size: 0.875rem;
    font-style: italic;
    opacity: 0.6;
}

/* Individual timeline item */
.timeline-item {
    position: relative;
    display: flex;
    align-items: stretch;
    gap: 0;
    padding: 0;
    background: #fff;
    border: 1.5px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    cursor: pointer;
    transition: all 200ms var(--mdc-animation-standard);
    overflow: visible;
}

.timeline-item-thumbnail {
    width: 80px;
    min-width: 80px;
    height: auto;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    flex-shrink: 0;
}

.timeline-item-content {
    padding: 12px 16px;
    flex: 1;
    min-width: 0;
    display: flex;
    gap: 5px;
    background: linear-gradient(to right, rgba(25, 118, 210, 0.05), transparent);
    transition: background 0.2s ease;
}

.timeline-item-details {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.timeline-item-time {
    position: absolute;
    left: -62px;
    top: 50%;
    transform: translateY(-50%) rotate(-90deg);
    transform-origin: center;
    font-size: 0.65rem;
    color: var(--mdc-theme-text-secondary-on-background);
    opacity: 0.5;
    white-space: nowrap;
    font-weight: 400;
    letter-spacing: 0.5px;
    width: 60px;
    text-align: center;
}

.timeline-item-time-placeholder {
    display: none;
}

.timeline-item:hover {
    box-shadow: var(--mdc-elevation-z2);
    border-color: var(--mdc-theme-primary);
    transform: translateX(2px);
}

.timeline-item:hover .timeline-item-content {
    background: linear-gradient(to right, rgba(25, 118, 210, 0.1), transparent);
}

/* Distance indicator between timeline items */
.timeline-distance-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 2px 12px;
    margin: 2px 0;
    font-size: 0.65rem;
    color: var(--mdc-theme-text-secondary-on-background);
    opacity: 0.6;
    font-weight: 400;
    letter-spacing: 0.3px;
}

.timeline-distance-indicator .material-icons {
    font-size: 14px;
    opacity: 0.5;
}

/* Booking status tag for stays - third line */
.booking-status-tag {
    display: inline-block;
    align-self: flex-start;
    margin-top: 6px;
    padding: 2px 6px;
    background: #f44336;
    color: white;
    font-size: 0.5625rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    border-radius: 2px;
}

.timeline-item-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Single-line compact layout */
.timeline-item-single-line {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.9375rem;
}

/* Wrapper for stay items to position voters at bottom right */
.timeline-item-details {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    position: relative;
}

.stay-item .timeline-item-voters-inline {
    position: absolute;
    bottom: 0;
    right: 0;
}

/* Transportation item specific styles */
.transportation-item {
    border-left: 4px solid #1976d2; /* Blue accent for transportation */
}

.timeline-item-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    font-weight: 500;
    color: var(--mdc-theme-text-primary-on-background);
    justify-content: space-between;
    width: 100%;
}

.title-left {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow: hidden;
    flex: 1;
}

.item-emoji {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.item-name {
    font-weight: 500;
    color: var(--mdc-theme-text-primary-on-background);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.needs-vote-indicator {
    font-size: 1rem;
    flex-shrink: 0;
    margin-left: auto;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.item-location {
    color: var(--mdc-theme-text-secondary-on-background);
    font-size: 0.875rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 1;
}

/* Mobile-only time display (hidden on desktop) */
.item-time-mobile {
    display: none;
}

.timeline-item-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: var(--mdc-theme-text-secondary-on-background);
    flex-wrap: wrap;
}

.meta-separator {
    color: rgba(0, 0, 0, 0.3);
    margin: 0 2px;
}

.item-detail {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.875rem;
    color: var(--mdc-theme-text-secondary-on-background);
    white-space: nowrap;
}

/* Timeline voter avatars */
.timeline-item-voters {
    margin-top: 8px;
}

.timeline-item-voters-inline {
    display: flex;
    align-items: center;
    margin-left: auto;
    flex-shrink: 0;
}

.voter-avatars-compact {
    display: flex;
    align-items: center;
    gap: 4px;
}

.voter-avatar-small {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 3px solid #fff;
    object-fit: cover;
    margin-left: -8px;
}

.voter-avatar-small:first-child {
    margin-left: 0;
}

.voter-avatar-small.upvote {
    border-color: #4caf50;
}

.voter-avatar-small.downvote {
    border-color: #f44336;
}

.voter-avatar-small-placeholder {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 3px solid #fff;
    background: var(--mdc-theme-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 500;
    margin-left: -8px;
}

.voter-avatar-small-placeholder:first-child {
    margin-left: 0;
}

.voter-avatar-small-placeholder.upvote {
    border-color: #4caf50;
    background: #4caf50;
}

.voter-avatar-small-placeholder.downvote {
    border-color: #f44336;
    background: #f44336;
}

.more-voters {
    font-size: 0.75rem;
    color: var(--mdc-theme-text-secondary-on-background);
    padding-left: 4px;
}

.no-votes-text {
    font-size: 0.75rem;
    color: var(--mdc-theme-text-hint-on-background);
    font-style: italic;
}

/* Responsive timeline */
@media (max-width: 768px) {
    .timeline-card .card-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .timeline-card .header-actions {
        width: 100%;
        position: relative;
    }
    
    /* Hide individual buttons on mobile */
    .timeline-card .header-actions .add-stay-btn,
    .timeline-card .header-actions .add-activity-btn,
    .timeline-card .header-actions .add-transportation-btn {
        display: none !important;
    }
    
    /* Show the dropdown button on mobile */
    .timeline-card .header-actions .add-dropdown-btn {
        display: flex !important;
        width: 100%;
        justify-content: center;
    }
    
    /* Remove background gradient on mobile - keep clean white background */
    .timeline-item-content {
        padding: 12px;
        gap: 8px;
        background: transparent;
    }
    
    .timeline-item:hover .timeline-item-content {
        background: rgba(0, 0, 0, 0.02);
    }
    
    /* Remove timeline line and center on mobile */
    .timeline-date-header {
        padding-left: 0;
        text-align: center;
    }
    
    .date-indicator {
        justify-content: center;
    }
    
    .date-dot {
        position: static;
    }
    
    .timeline-items {
        padding-left: 0;
        margin-left: 0;
        border-left: none;
        align-items: center;
    }
    
    .timeline-item {
        max-width: 500px;
        width: 100%;
    }
    
    .timeline-item-thumbnail {
        width: 60px;
        min-width: 60px;
    }
    
    /* Distance indicator on mobile */
    .timeline-distance-indicator {
        padding: 1px 2px;
        font-size: 0.6rem;
        gap: 0px;
        margin: 1px 0;
    }
    
    .timeline-distance-indicator .material-icons {
        font-size: 12px;
    }
    
    .timeline-item-single-line {
        font-size: 0.875rem;
        gap: 4px;
    }
    
    .timeline-item-title {
        font-size: 0.9375rem;
    }
    
    .timeline-item-meta {
        font-size: 0.8125rem;
    }
    
    /* Hide vertical time on mobile */
    .timeline-item-time {
        display: none;
    }
    
    /* Show inline time on mobile */
    .item-time-mobile {
        display: inline;
        margin-left: 6px;
        font-size: 0.75rem;
        color: var(--mdc-theme-text-secondary-on-background);
        opacity: 0.7;
        font-weight: 400;
    }

    /* Activity details image - smaller on mobile */
    .activity-details-image-section {
        max-width: 280px;
        margin: 0 auto 16px auto;
    }

    .activity-details-image {
        max-height: 180px;
    }

    .change-image-btn {
        bottom: 8px;
        right: 8px;
        padding: 6px 12px;
        font-size: 13px;
        border-radius: 16px;
    }

    .change-image-btn .material-icons {
        font-size: 16px;
    }

    /* Photo selector modal - smaller images on mobile */
    .photo-selector-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 12px;
        padding: 8px;
    }

    .photo-selector-item {
        border-width: 2px;
    }

    .photo-selector-item .selected-badge {
        width: 28px;
        height: 28px;
        top: 6px;
        right: 6px;
    }

    .photo-selector-item .selected-badge .material-icons {
        font-size: 18px;
    }

    #image-selector-modal .mdc-dialog__surface {
        max-width: 95vw;
        width: 95vw;
    }
}

@media (max-width: 480px) {
    /* Remove timeline line and center on small mobile */
    .timeline-date-header {
        padding-left: 0;
        text-align: center;
    }
    
    .date-indicator {
        justify-content: center;
    }
    
    /* Hide the horizontal line after date on mobile */
    .date-indicator::after {
        display: none;
    }
    
    .date-dot {
        position: static;
        width: 12px;
        height: 12px;
        border-width: 2px;
    }
    
    .date-label {
        font-size: 0.9375rem;
    }
    
    .timeline-items {
        padding-left: 0;
        margin-left: 0;
        border-left: none;
        gap: 6px;
        align-items: center;
    }
    
    .timeline-item {
        max-width: 100%;
        width: 100%;
        padding: 8px 10px;
    }
    
    /* Hide vertical time on mobile */
    .timeline-item-time {
        display: none;
    }
    
    /* Show inline time on mobile */
    .item-time-mobile {
        display: inline;
        margin-left: 6px;
        font-size: 0.7rem;
        color: var(--mdc-theme-text-secondary-on-background);
        opacity: 0.7;
        font-weight: 400;
    }
    
    .timeline-item-single-line {
        font-size: 0.8125rem;
        gap: 4px;
    }
    
    .timeline-item-title {
        font-size: 0.875rem;
    }
    
    .item-location {
        font-size: 0.75rem;
    }
    
    .timeline-item-meta {
        font-size: 0.75rem;
    }
    
    .item-detail {
        font-size: 0.75rem;
    }

    /* Activity details image - even smaller on very small screens */
    .activity-details-image-section {
        max-width: 240px;
        margin: 0 auto 12px auto;
    }

    .activity-details-image {
        max-height: 150px;
    }

    .change-image-btn {
        bottom: 6px;
        right: 6px;
        padding: 5px 10px;
        font-size: 12px;
        border-radius: 14px;
    }

    .change-image-btn .material-icons {
        font-size: 14px;
    }

    /* Photo selector modal - even smaller on very small screens */
    .photo-selector-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 10px;
        padding: 6px;
    }

    .photo-selector-item {
        border-width: 2px;
        border-radius: 6px;
    }

    .photo-selector-item .selected-badge {
        width: 24px;
        height: 24px;
        top: 4px;
        right: 4px;
    }

    .photo-selector-item .selected-badge .material-icons {
        font-size: 16px;
    }
}

/* Image Options Modal */
.image-options-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 8px;
}

.image-option-item {
    display: flex;
    align-items: center;
    padding: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 200ms ease;
    background: white;
}

.image-option-item:hover {
    border-color: #3498db;
    background: #f8f9fa;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.1);
}

.image-option-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: #3498db;
    color: white;
    border-radius: 50%;
    margin-right: 16px;
    flex-shrink: 0;
}

.image-option-content {
    flex: 1;
}

.image-option-title {
    font-weight: 500;
    font-size: 16px;
    color: #2c3e50;
    margin-bottom: 4px;
}

.image-option-description {
    font-size: 14px;
    color: #7f8c8d;
}

/* Custom Image Preview */
.custom-image-preview {
    margin-top: 16px;
    text-align: center;
}

.custom-image-preview img {
    max-width: 100%;
    max-height: 200px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* No Image Placeholder */
.no-image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: #f8f9fa;
    border: 2px dashed #bdc3c7;
    border-radius: 12px;
    color: #7f8c8d;
    margin-bottom: 16px;
}

.no-image-placeholder .material-icons {
    font-size: 48px;
    margin-bottom: 8px;
    opacity: 0.7;
}

.no-image-placeholder span:last-child {
    font-size: 16px;
    font-weight: 500;
}

/* Responsive adjustments for image options */
@media (max-width: 600px) {
    .image-option-icon {
        width: 40px;
        height: 40px;
        margin-right: 12px;
    }
    
    .image-option-title {
        font-size: 15px;
    }
    
    .image-option-description {
        font-size: 13px;
    }
}

/* Custom Image and No Image Options in Photo Selector */
.custom-image-option, .no-image-option {
    background: #fafafa;
    border: 2px dashed #d0d0d0 !important;
}

.custom-image-option:hover, .no-image-option:hover {
    border-color: #3498db !important;
    background: #f0f7ff;
}

.custom-image-option.selected, .no-image-option.selected {
    border-color: #2980b9 !important;
    border-style: solid !important;
    background: #e3f2fd;
}

.custom-image-placeholder, .no-image-placeholder-small {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #7f8c8d;
    text-align: center;
    padding: 8px;
}

.custom-image-placeholder .material-icons, 
.no-image-placeholder-small .material-icons {
    font-size: 32px;
    margin-bottom: 4px;
    opacity: 0.8;
}

.custom-label, .no-image-label {
    font-size: 12px;
    font-weight: 500;
    line-height: 1.2;
}

/* Responsive adjustments for custom/no-image options */
@media (max-width: 600px) {
    .custom-image-placeholder .material-icons, 
    .no-image-placeholder-small .material-icons {
        font-size: 24px;
        margin-bottom: 2px;
    }
    
    .custom-label, .no-image-label {
        font-size: 11px;
    }
}
/* ========================================
   TRIP SELECTOR STYLES
   ======================================== */

.trip-selector-container {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 12px;
}

.trip-info-container {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.trip-participants {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: 12px;
    padding: 4px 0;
}

.participant-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid #fff;
    object-fit: cover;
    margin-left: -10px;
    cursor: pointer;
    transition: transform 0.2s ease, z-index 0.2s ease;
    position: relative;
}

.participant-avatar:first-child {
    margin-left: 0;
}

.participant-avatar:hover {
    transform: translateY(-2px);
    z-index: 10;
}

.participant-avatar-placeholder {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid #fff;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: -10px;
    cursor: pointer;
    transition: transform 0.2s ease, z-index 0.2s ease;
    position: relative;
    text-transform: uppercase;
}

.participant-avatar-placeholder:first-child {
    margin-left: 0;
}

.participant-avatar-placeholder:hover {
    transform: translateY(-2px);
    z-index: 10;
}

.more-participants {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid #fff;
    background: rgba(255, 255, 255, 0.3);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 600;
    margin-left: -10px;
    cursor: pointer;
    transition: transform 0.2s ease;
    position: relative;
}

.more-participants:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.4);
}

.trip-selector {
    background: transparent;
    border: none;
    border-radius: 4px;
    color: white;
    font-size: 18px;
    font-weight: 500;
    padding: 8px 32px 8px 0;
    min-width: 200px;
    cursor: pointer;
    outline: none;
    transition: all 0.2s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='white' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

.trip-selector:hover {
    opacity: 0.9;
}

.trip-selector:focus {
    outline: none;
}

.trip-menu-btn {
    color: white !important;
    padding: 8px;
    opacity: 0.8;
    transition: opacity 0.2s ease, background 0.2s ease;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.trip-menu-btn:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    border-radius: 50%;
    opacity: 1;
}

.trip-menu-btn:focus {
    background: transparent !important;
    outline: none !important;
}

.trip-menu-btn::before,
.trip-menu-btn::after {
    display: none !important;
}

.trip-menu-dropdown {
    position: absolute;
    top: 56px;
    left: 240px;
    background: white;
    border-radius: 4px;
    box-shadow: var(--mdc-elevation-z8);
    min-width: 200px;
    z-index: 1000;
    overflow: hidden;
}

.trip-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 16px;
    border: none;
    background: white;
    color: var(--mdc-theme-text-primary-on-background);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
}

.trip-menu-item:hover {
    background: var(--mdc-theme-background);
}

.trip-menu-item .material-icons {
    font-size: 20px;
    color: var(--mdc-theme-text-secondary-on-background);
}

/* Modal Form Styles */
.form-field {
    margin-bottom: 20px;
}

.form-field label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--mdc-theme-text-primary-on-background);
    margin-bottom: 8px;
}

.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="date"],
.form-field textarea,
.form-field select {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    font-size: 14px;
    font-family: 'Roboto', sans-serif;
    outline: none;
    transition: border-color 0.2s ease;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
    border-color: var(--mdc-theme-primary);
    box-shadow: 0 0 0 2px rgba(25, 118, 210, 0.1);
}

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

/* Collaborators List */
.collaborators-list {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.12);
}

.collaborators-list h3 {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 12px;
    color: var(--mdc-theme-text-secondary-on-background);
}

#collaborators-container {
    max-height: 200px;
    overflow-y: auto;
}

.collaborator-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border-radius: 4px;
    background: var(--mdc-theme-background);
    margin-bottom: 8px;
}

.collaborator-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.collaborator-avatar-img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--mdc-theme-primary);
}

.collaborator-avatar-text {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--mdc-theme-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
}

.collaborator-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--mdc-theme-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 500;
}

.collaborator-details {
    flex: 1;
}

.collaborator-email {
    font-size: 14px;
    font-weight: 500;
    color: var(--mdc-theme-text-primary-on-background);
    line-height: 1.3;
}

.collaborator-role {
    font-size: 12px;
    color: var(--mdc-theme-text-secondary-on-background);
    text-transform: capitalize;
    line-height: 1.3;
    margin-top: 2px;
}

.remove-collaborator-btn {
    padding: 4px;
    border: none;
    background: transparent;
    color: var(--mdc-theme-error);
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.2s ease;
}

.remove-collaborator-btn:hover {
    background: rgba(176, 0, 32, 0.1);
}

/* Danger Zone */
.danger-zone {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid rgba(176, 0, 32, 0.2);
}

.danger-zone h3 {
    font-size: 14px;
    font-weight: 500;
    color: var(--mdc-theme-error);
    margin-bottom: 12px;
}

.danger-btn {
    color: var(--mdc-theme-error) !important;
    border: 1px solid var(--mdc-theme-error) !important;
}

.danger-btn:hover {
    background: rgba(176, 0, 32, 0.05) !important;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .trip-selector {
        min-width: 150px;
        font-size: 14px;
    }
    
    .trip-menu-dropdown {
        left: 12px;
        right: 12px;
        width: auto;
    }
}

/* Location Suggestions and Selected Locations */
.location-suggestions {
    position: relative;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    max-height: 200px;
    overflow-y: auto;
    margin-top: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: none;
    z-index: 100;
}

.location-suggestions.active {
    display: block;
}

.location-suggestion-item {
    padding: 12px;
    cursor: pointer;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    transition: background 0.2s ease;
}

.location-suggestion-item:last-child {
    border-bottom: none;
}

.location-suggestion-item:hover {
    background: var(--mdc-theme-background);
}

.location-suggestion-main {
    font-size: 14px;
    font-weight: 500;
    color: var(--mdc-theme-text-primary-on-background);
    margin-bottom: 2px;
}

.location-suggestion-secondary {
    font-size: 12px;
    color: var(--mdc-theme-text-secondary-on-background);
}

.selected-locations {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.location-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--mdc-theme-primary);
    color: white;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 500;
}

.location-chip .material-icons {
    font-size: 16px;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.location-chip .material-icons:hover {
    opacity: 1;
}

/* Day Summary View */
.day-summary-view {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--mdc-theme-background);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.day-summary-header {
    background: var(--mdc-theme-primary);
    color: white;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--mdc-elevation-z4);
}

.day-navigation {
    display: flex;
    align-items: center;
    gap: 16px;
}

.day-nav-btn {
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    transition: background 0.2s ease;
    padding: 0;
}

.day-nav-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.1);
}

.day-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.day-nav-btn .material-icons {
    font-size: 24px;
}

.back-to-timeline-btn {
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9375rem;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.back-to-timeline-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.back-to-timeline-btn .material-icons {
    font-size: 20px;
}

.day-summary-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 500;
}

.day-summary-content {
    flex: 1;
    display: grid;
    grid-template-columns: 450px 1fr;
    gap: 24px;
    padding: 24px;
    overflow: hidden;
}

.day-schedule-section,
.day-map-section {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: var(--mdc-elevation-z2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.day-schedule-list {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.day-schedule-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    transition: all 0.2s ease;
}

.day-schedule-item:hover {
    box-shadow: var(--mdc-elevation-z2);
    border-color: var(--mdc-theme-primary);
}

.schedule-content {
    flex: 1;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    min-width: 0;
}

.schedule-time {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--mdc-theme-text-secondary-on-background);
    flex-shrink: 0;
    padding-top: 2px;
}

.schedule-photo {
    width: 60px;
    height: 60px;
    border-radius: 4px;
    object-fit: cover;
    flex-shrink: 0;
}

.schedule-info {
    flex: 1;
    min-width: 0;
}

.schedule-title {
    font-size: 1rem;
    font-weight: 500;
    color: var(--mdc-theme-text-primary-on-background);
    margin-bottom: 4px;
}

.schedule-location {
    font-size: 0.875rem;
    color: var(--mdc-theme-text-secondary-on-background);
}

.no-items-message {
    text-align: center;
    color: var(--mdc-theme-text-secondary-on-background);
    padding: 40px 20px;
    font-style: italic;
}


#day-summary-map {
    width: 100%;
    height: 100%;
    border-radius: 4px;
    overflow: hidden;
}

/* Custom photo markers for day summary map */
.custom-photo-marker,
.custom-numbered-marker {
    background: transparent !important;
    border: none !important;
}

.photo-marker-container,
.numbered-marker-container {
    transition: transform 0.3s ease, filter 0.3s ease;
    cursor: pointer;
}

.photo-marker-inner {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--primary-blue);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3), 0 0 0 2px rgba(66, 133, 244, 0.2);
    position: relative;
    background: white;
}

.photo-marker-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.marker-number {
    position: absolute;
    bottom: 2px;
    right: 2px;
    background: transparent;
    color: white;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 900;
    text-shadow: 
        -1px -1px 0 #000,
        1px -1px 0 #000,
        -1px 1px 0 #000,
        1px 1px 0 #000,
        -1px 0 0 #000,
        1px 0 0 #000,
        0 -1px 0 #000,
        0 1px 0 #000,
        0 0 3px rgba(0, 0, 0, 0.8);
}

.numbered-marker-inner {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    color: var(--primary-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    border: 3px solid var(--primary-blue);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3), 0 0 0 2px rgba(66, 133, 244, 0.2);
}

/* Hover state */
.marker-highlighted {
    transform: scale(1.2);
    z-index: 1000 !important;
}

.marker-highlighted .photo-marker-inner,
.marker-highlighted .numbered-marker-inner {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5), 0 0 0 3px rgba(66, 133, 244, 0.4);
    border-width: 4px;
}

/* Active/clicked state */
.marker-active {
    transform: scale(1.4);
    z-index: 1001 !important;
}

.marker-active .photo-marker-inner,
.marker-active .numbered-marker-inner {
    border-color: var(--primary-blue);
    border-width: 5px;
    box-shadow: 0 6px 20px rgba(66, 133, 244, 0.6), 0 0 0 4px rgba(66, 133, 244, 0.3);
}

/* Schedule item highlighting */
.schedule-item-highlighted {
    background: #f0f7ff;
    border-color: var(--primary-blue);
}

.schedule-item-active {
    background: #e3f2fd;
    border-color: var(--primary-blue);
    border-width: 2px;
    box-shadow: 0 4px 12px rgba(66, 133, 244, 0.3);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .day-summary-content {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr 300px;
        gap: 16px;
    }
    
    .day-schedule-section {
        overflow-y: auto;
    }
    
    .day-map-section {
        height: 300px;
    }
    
    #day-summary-map {
        height: 100%;
    }
    
    .day-summary-header {
        padding: 12px 16px;
    }
    
    .day-summary-header h2 {
        font-size: 1.25rem;
    }
    
    .back-to-timeline-btn {
        padding: 6px 12px;
        font-size: 0.875rem;
    }
    
    .photo-marker-inner {
        width: 40px;
        height: 40px;
    }
    
    .marker-number {
        width: 18px;
        height: 18px;
        font-size: 10px;
    }
    
    .numbered-marker-inner {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
}
.location-type-badge {
    font-size: 10px;
    padding: 2px 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    margin-left: 4px;
    text-transform: uppercase;
}

/* Google Place Details in Modal */
.google-place-details {
    margin-top: 16px;
    margin-bottom: 16px;
}

.place-preview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

.place-details-image {
    border-radius: 8px;
    overflow: hidden;
}

.place-details-image img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.place-details-minimap {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#activity-minimap {
    width: 100%;
    height: 150px;
    border-radius: 8px;
}

.place-details-info {
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.place-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 8px;
}

.place-info-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #5f6368;
}

.place-info-item .material-icons {
    font-size: 16px;
    color: #5f6368;
}

.place-info-item a {
    text-decoration: none;
}

.place-info-item a:hover {
    text-decoration: underline;
}

/* Responsive: Stack on mobile */
@media (max-width: 600px) {
    .place-preview-grid {
        grid-template-columns: 1fr;
    }
    
    .place-details-image img,
    #activity-minimap {
        height: 180px;
    }
}
