@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

/* Brand Colors */
:root {
    --primary: #537B71; /* GoGo Teal */
    --accent: #FFB000; /* Mustard Yellow */
    --secondary: #DA4F3D; /* Sunset Coral */
    --neutral-light: #FFF7E7; /* Cloud Beige */
    --neutral-dark: #1C1C1C; /* Jet Black */
    --support-1: #84B3C7; /* Sky Blue */
    --support-2: #7D6A4F; /* Olive Bronze */
    --white: #FFFFFF;
    --light-gray: #f8f9fa;
    --text-dark: #333333;
}

/* --- Modern TripGoGo Homepage Styles --- */
* {
    box-sizing: border-box;
}

body {
    background: var(--white);
    color: var(--neutral-dark);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Prevent horizontal overflow */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Main content container */
main {
    display: flex;
    flex-direction: column;
    flex: 1; /* Take up remaining space */
}

/* Hero section feature cards */
.hero-feature-cards {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    color: var(--neutral-dark);
}

.hero-feature-card {
    background: var(--neutral-light);
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 4px 8px 0 0 var(--secondary);
    flex: 1;
    min-width: 150px;
    max-width: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-feature-card i {
    color: var(--accent);
    margin-bottom: 0.5rem;
    font-size: 2.5rem;
}

/* Responsive adjustments for hero feature cards */
@media (max-width: 768px) {
    .hero-feature-cards {
        gap: 0.5rem;
    }
    
    .hero-feature-card {
        min-width: 120px;
        max-width: 150px;
        padding: 0.8rem;
    }
}

@media (max-width: 480px) {
    .hero-feature-cards {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-feature-card {
        min-width: 200px;
        max-width: 250px;
        width: 100%;
    }
}

.main-header {
    background: var(--white);
    color: var(--neutral-dark);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    padding: 0;
}
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    /*width: 100%;*/
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.75rem 2rem;
}
.navbar-left {
    flex: 1;
    display: flex;
    align-items: center;
}
.navbar-center {
    flex: 2;
    display: flex;
    justify-content: center;
    align-items: center;
}
.navbar-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1rem;
}

/* Ensure .navbar-links stays centered and doesn't stretch */
.navbar-center .navbar-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.navbar-logo img {
    height: 70px;
    margin: -20px 0px -20px 0px;
}
.navbar-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}
.navbar-links li a {
    color: var(--neutral-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: color 0.2s;
}
.navbar-links li a.active,
.navbar-links li a:hover {
    color: var(--accent);
}
.navbar-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.profile-link {
    color: #4B421B;
    font-size: 2rem;
    text-decoration: none;
}
.profile-link:hover {
    color: #F9A826;
}

.hero-section {
    position: relative;
    background-size: cover;
    background-position: center;
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-image: url("/static/images/hero-bg.jpg");
}
.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    max-width: 700px;
    margin: 0 auto;
    padding: 3rem 1rem;
}
.hero-logo {
    height: 56px;
    margin-bottom: 1.5rem;
}
.hero-content h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
}
.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}
.cta-btn {
    background: var(--accent);
    color: var(--neutral-dark);
    font-weight: 700;
    font-size: 1.1rem;
    padding: 0.9rem 2.2rem;
    border: none;
    border-radius: 32px;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: background 0.2s;
    display: inline-block;
    letter-spacing: 0.5px;
}
.cta-btn:hover {
    background: var(--primary);
    color: var(--white);
}

.travelers-section {
    background: var(--white);
    padding: 3rem 0 2rem 0;
    text-align: center;
}
.travelers-section h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
}
.travelers-list {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}
.traveler-card {
    background: var(--neutral-light);
    border-radius: 16px;
    box-shadow: 4px 8px 0 0 var(--secondary);
    padding: 1rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    min-width: 120px;
    transition: box-shadow 0.18s;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}
.traveler-card:hover {
    box-shadow: 8px 16px 0 0 var(--secondary);
}
.traveler-card img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    object-position: 50% 30%;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    background: #fff;
    display: block;
    margin: 0 auto 12px auto;
}

.features-section {
    padding: 3rem 0 2rem 0;
    text-align: center;
}
.features-section h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
}
.features-list {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}
.feature-card {
    background: var(--light-gray);
    border-radius: 16px;
    box-shadow: 4px 4px 8px 0 lightgray;
    padding: 2rem 1.5rem;
    min-width: 220px;
    max-width: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: box-shadow 0.18s;
}
.feature-card i {
    font-size: 2.5rem;
    color: var(--accent);
}

.stats-section {
    background: #f8f9fa;
    padding: 2.5rem 0 2rem 0;
}
.stats-list {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}
.stat-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    padding: 2rem 2.5rem;
    min-width: 180px;
    text-align: center;
}
.stat-card h3 {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
}
.stat-card p {
    color: #4B421B;
    font-size: 1.1rem;
}

.testimonials-section {
    padding: 3rem 0 2rem 0;
    text-align: center;
}
.testimonials-section h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
}
.testimonials-list {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}
.testimonial-card {
    background: var(--light-gray);
    border-radius: 16px;
    box-shadow: 4px 4px 8px 0 lightgray;
    padding: 2rem 1.5rem;
    min-width: 220px;
    max-width: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    font-style: italic;
    transition: box-shadow 0.18s;
}

.testimonial-card span {
    margin-top: 1rem;
    color: #4B421B;
    font-weight: 600;
}

.cta-section {
    text-align: center;
    padding: 2.5rem 0 3rem 0;
}

.main-footer {
    background: var(--neutral-dark);
    color: var(--white);
    padding: 1.5rem 0;
}
.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
}
.footer-logo img {
    height: 32px;
}
.footer-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}
.footer-links li a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.2s;
}
.footer-links li a.active,
.footer-links li a:hover {
    color: var(--accent);
}
.footer-copy {
    font-size: 0.95rem;
    color: var(--light-gray);
}

/* Empty State Styles */
.empty-state-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem 1rem;
    min-height: 400px;
}

.empty-state-image {
    width: 200px;
    height: auto;
    margin-bottom: 2rem;
    opacity: 0.8;
}

.empty-state-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--neutral-dark);
    margin-bottom: 1rem;
}

.empty-state-subtitle {
    font-size: 1rem;
    color: #666;
    margin-bottom: 2rem;
    max-width: 400px;
    line-height: 1.5;
}

.empty-state-cta {
    background: var(--primary);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.empty-state-cta:hover {
    background: var(--support-1);
    color: white;
    text-decoration: none;
}

.empty-state-cta i {
    font-size: 16px;
}

/* Responsive Empty State */
@media (max-width: 768px) {
    .empty-state-container {
        padding: 2rem 1rem;
        min-height: 300px;
    }
    
    .empty-state-image {
        width: 150px;
        margin-bottom: 1.5rem;
    }
    
    .empty-state-title {
        font-size: 1.25rem;
    }
    
    .empty-state-subtitle {
        font-size: 0.9rem;
        max-width: 300px;
    }
}

/* Responsive Styles */
@media (max-width: 900px) {
    .navbar {
        flex-direction: column;
        align-items: stretch;
        padding: 1rem;
    }
    .navbar-left, .navbar-center, .navbar-right {
        flex: unset;
        justify-content: center;
        margin-bottom: 0.5rem;
    }
    .navbar-center {
        order: 2;
    }
    .navbar-left {
        order: 1;
    }
    .navbar-right {
        order: 3;
    }
    .navbar, .footer-content, .stats-list, .features-list, .testimonials-list {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
    .hero-content h1 {
        font-size: 2rem;
    }
}
@media (max-width: 600px) {
    .navbar, .footer-content {
        padding: 1rem;
    }
    .hero-content {
        padding: 2rem 0.5rem;
    }
    .stat-card, .feature-card, .testimonial-card, .traveler-card {
        min-width: 70vw;
        max-width: 98vw;
    }
    .autocomplete-container {
        width: 100%;
    }
}

#chat-container {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    font-family: inherit;
}

#chat-messages {
    height: 600px;
    overflow-y: auto;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 8px;
}

.user-message, .assistant-message {
    margin: 10px 0;
    padding: 10px 15px;
    border-radius: 8px;
    max-width: 80%;
}

.user-message {
    background-color: var(--primary);
    color: black;
    margin-left: auto;
}

.assistant-message {
    background-color: #f0f0f0;
    color: #333;
    margin-right: auto;
}

.input-container {
    margin: 20px 0;
    display: flex;
    gap: 10px;
}

#message-input {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
    margin-right: 10px;
}

#send-button {
    padding: 12px 20px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    flex: 0 0 auto;
}

button {
    padding: 12px 24px;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
}

button:hover {
    background-color: var(--support-2);
}

.trip-button {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 10px 0;
}

.map-icon {
    font-size: 20px;
}

#map {
    height: 500px !important;
    width: 100% !important;
    margin: 20px 0;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#map-container {
    position: relative;
    width: 100%;
    min-height: 500px;
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.export-message {
    background-color: #e8f5e9;
    padding: 15px;
    margin: 10px 0;
    border-radius: 8px;
    border-left: 4px solid #4caf50;
    font-size: 18px;
    line-height: 1.5;
    white-space: pre-line;
}

.info-window {
    padding: 12px;
    max-width: 200px;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    font-family: Arial, sans-serif;
}

.info-window h3 {
    margin: 0 0 8px 0;
    font-size: 16px;
    color: var(--primary);
    font-weight: 500;
}

.info-window p {
    margin: 4px 0;
    color: #666;
    font-size: 14px;
    line-height: 1.4;
}

.map-controls {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#place-search {
    flex-grow: 1;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.api-warning {
    background-color: #fff3cd;
    color: #856404;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ffeeba;
    border-radius: 4px;
    font-weight: bold;
}

#usage-stats {
    margin-top: 10px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 4px;
    font-size: 0.9em;
}

.category-marker {
    width: 32px;
    height: 32px;
    cursor: pointer;
}

#api-logs {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 4px;
    max-height: 300px;
    overflow-y: auto;
}

.logs-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #dee2e6;
}

.logs-header h3 {
    margin: 0;
    color: #495057;
}

.log-item {
    display: grid;
    grid-template-columns: auto 100px 1fr 80px;
    gap: 10px;
    padding: 8px;
    border-bottom: 1px solid #eee;
    font-size: 0.9em;
    align-items: center;
}

.log-item:hover {
    background: #e9ecef;
}

.log-timestamp {
    color: #666;
}

.log-type {
    font-weight: bold;
}

.log-details {
    color: #333;
}

.log-cost {
    color: var(--support-2);
}

.export-message strong {
    color: #1b5e20;
}

/* Add numbered list styling */
.export-message ol {
    margin: 5px 0;
    padding-left: 20px;
}

.export-message li {
    margin: 3px 0;
}

.trip-controls {
    margin-top: 15px;
    margin-bottom: 15px;
}

.marker-content {
    position: relative;
    width: 32px;
    height: 32px;
    cursor: pointer;
    transform-origin: center;
    transition: transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none !important;
    box-shadow: none !important;
}

.marker-content:hover {
    transform: scale(1.1);
}

.pin {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.pin-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    height: 100%;
    width: 100%;
}

.pin-icon i {
    line-height: 0;
    font-size: 14px;
    width: auto;
    height: auto;
}

.pin-label {
    background: rgba(0,0,0,0.7);
    color: #fff;
    font-size: 13px;
    font-weight: bold;
    border-radius: 10px;
    padding: 2px 8px;
    position: absolute;
    pointer-events: none;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    border: none;
    white-space: nowrap;
}

.marker-content img {
    height: 100%;
    width: auto;
    border-radius: 50%;
}

.marker-label {
    width: 24px;
    height: 24px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 8px;
}

.marker-info {
    padding: 4px;
}

.marker-title {
    font-weight: bold;
    font-size: 14px;
}

.marker-description {
    font-size: 12px;
    color: #666;
    margin-top: 2px;
}

.save-maps-button {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    margin: 10px 0;
    transition: background-color 0.3s ease;
}

.save-maps-button:hover {
    background-color: var(--support-2);
}

.error-message {
    padding: 1.5rem;
    border-radius: 8px;
    background-color: #fff3f3;
    border: 1px solid #ffcdd2;
    margin: 1rem 0;
    text-align: center;
    color: #d32f2f;
}

.error-message i {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #d32f2f;
}

.error-message p {
    margin: 0.5rem 0;
    font-size: 1rem;
    line-height: 1.5;
}

.error-message .error-help {
    color: #666;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.error-message.warning {
    background-color: #fff8e1;
    border-color: #ffe082;
    color: #ff8f00;
}

.error-message.warning i {
    color: #ff8f00;
}

.success-message {
    background-color: var(--support-1);
    color: var(--neutral-dark);
    padding: 15px;
    margin: 10px 0;
    border-radius: 4px;
    border-left: 4px solid var(--primary);
}

.create-map-button {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    margin: 10px 0;
    transition: background-color 0.3s ease;
}

.g_id_signin {
    margin: 20px auto;
    display: block;
}

.container {
    display: flex;
    flex-direction: column;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
    width: 100%;
}

.auth-container {
    text-align: center;
    margin-bottom: 10px;
}

.main-content {
    display: flex;
    flex-direction: column;
    padding: 0 20px 20px;
    min-height: 0; /* Allow content to shrink if needed */
    overflow-x: hidden; /* Prevent horizontal overflow */
}

.chat-container {
    display: none;
    flex-direction: column;
    height: 45vh;
    border: 1px solid #ccc;
    border-radius: 8px;
    overflow: hidden;
    margin: 0;
}

.chat-container.visible {
    display: flex;
}

.chat-messages {
    flex-grow: 0;
    /* height: 600px; */
    height: 0px;
    overflow-y: auto;
    padding: 0px;
    margin: 0;
    font-family: 'Crimson Pro', serif;
    visibility: hidden;
}

.chat-input-container {
    display: none;
    gap: 10px;
    padding: 20px;
    background: white;
    border-top: 1px solid #ddd;
}

#user-input {
    flex-grow: 1;
    padding: 12px;
    margin-right: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
}

#send-button {
    padding: 12px 20px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    flex: 0 0 auto;
}

#send-button:hover {
    background-color: var(--support-2);
}

.map-section {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    min-height: 45vh; /* Changed from fixed height to min-height */
    margin: 0;
    gap: 10px;
    overflow: hidden; /* Prevent map section overflow */
}

.map-container {
    flex-grow: 1;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin: 0;
    padding: 0;
    min-height: 400px; /* Minimum height for map */
    display: flex;
    flex-direction: column;
}

#map {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 8px;
    min-height: 400px; /* Ensure minimum height */
}

.map-header {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 5px 0;
}

.export-buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    padding: 5px;
}

.export-button {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    margin: 5px;
    font-size: 14px;
    transition: background-color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.export-button.visible {
    display: inline-block;
}

#exportExcel {
    background-color: var(--primary);
}

#exportExcel:hover {
    background-color: var(--support-2);
}

.map-feedback {
    display: none;  /* Hidden by default */
    background-color: #ffffff;
    padding: 12px 16px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    font-size: 14px;
    text-align: center;
    border: 1px solid #e0e0e0;
}

.map-feedback.visible {
    display: block;
}

.map-feedback.error {
    color: #d32f2f;
    background-color: #ffebee;
    border-color: #ffcdd2;
}

/* Add the pulse animation styles */
@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.pulse-dot {
    width: 16px;
    height: 16px;
    background: rgba(66, 133, 244, 0.3);
    border-radius: 50%;
    position: absolute;
    animation: pulse 1.5s ease-out infinite;
}

.map-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 1000;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    margin: 0 auto 10px;
    animation: spin 1s linear infinite;
}

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

/* Adjust message styling for better readability */
.message {
    margin: 8px 0;
    padding: 12px;
    border-radius: 8px;
    max-width: 85%;
    line-height: 1.4;
}

.user-message {
    background-color: var(--primary);
    margin-left: auto;
    color: white;
}

.assistant-message {
    background-color: #f5f5f5;
    margin-right: auto;
    color: #333;
}

/* Login page styles */
.login-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
    background-color: #f5f5f5;
}

.login-container h1 {
    margin-bottom: 30px;
    color: #333;
    font-family: 'Crimson Pro', serif;
    font-size: 2.5em;
}

.login-container .auth-container {
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Add styles for trips list */
.trips-container {
    background: white;
    border-radius: 8px;
    padding: 30px;
}

.trips-container h1 {
    margin: 0 0 30px 0;
    color: #333;
    font-size: 32px;
}

.trip-card {
    position: relative;
    background: linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.55));
    color: #fff;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.10);
    overflow: hidden;
    min-height: 180px;
    transition: box-shadow 0.2s, transform 0.2s;
}
.trip-card .trip-header,
.trip-card h3,
.trip-card .trip-description,
.trip-card .trip-meta,
.trip-card .trip-date,
.trip-card .trip-actions,
.trip-card .shared-info,
.trip-card .trip-stats,
.trip-card .trip-stat,
.trip-card .trip-creator,
.trip-card .permissions {
    color: #fff !important;
    text-shadow: 0 2px 8px rgba(0,0,0,0.25);
}
.trip-card .trip-header {
    background: none !important;
    box-shadow: none !important;
}
.trip-card .btn,
.trip-card .btn-danger,
.trip-card .btn-warning,
.trip-card .view-trip-btn {
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: 1px solid #fff2;
}
.trip-card .btn:hover,
.trip-card .btn-danger:hover,
.trip-card .btn-warning:hover,
.trip-card .view-trip-btn:hover {
    background: rgba(0,0,0,0.7);
    color: #fff;
}

.trip-card:hover {
    transform: translateY(-2px);
    box-shadow: 8px 16px 0 0 var(--secondary);
}

.trip-card h3 {
    margin: 0 0 10px 0;
    color: var(--primary);
    font-size: 20px;
}

.trip-card .trip-description {
    margin: 5px 0;
}

.trip-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 14px;
    margin-top: 10px;
}

.view-trip-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 8px 16px;
    background: var(--primary);
    color: var(--white);
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.view-trip-btn:hover {
    background: #5d533b;
}

.no-trips {
    text-align: center;
    color: #666;
    padding: 20px;
    font-style: italic;
}

.error {
    text-align: center;
    color: #dc3545;
    padding: 20px;
    background: #fff3f4;
    border-radius: 4px;
    margin: 10px 0;
}

/* Trip view page styles */
.trip-header {
    margin-bottom: 30px;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.back-button {
    display: inline-block;
    margin-bottom: 20px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.back-button:hover {
    text-decoration: underline;
}

.trip-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 1rem;
}

.map-container {
    width: 100%;
    height: 500px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#map {
    width: 100%;
    height: 100%;
}

.itinerary-container {
    width: 100%;
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.itinerary-container h2 {
    margin: 0 0 1.5rem 0;
    color: #333;
    font-size: 1.5rem;
}

.itinerary-date {
    margin-bottom: 20px;
}

.itinerary-date h3 {
    color: var(--primary);
    border-bottom: 2px solid var(--primary);
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-size: 24px;
}

.itinerary-item {
    display: grid;
    grid-template-columns: 56px 1fr 90px;
    background: #fff;
    border-radius: 2rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    margin-bottom: 1.5rem;
    padding: 0;
    min-height: 90px;
    position: relative;
    overflow: visible;
}
.drag-handle {
    /* Drag and drop disabled - hiding drag handles */
    display: none !important;
    /* grid-column: 1;
    grid-row: 1;
    background: #f3f4f6;
    border-top-left-radius: 2rem;
    border-bottom-left-radius: 2rem;
    width: 48px;
    min-width: 48px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #222;
    box-shadow: 2px 0 8px rgba(0,0,0,0.04);
    margin-right: 0.5rem; */
}
.itinerary-main {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 0.2rem;
    padding: 1.2rem 0.5rem 1.2rem 0;
}
.actions-wrapper {
    grid-column: 3;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 0.7rem;
    margin-right: 1.2rem;
    margin-left: 0.5rem;
    height: 100%;
}
.item-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-end;
}
.delete-btn {
    background: var(--secondary);
    color: #fff;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(218,79,61,0.1);
    cursor: pointer;
    transition: background 0.18s;
}
.delete-btn:hover {
    background: var(--support-2);
}
.edit-btn {
    background: #f3f4f6;
    color: #222;
    border: none;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.18s;
}
.edit-btn:hover {
    background: #e0e0e0;
}
@media (max-width: 700px) {
    .itinerary-item {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        border-radius: 1.2rem;
        min-height: 0;
    }
    .drag-handle {
        /* Drag and drop disabled - hiding drag handles */
        display: none !important;
        /* border-radius: 1.2rem 1.2rem 0 0;
        width: 100%;
        min-width: 0;
        height: 38px;
        margin-right: 0;
        margin-bottom: 0.2rem;
        box-shadow: none; */
    }
    .itinerary-main {
        padding: 0.7rem 0.5rem 0.7rem 0.5rem;
    }
    .actions-wrapper {
        flex-direction: row;
        justify-content: flex-end;
        align-items: center;
        margin: 0.5rem 0.5rem 0.7rem 0.5rem;
        gap: 0.5rem;
    }
    .item-actions {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-end;
    }
    .delete-btn, .edit-btn {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
}

.search-flights-btn {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.search-flights-btn:hover {
    background: var(--support-2);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.search-flights-btn i {
    font-size: 0.9rem;
}

.time {
    color: #333;
    font-size: 16px;
    font-weight: 500;
}

.time-edit {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.time-edit input[type="time"] {
    width: 130px;
    padding: 6px 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}

.activity {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.activity strong {
    color: #2c3e50;
    font-size: 18px;
    margin-bottom: 4px;
}

.location {
    color: var(--primary);
    font-size: 16px;
    margin-bottom: 4px;
}

.location-edit {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}

.notes {
    color: #666;
    font-size: 14px;
    font-style: italic;
}

.item-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-left: 10px;
    align-items: flex-end;
}

.edit-btn, .save-btn, .cancel-btn, .search-flights-btn {
    background: #f3f4f6;
    border: none;
    padding: 0;
    cursor: pointer;
    font-size: 0.9rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.save-btn {
    color: #2d7355;
}

.cancel-btn {
    color: #8B0000;
}

.search-flights-btn {
    color: var(--primary);
}

.edit-btn:hover, .save-btn:hover, .cancel-btn:hover, .search-flights-btn:hover {
    background: rgba(0, 0, 0, 0.05);
}

.edit-btn:hover, .save-btn:hover, .cancel-btn:hover {
    background: rgba(0, 0, 0, 0.05);
}

.search-flights-btn i {
    font-size: 18px;
}

/* Drag and drop disabled - hiding drag-related styles */
/* .itinerary-item.dragging {
    opacity: 0.7;
    background: var(--primary-light);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.itinerary-item.drag-over {
    border-top: 2px solid var(--primary);
    padding-top: 18px;
}

.itinerary-item[draggable="false"] {
    background: var(--white);
}

.itinerary-item[draggable="false"] .drag-handle {
    opacity: 0.5;
    cursor: not-allowed;
} */

/* Container styles */
.itinerary-container {
    background: var(--white);
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    max-width: 900px;
    margin: 0 auto;
}

.itinerary-date {
    margin-bottom: 30px;
}

/* Animation for saving */
@keyframes save-animation {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Trip card styles */
.trip-card .trip-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.trip-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
}

.trip-title-row .trip-actions {
    margin-top: 0;
}

.delete-trip-btn {
    background: none;
    border: none;
    color: #dc3545;
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-left: 0;
}

.delete-trip-btn:hover {
    background-color: #dc3545;
    color: white;
}

.delete-icon {
    line-height: 1;
    display: block;
}

.success-message {
    background-color: var(--support-1);
    color: var(--neutral-dark);
    padding: 15px;
    margin: 10px 0;
    border-radius: 4px;
    border-left: 4px solid var(--primary);
}

.error-message {
    background-color: var(--secondary);
    color: var(--white);
    padding: 15px;
    margin: 10px 0;
    border-radius: 4px;
    border-left: 4px solid var(--secondary);
}

/* Trip actions container */
.trip-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 15px;
    z-index: 2;
}

.export-btn {
    padding: 8px 16px;
    margin-right: 8px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s;
}

.export-btn.excel {
    background-color: var(--accent);
    color: var(--neutral-dark);
}

.export-btn.excel:hover {
    background-color: #5d533b;
}

.export-btn.kml {
    background-color: var(--accent);
    color: var(--neutral-dark);
}

.export-btn.kml:hover {
    background-color: #5d533b;
}

.export-btn.calendar {
    background-color: var(--accent);
    color: var(--neutral-dark);
}

.export-btn.calendar:hover {
    background-color: #5d533b;
}

.export-btn.hidden {
    display: none;
}

.success-message {
    background-color: var(--support-1);
    color: var(--neutral-dark);
    padding: 15px;
    margin: 10px 0;
    border-radius: 4px;
    border-left: 4px solid var(--primary);
}

.error-message {
    background-color: var(--secondary);
    color: var(--white);
    padding: 15px;
    margin: 10px 0;
    border-radius: 4px;
    border-left: 4px solid var(--secondary);
}

/* Trip actions container */
.trip-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 15px;
    z-index: 2;
}

.export-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    opacity: 1;
    visibility: visible;
}

.export-btn.hidden {
    opacity: 0;
    visibility: hidden;
}

.export-btn.excel {
    background-color: var(--accent);
    color: var(--neutral-dark);
}

.export-btn.excel:hover {
    background-color: #5d533b;
}

.export-btn.kml {
    background-color: var(--accent);
    color: var(--neutral-dark);
}

.export-btn.kml:hover {
    background-color: #5d533b;
}

.export-btn span {
    line-height: 1;
}

.hidden {
    display: none !important;
}

/* Navigation Styles */
.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: var(--white);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
    position: relative;
    z-index: 1000;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background-color: var(--primary-light);
}

.nav-link.active {
    color: var(--primary);
    background-color: var(--primary-light);
}

.nav-link.profile-link {
    font-size: 2.5rem;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.nav-link.profile-link:hover {
    background-color: var(--primary-light);
    transform: scale(1.05);
}

.notifications-dropdown {
    position: relative;
}

.notifications-btn {
    position: relative;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    color: #333;
}

.notifications-btn i{
    font-size: 2.5rem;
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--primary);
    color: var(--white);
    border-radius: 50%;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    min-width: 1rem;
    text-align: center;
}

.notification-badge.hidden {
    display: none;
}

.notifications-content {
    position: fixed;
    top: 4rem; /* Position below the nav bar */
    right: 2rem;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    width: 350px;
    max-height: 500px;
    overflow-y: auto;
    z-index: 1500;
    border: 1px solid var(--primary-light);
}

.notifications-content.hidden {
    display: none;
}

.notifications-header {
    padding: 1rem;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    background: white;
    z-index: 1;
}

.notifications-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #333;
}

.notifications-list {
    padding: 0.5rem;
    max-height: 400px;
    overflow-y: auto;
}

.notification-item {
    padding: 1rem;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background-color 0.2s;
}

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

.notification-item:hover {
    background-color: var(--primary-light);
}

/* Add animation for reordering */
.itinerary-item {
    animation: reorder-animation 0.3s ease;
}

@keyframes reorder-animation {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

/* Add styles for edit mode */
.time-edit {
    display: flex;
    gap: 10px;
}

.time-edit input[type="time"] {
    padding: 4px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}

.location-edit {
    width: 100%;
    padding: 4px 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}

.item-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-end;
}

.edit-btn, .save-btn, .cancel-btn, .search-flights-btn {
    background: #f3f4f6;
    border: none;
    padding: 0;
    cursor: pointer;
    font-size: 0.9rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.save-btn {
    color: #2d7355;
}

.cancel-btn {
    color: #8B0000;
}

.search-flights-btn {
    color: var(--primary);
}

.edit-btn:hover, .save-btn:hover, .cancel-btn:hover, .search-flights-btn:hover {
    background: rgba(0, 0, 0, 0.05);
}

/* Add animation for saving changes */
@keyframes save-animation {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.save-animation {
    animation: save-animation 0.3s ease;
}

/* Style for non-draggable items during edit - Drag and drop disabled */
/* .itinerary-item[draggable="false"] {
    cursor: default;
    background: var(--white);
}

.itinerary-item[draggable="false"] .drag-handle {
    opacity: 0.5;
    cursor: not-allowed;
} */

/* Profile Styles */
.profile-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    min-width: 320px;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.profile-avatar {
    font-size: 5rem;
    color: var(--primary);
}

.profile-info h1 {
    margin: 0;
    font-size: 2rem;
    color: #333;
}

.profile-info p {
    margin: 0.5rem 0 0;
    color: #666;
}

.profile-stats {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 3rem;
    flex-wrap: nowrap;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background-color: var(--neutral-light);
    border-radius: 8px;
    box-shadow: 4px 8px 0 0 var(--secondary);
    transition: box-shadow 0.18s;
    flex: 1;
    min-width: 0;
    cursor: pointer;
}
.stat-card:hover {
    box-shadow: 8px 16px 0 0 var(--secondary);
}

.stat-card i {
    font-size: 2rem;
    color: var(--accent);
}

.stat-info h3 {
    margin: 0;
    font-size: 1.5rem;
    color: #333;
}

.stat-info p {
    margin: 0.25rem 0 0;
    color: #666;
}

/* Responsive styles for profile stats */
@media (max-width: 768px) {
    .profile-stats {
        gap: 1rem;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .stat-card i {
        font-size: 1.5rem;
    }
    
    .stat-info h3 {
        font-size: 1.25rem;
    }
    
    .stat-info p {
        font-size: 0.875rem;
    }
}

@media (max-width: 480px) {
    .profile-stats {
        gap: 0.75rem;
    }
    
    .stat-card {
        padding: 0.75rem;
    }
    
    .stat-card i {
        font-size: 1.25rem;
    }
    
    .stat-info h3 {
        font-size: 1.125rem;
    }
    
    .stat-info p {
        font-size: 0.8rem;
    }
}

.profile-actions {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 2rem;
}

.profile-actions h2 {
    margin: 0 0 1.5rem;
    color: #333;
}

.settings-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.settings-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    text-decoration: none;
    color: #333;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.settings-item:hover {
    background-color: #f5f5f5;
}

.settings-item i:first-child {
    width: 24px;
    margin-right: 1rem;
    color: var(--primary);
}

.settings-item span {
    flex: 1;
}

.settings-item i:last-child {
    color: #999;
}

.settings-item.logout {
    color: #dc3545;
}

.settings-item.logout i {
    color: #dc3545;
}

/* Share Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: #fff;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    color: #333;
    font-size: 1.5rem;
}

.close-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #666;
    cursor: pointer;
    padding: 0.5rem;
}

.close-modal:hover {
    color: #333;
}

.modal-body {
    padding: 1.5rem;
}

.share-form {
    margin-bottom: 2rem;
}

.input-group {
    margin-bottom: 1rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 500;
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 1rem;
}

.share-submit-btn {
    width: 100%;
    padding: 0.75rem;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.share-submit-btn:hover {
    background-color: var(--support-2);
}

.shared-with-list {
    border-top: 1px solid #e0e0e0;
    padding-top: 1.5rem;
}

.shared-with-list h3 {
    margin: 0 0 1rem;
    color: #333;
    font-size: 1.2rem;
}

.shared-user {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem;
    background-color: #f8f9fa;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.shared-user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.shared-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
}

.shared-user-details {
    display: flex;
    flex-direction: column;
}

.shared-user-email {
    color: #333;
    font-weight: 500;
}

.shared-user-permission {
    color: #666;
    font-size: 0.875rem;
}

.shared-user-actions {
    display: flex;
    gap: 0.5rem;
}

.shared-user-action {
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    color: #666;
    border-radius: 4px;
    transition: all 0.2s;
}

.shared-user-action:hover {
    background-color: #e9ecef;
    color: #333;
}

.share-btn {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.share-btn:hover {
    background-color: var(--support-2);
}

.share-btn i {
    font-size: 1rem;
}

/* Error page styles */
.error-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 100px);
    padding: 2rem;
}

.error-content {
    text-align: center;
    background: white;
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    max-width: 500px;
}

.error-icon {
    font-size: 4rem;
    color: #dc3545;
    margin-bottom: 1.5rem;
}

.error-content h1 {
    margin: 0 0 1rem 0;
    color: #333;
    font-size: 2rem;
}

.error-content p {
    color: #666;
    margin-bottom: 2rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.back-link:hover {
    color: var(--support-2);
}

/* Update notification colors */
.notification {
    background-color: var(--primary);
    color: var(--white);
}

.notification-success {
    background-color: var(--primary);
}

.notification-error {
    background-color: #c62828;
}

.notification-info {
    background-color: var(--primary);
}

/* Map marker styles */
.marker-content {
    background: none !important;
    box-shadow: none !important;
}

.pin-background {
    background: var(--primary) !important;
}

.info-window {
    background: var(--white);
}

.info-window h3 {
    color: var(--primary);
}

/* Export buttons specific styles */
.export-btn.excel {
    background-color: var(--accent);
}

.export-btn.excel:hover {
    background-color: #5d533b;
}

.export-btn.kml {
    background-color: var(--accent);
}

.export-btn.kml:hover {
    background-color: #5d533b;
}

.export-btn.calendar {
    background-color: var(--accent);
}

.export-btn.calendar:hover {
    background-color: #5d533b;
}

.cluster-marker {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.cluster-content {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background-color: rgba(66, 133, 244, 0.8);
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease;
}

.cluster-content:hover {
    transform: scale(1.1);
}

.cluster-text {
    color: white;
    font-size: 14px;
    font-weight: bold;
    font-family: Arial, sans-serif;
}

.info-window {
    min-width: 200px;
    max-width: 300px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.info-header {
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.info-header h3 {
    margin: 0;
    color: white;
    font-size: 16px;
    font-weight: 500;
}

.info-body {
    padding: 12px;
    background: white;
}

.info-type,
.info-time,
.info-duration,
.info-notes {
    margin-bottom: 8px;
    display: flex;
    align-items: flex-start;
}

.info-type:last-child,
.info-time:last-child,
.info-duration:last-child,
.info-notes:last-child {
    margin-bottom: 0;
}

.label {
    font-weight: 500;
    color: #666;
    min-width: 80px;
    margin-right: 8px;
}

.value {
    color: #333;
    flex: 1;
}

/* Payment tracking styles */
.payment-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 32px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
}

.payment-icon.unpaid {
    background-color: #dc3545;
    color: white;
}

.payment-icon.paid {
    background-color: #28a745;
    color: white;
}

.payment-icon:hover {
    transform: scale(1.1);
    opacity: 0.9;
}



/* Override btn-danger styles for itinerary delete buttons */
.item-actions .btn-danger {
    background: var(--secondary) !important;
    margin-left: 0 !important;
    width: 32px !important;
    height: 32px !important;
    padding: 0 !important;
    border-radius: 0.5rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.item-actions .btn-danger:hover {
    background: var(--support-2) !important;
}

.budget-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 1000;
}

.budget-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.budget-modal-header h2 {
    margin: 0;
    color: #333;
}

.budget-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
}

.budget-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.budget-card {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
}

.budget-card h3 {
    margin: 0 0 0.5rem 0;
    color: #666;
    font-size: 0.9rem;
}

.budget-card .amount {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
}

.expense-list {
    margin-bottom: 2rem;
}

.expense-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.expense-details {
    flex-grow: 1;
}

.expense-type {
    font-size: 0.8rem;
    color: #666;
    text-transform: uppercase;
}

.expense-name {
    font-weight: 500;
    margin: 0.25rem 0;
}

.expense-price {
    color: #28a745;
    font-weight: 500;
}

.payment-list {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #666;
}

.payment-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    width: 400px;
    max-width: 90%;
    z-index: 1000;
}

.payment-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.payment-form label {
    font-weight: 500;
    color: #333;
}

.payment-form input,
.payment-form select {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.payment-form button[type="submit"],
.payment-modal button[type="submit"] {
    padding: 0.75rem;
    background-color: #4B421B;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    font-size: 1rem;
    transition: background-color 0.2s;
    margin-top: 1rem;
    width: 100%;
    display: block;
}

.payment-form button[type="submit"]:hover,
.payment-modal button[type="submit"]:hover {
    background-color: #5d533b;
}

.split-payment {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.split-payment h4 {
    margin: 0 0 0.5rem 0;
    color: #333;
}

.split-users {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.split-user {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: #f8f9fa;
    border-radius: 4px;
}

.split-user input[type="number"] {
    width: 80px;
}

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

.payment-status-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.payment-status {
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.payment-status.unpaid {
    color: #dc3545;
}

.payment-status.paid {
    color: #28a745;
}

.existing-payment-info {
    background-color: #f8f9fa;
    border-radius: 4px;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid #e9ecef;
}

.existing-payment-info p {
    margin: 0.5rem 0;
    color: #495057;
}

.existing-payment-info p:first-child {
    margin-top: 0;
}

.existing-payment-info p:last-child {
    margin-bottom: 0;
}

.existing-payment-info strong {
    color: #212529;
}

.profile-name {
    position: relative;
}

.profile-name h1 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.profile-name .edit-btn {
    font-size: 1rem;
    color: #666;
    padding: 0.25rem;
    border-radius: 4px;
}

.profile-name .edit-btn:hover {
    color: #333;
    background-color: rgba(0, 0, 0, 0.05);
}

.placeholder-text {
    color: #666;
    font-style: italic;
}

.edit-form {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.edit-form input {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.edit-form input:focus {
    border-color: var(--primary);
    outline: none;
}

.edit-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.notification {
    position: fixed;
    top: 1rem;
    right: 1rem;
    padding: 1rem;
    border-radius: 4px;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 2;
    animation: slide-in 0.3s ease;
}

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

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

@keyframes slide-in {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.profile-email {
    color: #666;
    margin: 0.5rem 0;
}

.profile-member-since {
    color: #666;
    margin: 0;
}

/* Friends Section Styles */
.friends-section {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 2rem;
    margin: 2rem 0;
}

.friends-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.friends-header h2 {
    margin: 0;
    color: #333;
}

.add-friend-btn {
    background-color: var(--accent);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    transition: background-color 0.2s;
}

.add-friend-btn:hover {
    background-color: var(--support-2);
}

.friends-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
}

.tab-btn {
    background: none;
    border: none;
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    color: #666;
    font-weight: 500;
    position: relative;
}

.tab-btn.active {
    color: var(--primary);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--primary);
}

.friends-list {
    display: none;
}

.friends-list.active {
    display: block;
}

.friend-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #eee;
}

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

.friend-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.friend-info i {
    font-size: 2rem;
    color: #666;
}

.friend-details h3 {
    margin: 0;
    color: #333;
    font-size: 1rem;
}

.friend-details p {
    margin: 0.25rem 0 0;
    color: #666;
    font-size: 0.9rem;
}

.follow-btn, .unfollow-btn {
    background: none;
    border: 1px solid;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.follow-btn {
    border-color: var(--primary);
    color: var(--primary);
}

.follow-btn:hover {
    background-color: var(--primary);
    color: white;
}

.unfollow-btn {
    border-color: #dc3545;
    color: #dc3545;
}

.unfollow-btn:hover {
    background-color: #dc3545;
    color: white;
}

.search-form {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.search-form input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.search-form button {
    padding: 0.75rem 1.5rem;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.search-form button:hover {
    background-color: var(--support-2);
}

.search-result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 4px;
    margin-top: 1rem;
}

.no-results {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 1rem;
}

.no-friends {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 2rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    margin: 1rem 0;
}

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

.btn-explore:hover {
    background-color: #5d533b;
}

.btn-explore.leave {
    background-color: var(--primary);
}

.btn-explore.leave:hover {
    background-color: #5d533b;
    opacity: 0.9;
}

.btn-explore.shared {
    background-color: #28a745;
}

.btn-explore.shared:hover {
    background-color: #218838;
}

.btn-explore i {
    font-size: 16px;
}

.booking-options {
    grid-column: 1 / -1;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
    width: 100%;
}

.search-flights-btn {
    width: 100%;
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 12px 16px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.search-flights-btn:hover {
    background-color: var(--support-2);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.search-flights-btn i {
    font-size: 18px;
}

.booking-details {
    margin-top: 12px;
    background-color: #f8f9fa;
    border-radius: 6px;
    padding: 16px;
    display: none;
}

.booking-details:not(:empty) {
    display: block;
}

#flightSearchModal .modal-content {
    max-width: 90vw;
    width: 90vw;
    max-height: 90vh;
    overflow-y: auto;
}

/* Flight selection modal styles */
.route-info {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    text-align: center;
}

.flight-route {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.flight-date {
    font-size: 1rem;
    color: #666;
}

.flight-option {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    background: white;
    transition: all 0.2s ease;
}

.flight-option:hover {
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(83, 123, 113, 0.1);
}

.flight-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    justify-content: flex-end;
}

.select-btn, .book-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 80px;
}

.select-btn {
    background-color: var(--primary);
    color: white;
}

.select-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-1px);
}

.book-btn {
    background-color: #ff6b35;
    color: white;
}

.book-btn:hover {
    background-color: #e55a2b;
    transform: translateY(-1px);
}

.book-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

.book-btn:disabled:hover {
    background-color: #ccc;
    transform: none;
}

.flight-selected {
    border-color: var(--primary) !important;
    background-color: rgba(83, 123, 113, 0.05) !important;
}

.flight-selected::after {
    content: "✓ Flight Selected";
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background-color: var(--primary);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

.itinerary-book-btn {
    background-color: #ff6b35;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-left: 0.5rem;
}

.itinerary-book-btn:hover {
    background-color: #e55a2b;
    transform: translateY(-1px);
}

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

.flight-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.flight-time {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
}

.departure-time, .arrival-time {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
}

.departure-time {
    margin-bottom: 0.25rem;
}

.arrival-time {
    color: #666;
}

.flight-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.airline {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 1rem;
}

.flight-number {
    font-size: 0.9rem;
    color: #666;
}

.connections {
    font-size: 0.9rem;
    color: var(--primary);
    font-weight: 500;
}

.flight-duration {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
}

.total-time {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.day-info {
    font-size: 0.8rem;
    color: #666;
}

.flight-price {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
}

.price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
}

.flight-actions {
    display: flex;
    justify-content: flex-end;
}

.select-flight-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.select-flight-btn:hover {
    background: #4a6b63;
}

.loading {
    text-align: center;
    padding: 2rem;
    color: #666;
    font-style: italic;
}

/* Responsive design for flight options */
@media (max-width: 768px) {
    #flightSearchModal .modal-content {
        max-width: 95vw;
        width: 95vw;
        margin: 1rem;
    }
    
    .flight-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .flight-time, .flight-duration, .flight-price {
        min-width: auto;
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .flight-details {
        width: 100%;
    }
    
    .flight-actions {
        justify-content: center;
        margin-top: 1rem;
    }
    
    .select-flight-btn {
        width: 100%;
    }
}

.flight-search-details {
    padding: 1rem;
}

.route-info {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.route-info h3 {
    margin: 0 0 0.5rem 0;
    color: #333;
}

.flight-route, .flight-date {
    margin: 0.25rem 0;
    color: #666;
}

.loading-spinner {
    display: none;
    margin: 2rem auto;
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-spinner.hidden {
    display: none;
}

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

.flights-list {
    margin-top: 1rem;
}

.flight-option {
    padding: 1.5rem;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    background: white;
}

.flight-option:hover {
    background-color: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.flight-option.selected {
    border-color: var(--primary);
    background-color: #e3f2fd;
}

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

.flight-airline {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.flight-carrier {
    font-weight: 600;
    color: #333;
    font-size: 1.1rem;
}

.flight-class {
    font-size: 0.9rem;
    color: #666;
}

.flight-price {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
}

.price-amount {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary);
}

.price-currency {
    font-size: 0.9rem;
    color: #666;
}

.flight-details {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1rem;
    margin: 1rem 0;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.flight-time {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.time-label {
    font-size: 0.8rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.time-value {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    color: #333;
}

.flight-duration {
    display: flex;
    align-items: center;
    padding: 0 1rem;
    border-left: 1px dashed #e0e0e0;
    border-right: 1px dashed #e0e0e0;
}

.duration-value {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    font-size: 0.9rem;
}

.flight-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e0e0e0;
}

.book-flight-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: var(--primary);
    color: white;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.book-flight-btn:hover {
    background-color: var(--support-2);
    transform: translateY(-1px);
}

.book-flight-btn i {
    font-size: 0.9rem;
}

/* Share Modal Friends List Styles */
.friends-list-section {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 1.5rem;
}

.friends-list-section h3 {
    margin: 0 0 1rem;
    font-size: 1rem;
    color: #666;
}

.friends-list {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.friend-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s ease;
}

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

.friend-item:hover {
    background-color: #f8f9fa;
}

.friend-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.friend-info i {
    font-size: 2rem;
    color: #666;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.friend-details h3 {
    margin: 0;
    font-size: 0.9rem;
    color: #333;
    font-weight: 500;
}

.friend-details p {
    margin: 0.25rem 0 0;
    font-size: 0.8rem;
    color: #666;
}

.friend-item .share-btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    background-color: var(--accent);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background-color 0.2s ease;
}

.friend-item .share-btn:hover {
    background-color: #5d533b;
}

.friend-item .share-btn i {
    font-size: 0.9rem;
}

.no-friends {
    text-align: center;
    color: #666;
    padding: 2rem 1rem;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.no-friends i {
    font-size: 2rem;
    color: #ccc;
    margin-bottom: 1rem;
    display: block;
}

.no-friends p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

.error-message {
    text-align: center;
    color: #dc3545;
    padding: 1rem;
    background-color: #f8d7da;
    border-radius: 8px;
    margin: 1rem 0;
}

/* Profile page connection lists */
.connections-list {
    display: none;
    width: 100%;
    min-width: 320px;
}

.connections-list.active {
    display: block;
    width: 100%;
    min-width: 320px;
    margin-bottom: 2rem;
}

/* Share Modal Friends List - Always visible */
#shareModal .friends-list {
    display: block;
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 1rem;
}

#shareModal .friend-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s ease;
}

#shareModal .friend-item:last-child {
    border-bottom: none;
}

#shareModal .friend-item:hover {
    background-color: #f8f9fa;
}

#shareModal .friend-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

#shareModal .friend-info i {
    font-size: 2rem;
    color: #666;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

#shareModal .friend-details h3 {
    margin: 0;
    font-size: 0.9rem;
    color: #333;
    font-weight: 500;
}

#shareModal .friend-details p {
    margin: 0.25rem 0 0;
    font-size: 0.8rem;
    color: #666;
}

#shareModal .friend-item .share-btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background-color 0.2s ease;
}

#shareModal .friend-item .share-btn:hover {
    background-color: #5d533b;
}

#shareModal .friend-item .share-btn i {
    font-size: 0.9rem;
}

#shareModal .no-friends {
    text-align: center;
    color: #666;
    padding: 2rem 1rem;
    background-color: #f8f9fa;
    border-radius: 8px;
}

#shareModal .no-friends i {
    font-size: 2rem;
    color: #ccc;
    margin-bottom: 1rem;
    display: block;
}

#shareModal .no-friends p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

#shareModal .error-message {
    text-align: center;
    color: #dc3545;
    padding: 1rem;
    background-color: #f8d7da;
    border-radius: 8px;
    margin: 1rem 0;
}

/* Trip Builder Styles - Now using same styling as saved trip view */
.chat-message .message-text {
    white-space: pre-line;
    word-break: break-word;
} 

/* --- WAITLIST FORM STYLES --- */

.waitlist-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.waitlist-form input[type="text"],
.waitlist-form input[type="email"] {
    padding: 0.9rem;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 12px;
    font-size: 1.2rem;
    width: 100%;
    box-sizing: border-box;
    transition: all 0.2s;
    background: rgba(255,255,255,0.9);
}

.waitlist-form input[type="text"]:focus,
.waitlist-form input[type="email"]:focus {
    border-color: #F9A826;
    outline: none;
    background: rgba(255,255,255,1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.name-fields {
    display: flex;
    gap: 0.75rem;
    width: 100%;
}

.name-fields input {
    flex: 1;
}

.waitlist-form button {
    background-color: var(--accent);
    color: var(--neutral-dark);
    border: none;
    border-radius: 12px;
    padding: 0.9rem;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
    margin-top: 0.5rem;
    box-shadow: 0 2px 8px rgba(249, 168, 38, 0.2);
}

.waitlist-form button:hover {
    background: #4B421B;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(249, 168, 38, 0.3);
}

.waitlist-form button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(249, 168, 38, 0.2);
}

.waitlist-success, .waitlist-error {
    margin-top: 1rem;
    font-size: 1rem;
    padding: 0.75rem;
    border-radius: 8px;
    text-align: center;
}

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

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

/* Thank you message styles */
.thank-you-message {
    text-align: center;
    background: rgba(255,255,255,0.95);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin-top: 1rem;
}

.thank-you-message h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: 700;
    color: var(--primary);
}

.thank-you-message p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--neutral-dark);
    line-height: 1.6;
}



/* Responsive adjustments for waitlist form */
@media (max-width: 600px) {

    
    .name-fields {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .thank-you-message {
        margin: 1rem;
        padding: 1.5rem;
    }
}

/* --- WAITLIST MODAL STYLES --- */
.waitlist-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100vw;
    height: 100vh;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    box-sizing: border-box;
}

.waitlist-modal[style*="display: flex"] {
    display: flex !important;
}

.waitlist-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.25);
    backdrop-filter: blur(4px);
    z-index: 2000;
}

.waitlist-modal-content {
    position: relative;
    z-index: 2001;
    background: rgba(255,255,255,0.95);
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    border-radius: 24px;
    padding: 2.5rem 2.5rem 2rem 2.5rem;
    max-width: 700px;
    width: 90vw;
    max-height: 90vh;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: modal-pop-in 0.25s cubic-bezier(.4,1.4,.6,1) 1;
    overflow-x: hidden;
    overflow-y: auto;
    box-sizing: border-box;
}
@keyframes modal-pop-in {
    0% { transform: scale(0.95) translateY(30px); opacity: 0; }
    100% { transform: scale(1) translateY(0); opacity: 1; }
}
.waitlist-modal-close {
    position: absolute;
    top: 18px;
    right: 22px;
    background: none;
    border: none;
    font-size: 2rem;
    color: #888;
    cursor: pointer;
    z-index: 2001;
    transition: color 0.2s;
    padding: 0 8px;
    line-height: 1;
}
.waitlist-modal-close:hover {
    color: #F9A826;
}
.waitlist-modal .thank-you-message {
    width: 100%;
    max-width: 100%;
    margin: 0;
    background: none;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
    color: var(--neutral-dark);
}
.waitlist-modal .thank-you-message h2 {
    color: var(--primary);
    font-size: 2rem;
    margin-bottom: 1.2rem;
}
.waitlist-modal .thank-you-message p {
    color: var(--neutral-dark);
    font-size: 1.15rem;
    margin-bottom: 1.5rem;
}
@media (max-width: 600px) {
    .waitlist-modal-content {
        padding: 1.2rem 1rem 1.2rem 1rem;
        max-width: 95vw;
        max-height: 95vh;
    }
}


.quick-actions-section {
    background: var(--neutral-light);
    border-radius: 20px;
    box-shadow: 4px 8px 0 0 var(--secondary);
    margin: 0 auto 2.5rem auto;
    max-width: 700px;
    padding: 2rem 2rem 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    top: 20px;
    transition: box-shadow 0.18s;
}

.quick-actions-icons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    position: relative;
}
.quick-actions-icons::before {
    content: '';
    position: absolute;
    top: 35%;
    left: 8%;
    right: 8%;
    height: 6px;
    background: var(--primary);
    z-index: 0;
    border-radius: 2px;
}
.quick-action {
    position: relative;
    z-index: 1;
    background: none;
}
.quick-action .quick-action-icon {
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    width: 70px;
    height: 70px;
    font-size:2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.25rem auto;
    box-shadow: 0 2px 8px rgba(83,123,113,0.08);
    transition: background 0.2s, color 0.2s;
}
.quick-action.active-step .quick-action-icon,
.quick-action.active-step .quick-action-label {
    color: var(--accent);
}

.quick-action-label {
    color: var(--text-dark);
    font-size: 1rem;
    font-weight: 500;
    margin-top: 0.1rem;
    text-align: center;
}
.quick-actions-search-row {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    gap: 0.5rem;
    align-items: center;
}
.quick-actions-search {
    flex: 1;
    min-width: 200px;
    padding: 0.9rem 1.2rem;
    border: 2px solid var(--text-dark);
    border-radius: 10px;
    font-size: 1.1rem;
    color: var(--primary);
    background: var(--white);
    outline: none;
    transition: border-color 0.2s;
}
.quick-actions-search:focus {
    border-color: var(--accent);
}
.quick-actions-filters {
    display: flex;
    gap: 1.2rem;
    margin-top: 0.2rem;
    flex-wrap: wrap;
    justify-content: center;
}
.quick-action-pill {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--neutral-light);
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: 8px;
    padding: 0.4rem 1.1rem 0.4rem 0.9rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.18s, border-color 0.18s;
    box-shadow: 0 1px 4px rgba(83,123,113,0.06);
}
.quick-action-pill input[type="checkbox"] {
    accent-color: var(--primary);
    margin-right: 0.3rem;
}
.quick-action-pill:has(input[type="checkbox"]:checked) {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}
@media (max-width: 800px) {
    .quick-actions-section {
        max-width: 98vw;
        border-radius: 16px;
    }
    .quick-actions-icons {
        gap: 0.8rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    .quick-action .quick-action-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }
    .quick-action-label {
        font-size: 0.9rem;
    }
    .quick-actions-search {
        max-width: 98vw;
        min-width: 200px;
        flex: 1;
    }
}

@media (max-width: 768px) {
    .quick-actions-section {
        padding: 1.5rem 0.8rem 1.2rem 0.8rem;
        border-radius: 18px;
    }
    .quick-actions-icons {
        gap: 0.7rem;
    }
    .quick-action .quick-action-icon {
        width: 55px;
        height: 55px;
        font-size: 1.8rem;
    }
    .quick-action-label {
        font-size: 0.85rem;
    }
    .quick-actions-dates {
        gap: 1.2rem;
    }
    .quick-actions-destination {
        gap: 0.6rem;
    }
}
.quick-actions-enter-btn {
    background-color: var(--accent);
    color: var(--neutral-dark);
    border: 2px solid var(--accent);
    border-radius: 10px;
    padding: 0.9rem 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    margin-left: 0.5rem;
    cursor: pointer;
    transition: background 0.18s, color 0.18s, border-color 0.18s;
    box-shadow: 0 1px 4px rgba(83,123,113,0.06);
    outline: none;
    height: 48px;
    display: flex;
    align-items: center;
}
.quick-actions-enter-btn:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}
@media (max-width: 600px) {
    .quick-actions-section {
        padding: 1rem 0.3rem 0.8rem 0.3rem;
        border-radius: 14px;
    }
    .quick-actions-icons {
        gap: 0.6rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    .quick-action .quick-action-icon {
        width: 50px;
        height: 50px;
        font-size: 1.6rem;
    }
    .quick-action-label {
        font-size: 0.8rem;
        margin-top: 0.05rem;
    }
    .quick-actions-search-row {
        flex-direction: column;
        gap: 0.7rem;
        align-items: stretch;
    }
    .quick-actions-enter-btn {
        width: 100%;
        margin-left: 0;
        height: 44px;
    }
    .quick-actions-dates {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    .quick-actions-dates input[type="date"] {
        width: 100%;
        min-width: auto;
    }
    .quick-actions-destination {
        flex-direction: column;
        gap: 0.8rem;
        align-items: stretch;
    }
    .quick-actions-destination input[type="text"] {
        width: 100%;
        min-width: auto;
    }
}

@media (max-width: 400px) {
    .quick-actions-section {
        padding: 0.8rem 0.2rem 0.6rem 0.2rem;
        border-radius: 12px;
    }
    .quick-actions-icons {
        gap: 0.4rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    .quick-action .quick-action-icon {
        width: 45px;
        height: 45px;
        font-size: 1.4rem;
    }
    .quick-action-label {
        font-size: 0.75rem;
        margin-top: 0.05rem;
    }
    .quick-actions-filters {
        gap: 0.8rem;
        justify-content: center;
    }
    .quick-action-pill {
        font-size: 0.9rem;
        padding: 0.3rem 0.8rem 0.3rem 0.7rem;
    }
}

.suggested-trips-section {
    padding: 2.5rem 0 2rem 0;
    background: var(--white);
    text-align: center;
    max-width: 100vw;
    overflow-x: hidden;
}
.suggested-trips-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
}
.suggested-trips-carousel {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    padding: 0 2.5vw 1rem 2.5vw;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scroll-padding-left: 2.5vw;
}
.suggested-trip-card {
    background: var(--neutral-light);
    border-radius: 18px;
    box-shadow: 4px 8px 0 0 var(--secondary);
    min-width: 260px;
    max-width: 260px;
    flex: 0 0 260px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    scroll-snap-align: start;
    transition: box-shadow 0.18s;
    text-decoration: none !important;
}
.suggested-trip-card:hover {
    box-shadow: 8px 16px 0 0 var(--secondary);
}
.suggested-trip-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 14px 14px 0 0;
    margin-bottom: 1rem;
}
.suggested-trip-info {
    padding: 0 0.5rem 0 0.9rem;
}
.suggested-trip-title {
    color: var(--primary);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    line-height: 1.2;
}
.suggested-trip-desc {
    color: var(--text-dark);
    font-size: 1.05rem;
    opacity: 0.7;
    line-height: 1.3;
    text-align: left;
    padding-bottom: 1rem;
}
@media (max-width: 900px) {
    .suggested-trips-carousel {
        gap: 1.2rem;
        padding: 0 1vw 1rem 1vw;
    }
    .suggested-trip-card {
        min-width: 210px;
        max-width: 210px;
        flex: 0 0 210px;
    }
    .suggested-trip-img {
        height: 120px;
    }
}

/* --- EXPLORE PAGE STYLES --- */
.explore-content {
    padding: 2rem;
    max-width: 100%;
    min-width: 80%;
    margin: 0 auto;
}

.explore-section {
    margin-bottom: 3rem;
}

.explore-section:last-child {
    margin-bottom: 0;
}

.explore-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.explore-header h1 {
    margin: 0;
    color: #333;
    font-size: 2rem;
}

.explore-filters {
    display: flex;
    gap: 1rem;
}

.filter-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    background-color: #f8f9fa;
    color: #666;
    transition: all 0.2s ease;
}

.filter-btn:hover {
    background-color: #e9ecef;
}

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

.explore-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
}

/* Ensure explore grid cards maintain consistent sizing */
.explore-grid .trip-card {
    width: 100% !important;
    max-width: none !important;
}

.example-trips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* Override explore-grid in profile page to maintain consistent width */
.profile-sections .explore-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    width: 100%;
}

/* Ensure trip cards in profile have consistent width */
.profile-sections .explore-grid .trip-card {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    min-height: auto !important;
}

/* Explore page specific trip card styles */
.explore-grid .trip-card {
    position: relative;
    overflow: hidden;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    background-size: cover;
    background-position: center;
    color: #fff;
    text-decoration: none;
    transition: transform 0.18s, box-shadow 0.18s;
    cursor: pointer;
}
.explore-grid .trip-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.18) 40%, rgba(0,0,0,0.65) 100%);
    z-index: 1;
    pointer-events: none;
}
.explore-grid .trip-header {
    position: relative;
    z-index: 2;
    padding: 1.5rem 1.5rem 0 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.explore-grid .trip-title,
.explore-grid .trip-meta {
    color: #fff !important;
    text-shadow: 0 2px 8px rgba(0,0,0,0.25);
}
.explore-grid .trip-card-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 0 1.5rem 1.5rem 1.5rem;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}
.explore-grid .trip-stats,
.explore-grid .trip-description,
.explore-grid .trip-footer {
    color: #fff !important;
    text-shadow: 0 2px 8px rgba(0,0,0,0.25);
}
.explore-grid .trip-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.15);
    margin-top: 1rem;
}
.explore-grid .trip-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 8px 16px 0 0 var(--secondary);
}

/* Example trip cards specific styles */
.example-trips-grid .trip-card {
    position: relative;
    overflow: hidden;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    background-size: cover;
    background-position: center;
    color: #fff;
    text-decoration: none;
    transition: transform 0.18s, box-shadow 0.18s;
    cursor: pointer;
}

.example-trips-grid .trip-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.18) 40%, rgba(0,0,0,0.65) 100%);
    z-index: 1;
    pointer-events: none;
}

.example-trips-grid .trip-card:hover {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Additional specificity for example trip cards */
.example-trip-card {
    margin-bottom: 0 !important;
}

/* Ensure main explore grid is not affected by example trip styles */
.explore-grid .trip-card {
    margin-bottom: 0 !important;
}

.trip-cover {
    width: 100%;
    height: 300px;
    position: relative;
    overflow: hidden;
}

.trip-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.trip-cover::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.7));
}

.trip-info {
    padding: 2rem;
}

/* Explore page specific trip header */
.explore-grid .trip-header {
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.trip-title {
    font-size: 1.5rem;
    color: #333;
    margin: 0;
    flex: 1;
}

.trip-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #666;
    font-size: 0.9rem;
}

.trip-creator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.trip-creator i {
    font-size: 1.2rem;
}

.trip-stats {
    display: flex;
    gap: 1rem;
    color: #666;
    font-size: 0.9rem;
}

.trip-stat {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.trip-stat i {
    color: var(--white);
}

.trip-description {
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.trip-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.view-trip-btn {
    padding: 8px 16px;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 14px;
    transition: background-color 0.2s ease;
}

.view-trip-btn:hover {
    background-color: var(--primary-darker);
}

.btn-warning {
    padding: 8px 16px;
    background-color: #ffc107;
    color: #000;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background-color 0.2s ease;
}

.btn-warning:hover {
    background-color: #ffb300;
}

.btn-warning i {
    font-size: 12px;
}

/* --- TRIP VIEW PAGE STYLES --- */
.trip-view-header {
    padding: 2rem;
    background-color: #f8f9fa;
    border-radius: 12px;
    margin: 0 2rem 2rem;
    color: var(--white);
}

.trip-title-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.trip-view-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    padding: 1rem 0;
    margin-top: 1rem;
    flex-wrap: nowrap;
}

.trip-view-actions .btn,
.trip-view-actions .btn-explore,
.trip-view-actions .btn-danger {
    min-width: 120px;
    justify-content: center;
    white-space: nowrap;
    text-align: center;
}

.trip-view-creator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--white);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.trip-view-creator i {
    font-size: 1.2rem;
}

.trip-view-content {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    padding: 0 2rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
    width: 95%;
    min-height: 0; /* Allow content to shrink if needed */
    overflow-x: hidden; /* Prevent horizontal overflow */
}

.trip-view-map-container {
    position: relative;
    min-height: 600px; /* Changed from fixed height to min-height */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    flex: 1;
    min-width: 0;
}

.trip-view-map-container #map {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    min-height: 600px; /* Ensure minimum height */
}

.trip-view-itinerary-container {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow-y: auto;
    flex: 1;
    min-width: 0;
    min-height: 600px; /* Ensure minimum height */
}

.trip-view-itinerary-container h2 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: #333;
}

.trip-view-itinerary-item {
    padding: 1rem;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 1rem;
    transition: all 0.2s ease;
}

.trip-view-itinerary-item:hover {
    background-color: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
#save-trip-btn {
    .btn {
        padding: 8px 16px;
        border: none;
        border-radius: 4px;
        cursor: pointer;
        font-size: 14px;
        display: flex;
        align-items: center;
        gap: 6px;
        color: white;
        transition: background-color 0.2s ease;
    }
}

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

.btn:hover {
    background-color: var(--primary-darker);
}

.btn i {
    font-size: 16px;
}

.btn-danger {
    background-color: #dc3545;
    margin-left: auto;
}

.btn-danger:hover {
    background-color: #c82333;
}

.btn-success {
    background-color: #28a745;
}

.btn-success:hover {
    background-color: #218838;
}

/* Export Modal Styles */
.export-modal {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    z-index: 100;
    min-width: 200px;
    margin-top: 0.5rem;
}

.export-modal.active {
    display: block;
}

.export-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    color: #333;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.export-option:hover {
    background-color: #f8f9fa;
}

.export-option i {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.btn-container {
    position: relative;
}

/* --- EXPLORE TRIP PAGE STYLES --- */
.explore-trip-header {
    padding: 2rem;
    background-color: #f8f9fa;
    margin: 0 0 2rem 0;
    border-radius: 0;
}

.explore-trip-title-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.explore-trip-creator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.explore-trip-creator i {
    font-size: 1.2rem;
}

.explore-trip-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 0;
    width: 100%;
    min-height: 0; /* Allow content to shrink if needed */
    overflow-x: hidden; /* Prevent horizontal overflow */
}

.explore-trip-map-container {
    position: relative;
    min-height: 500px; /* Changed from fixed height to min-height */
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-radius: 0;
}

.explore-trip-itinerary-container {
    background: white;
    padding: 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-radius: 0;
}

.explore-trip-itinerary-container h2 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: #333;
    font-size: 1.5rem;
}

.explore-itinerary-date {
    margin: 2rem 0 1rem;
}

.explore-itinerary-date:first-child {
    margin-top: 0;
}

.explore-itinerary-date h3 {
    color: #333;
    font-size: 1.2rem;
    border-bottom: 2px solid #eee;
    padding-bottom: 0.5rem;
}

.explore-itinerary-item {
    padding: 1.5rem;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 1rem;
    transition: all 0.2s ease;
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 1rem 2rem;
}

.explore-itinerary-item:hover {
    background-color: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.item-time {
    grid-column: 1;
    grid-row: 1;
    color: #555;
    font-weight: 500;
    font-size: 0.9rem;
}

.item-duration {
    grid-column: 1;
    grid-row: 2;
    color: #888;
    font-size: 0.85rem;
}

.item-type {
    grid-column: 2;
    grid-row: 1;
    color: #333;
    font-weight: 500;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.item-location {
    grid-column: 2;
    grid-row: 2;
    color: #666;
    font-size: 1rem;
}

.item-notes {
    grid-column: 1 / -1;
    grid-row: 3;
    color: #666;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid #eee;
    font-style: italic;
}

.trip-view-map-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1;
    min-width: 0;
}

.back-to-explore {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background-color: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    transition: background-color 0.2s ease;
    font-weight: 500;
    align-self: flex-start;
    margin: 0;
}

.back-to-explore:hover {
    background-color: var(--primary-darker);
}

/* --- TRIPS PAGE SPECIFIC STYLES --- */
.trips-sections {
    margin-top: 2rem;
}

.trip-meta {
    margin-bottom: 1rem;
}


.shared-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 1rem;
    padding: 2px 8px;
    background-color: var(--primary);
    color: white;
    border-radius: 12px;
    font-size: 0.8rem;
}

.shared-badge i {
    color: white;
    font-size: 0.8rem;
}

/* Responsive styles for explore pages */
@media (max-width: 768px) {
    .explore-content {
        padding: 1rem;
    }

    .explore-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .explore-filters {
        justify-content: center;
        flex-wrap: wrap;
    }

    /* Trip view responsive styles */
    .trip-view-toggle {
        display: flex;
    }

    .trip-view-content {
        flex-direction: column;
        padding: 0 1rem 1rem;
        gap: 1rem;
        width: 95%;
    }

    .trip-view-map-section {
        flex-direction: column;
        gap: 0.75rem;
    }

    .trip-view-map-container {
        height: 400px;
        flex: 1;
        min-width: 0;
    }

    .back-to-explore {
        align-self: stretch;
        justify-content: center;
    }

    .trip-view-itinerary-container {
        max-height: none;
        overflow-y: visible;
        flex: 1;
        min-width: 0;
    }

    .trip-view-header {
        margin: 0 1rem 1rem;
        padding: 1.5rem;
    }

    .explore-itinerary-item {
        grid-template-columns: 1fr;
        padding: 1rem;
    }

    .item-time,
    .item-duration,
    .item-type,
    .item-location {
        grid-column: 1;
    }

    .item-type {
        grid-row: 1;
    }

    .item-location {
        grid-row: 2;
    }
}

/* Tablet responsive styles */
@media (max-width: 1024px) and (min-width: 769px) {
    .trip-view-content {
        max-width: 95%;
        padding: 0 1rem 2rem;
        width: 95%;
    }

    .trip-view-map-container {
        height: 500px;
        flex: 1;
        min-width: 0;
    }

    .trip-view-itinerary-container {
        flex: 1;
        min-width: 0;
    }
}

/* --- LOGIN PAGE STYLES --- */
.login-error-message {
    color: red;
    margin-top: 20px;
    display: none;
    text-align: center;
    padding: 10px;
    background-color: #fff3f3;
    border: 1px solid #ffcdd2;
    border-radius: 4px;
}

.login-error-message.visible {
    display: block;
}

/* --- INLINE STYLE REPLACEMENTS --- */
.hidden {
    display: none !important;
}

.other-text-input {
    display: none;
    margin-left: 2rem;
    margin-top: 0.5rem;
}

.other-text-input.visible {
    display: block;
}

.trip-header .btn,
.trip-header .btn-danger {
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: 48px;
    padding-left: 0.75em;
    padding-right: 0.75em;
    justify-content: center;
}

/* Mobile Toggle Styles */
.trip-view-toggle {
    display: none;
    justify-content: center;
    gap: 1rem;
    padding: 1rem 2rem;
    background: white;
    border-bottom: 1px solid #eee;
    margin-bottom: 1rem;
}

.toggle-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--support-2);
    color: var(--white);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: box-shadow 0.18s;
    min-width: 100px;
    justify-content: center;
    box-shadow: 4px 8px 0 0 var(--secondary);
}

.toggle-btn:hover {
    background: var(--primary);
    color: var(--accent);
    box-shadow: 8px 16px 0 0 var(--secondary);
}

.toggle-btn.active {
    background: var(--neutral-light);
    color: var(--accent);
    box-shadow: 4px 8px 0 0 var(--secondary);
}

.toggle-btn:focus {
    outline: none;
    box-shadow: 4px 8px 0 0 var(--secondary);
}

.toggle-btn i {
    font-size: 1.1rem;
}

/* Responsive styles for trip view toggle and layout */
@media (max-width: 1024px) {
    .trip-view-toggle {
        display: flex;
    }
    .trip-view-content {
        flex-direction: column;
        padding: 0 1rem 1rem;
        gap: 1rem;
        width: 95%;
    }
    .trip-view-map-container,
    .trip-view-itinerary-container {
        width: 100%;
        flex: 1;
        min-width: 0;
    }
    .trip-view-map-container {
        height: 400px;
    }
    .trip-view-itinerary-container {
        max-height: none;
        overflow-y: visible;
    }
}

@media (min-width: 1025px) {
    .trip-view-toggle {
        display: none;
    }
    .trip-view-content {
        flex-direction: row;
        gap: 2rem;
        padding: 0 2rem 2rem;
    }
    .trip-view-map-container,
    .trip-view-itinerary-container {
        flex: 1;
        min-width: 0;
        max-width: none;
    }
    .trip-view-map-container {
        height: 600px;
    }
    .trip-view-itinerary-container {
        overflow-y: auto;
    }
}

.explore-trip-header {
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.35);
}
.explore-trip-header h1,
.explore-trip-header .explore-trip-creator,
.explore-trip-header .trip-date,
.explore-trip-header .trip-description {
    color: #fff !important;
    text-shadow: 0 2px 8px rgba(0,0,0,0.35);
}

/* Explore trip itinerary styles */
.trip-view-itinerary-container {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    padding: 2rem 1.5rem;
    margin-bottom: 2rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}
.itinerary-date {
    margin-bottom: 2.5rem;
}
.itinerary-date h3 {
    color: #222;
    font-size: 1.3rem;
    margin-bottom: 1.2rem;
    font-weight: 700;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
}
.itinerary-item {
    background: #f8f9fa;
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    padding: 1.2rem 1.5rem;
    margin-bottom: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    border-left: 4px solid var(--primary, #537B71);
}
.item-time {
    font-weight: 600;
    color: var(--primary, #537B71);
    font-size: 1.1rem;
}
.item-type {
    font-weight: 700;
    font-size: 1.1rem;
    color: #222;
    margin-bottom: 0.2rem;
}
.item-location {
    color: #444;
    font-size: 1rem;
    margin-bottom: 0.1rem;
}
.item-duration {
    color: #888;
    font-size: 0.95rem;
}
.item-notes {
    color: #666;
    font-size: 0.98rem;
    font-style: italic;
    margin-top: 0.2rem;
}
@media (max-width: 700px) {
    .trip-view-itinerary-container {
        padding: 1rem 0.3rem;
    }
    .itinerary-item {
        padding: 1rem 0.7rem;
        font-size: 0.98rem;
    }
    .itinerary-date h3 {
        font-size: 1.1rem;
        padding-bottom: 0.3rem;
    }
}

/* Highlight the current step */
.quick-action.active-step {
    border: none;
    background: none;
    box-shadow: none;
}
.quick-action.active-step .quick-action-icon,
.quick-action.active-step .quick-action-label {
    color: var(--accent);
}


/* Arrow between steps */
.quick-action-arrow {
    display: flex;
    align-items: center;
    margin: 0 8px;
    color: var(--primary);
    font-size: 1.5rem;
    opacity: 0.7;
    user-select: none;
}

.quick-actions-icons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2.7rem;
}

/* Mobile responsiveness for this instance of quick-actions-icons */
@media (max-width: 800px) {
    .quick-actions-icons {
        gap: 1.8rem;
    }
}

@media (max-width: 768px) {
    .quick-actions-icons {
        gap: 1.5rem;
    }
}

@media (max-width: 600px) {
    .quick-actions-icons {
        gap: 1.2rem;
    }
}

@media (max-width: 400px) {
    .quick-actions-icons {
        gap: 0.8rem;
    }
}



#quick-actions-filters-label {
    text-align: left !important;
    margin: 0.7rem 0 0.2rem 0 !important;
    font-size: 1rem !important;
    color: var(--text-dark) !important;
    font-weight: 500 !important;
    width: 100% !important;
}

.quick-actions-dates input[type="date"] {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-size: 1.1rem !important;
    color: var(--neutral-dark) !important;
}

.profile-tab-section {
  display: none !important;
  width: 100%;
}
.profile-tab-section.active {
  display: block !important;
  width: 100%;
}

/* Ensure all content inside inactive profile tab sections is hidden */
.profile-tab-section:not(.active) * {
  display: none !important;
}
.stat-card.active {
    box-shadow: 8px 16px 0 0 var(--secondary);
}

.follower-card, .following-card {
  display: flex;
  align-items: center;
  background: var(--neutral-light);
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(218, 79, 61, 0.08);
  padding: 2rem;
  margin-bottom: 2rem;
  transition: box-shadow 0.18s, transform 0.18s;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}
.follower-card:hover, .following-card:hover {
  box-shadow: 0 8px 24px 0 var(--secondary);
  transform: translateY(-2px) scale(1.02);
}
.connection-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
  margin-right: 1.2rem;
  font-size: 2.5rem;
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}
.connection-details h3 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--primary);
  font-weight: 600;
}
.connection-details p {
  margin: 0.2rem 0 0 0;
  font-size: 0.95rem;
  color: #666;
}
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.spinner {
    border: 6px solid #f3f3f3;
    border-top: 6px solid #3498db;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

.loading-text {
    margin-top: 15px;
    font-size: 18px;
    color: #555;
}

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

.chat-input-container {
    display: none;
    padding: 1rem;
    gap: 0.5rem;
    align-items: center;
}

#message-input {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s ease;
}

#message-input:focus {
    border-color: #4285f4;
}

#send-button {
    padding: 0.75rem 1.5rem;
    background: #4285f4;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

#send-button:hover {
    background: #3367d6;
}

#send-button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Chat Input Section Styles */
.chat-input-section {
    background: #fff;
    border-bottom: 1px solid #eee;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.chat-input-container {
    display: none;
    gap: 0.5rem;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
}

/* Profile page specific styles */
.loading {
    text-align: center;
    padding: 2rem;
    color: #666;
    font-size: 1.1rem;
}

.error {
    text-align: center;
    padding: 2rem;
    color: #e74c3c;
    font-size: 1.1rem;
    background: #fdf2f2;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    margin: 1rem 0;
}

.no-trips-section {
    text-align: center;
    padding: 3rem 2rem;
    background: #f8f9fa;
    border-radius: 12px;
    margin: 2rem 0;
}

.no-trips-title {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.no-trips-subtitle {
    font-size: 1rem;
    color: #666;
    margin: 0;
}

#message-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s ease;
    background: #fff;
}

#message-input:focus {
    border-color: #4285f4;
    box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.1);
}

#send-button {
    padding: 0.75rem 1.5rem;
    background: #4285f4;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

#send-button:hover {
    background: #3367d6;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(66, 133, 244, 0.3);
}

#send-button:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}



.trip-view-header h1 {
    margin: 0 0 1rem 0;
    font-size: 2.5rem;
    font-weight: 700;
}

.trip-view-creator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.trip-view-creator i {
    color: #F9A826;
}

.trip-description {
    margin: 0 0 1rem 0;
    font-size: 1.2rem;
    opacity: 0.9;
}

.trip-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    opacity: 0.8;
}

/* Ensure the trip view content uses the same styling as saved trips */
.trip-view-content {
    display: flex;
    height: calc(100vh - 300px); /* Adjust for header, chat input, and toggle */
    background: #fff;
    width: 100%;
}

.trip-view-map-container {
    flex: 1;
    position: relative;
    background: #f5f5f5;
}

.trip-view-map-container #map {
    width: 100% !important;
    height: 100% !important;
    border-radius: 0;
}

.trip-view-itinerary-container {
    width: 400px;
    background: #fff;
    border-left: 1px solid #eee;
    overflow-y: auto;
    padding: 1.5rem;
}

.trip-view-itinerary-container h2 {
    margin: 0 0 1.5rem 0;
    font-size: 1.5rem;
    color: #333;
    border-bottom: 2px solid #4285f4;
    padding-bottom: 0.5rem;
}

/* Responsive design */
@media (max-width: 1024px) {
    .trip-view-content {
        flex-direction: column;
        height: auto;
    }
    
    .trip-view-map-container {
        height: 400px;
    }
    
    .trip-view-itinerary-container {
        width: 100%;
        border-left: none;
        border-top: 1px solid #eee;
    }
}

@media (max-width: 768px) {
    .trip-view-header h1 {
        font-size: 2rem;
    }
    
    .trip-view-header {
        padding: 1.5rem 0;
    }
    
    .trip-view-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }
    
    .trip-view-actions .btn,
    .trip-view-actions .btn-explore,
    .trip-view-actions .btn-danger {
        min-width: auto;
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .trip-view-actions {
        flex-wrap: nowrap;
        gap: 0.75rem;
    }
    
    .trip-view-actions .btn,
    .trip-view-actions .btn-explore,
    .trip-view-actions .btn-danger {
        min-width: 140px;
        flex: 1;
    }
    
    .chat-input-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    #send-button {
        width: 100%;
    }
}

/* --- PROFILE EDIT PAGE STYLES --- */
.edit-profile-card {
    background: var(--white);
    border-radius: 18px;
    box-shadow: 0 2px 12px rgba(83,123,113,0.07);
    padding: 2.5rem 2.5rem 2rem 2.5rem;
    max-width: 650px;
    width: 100%;
    margin: 2rem auto;
    position: relative;
}

/* Form field styling */
.edit-input,
.edit-profile-card input[type="text"],
.edit-profile-card input[type="email"],
.edit-profile-card input[type="date"],
.edit-profile-card input[type="url"],
.edit-profile-card select,
.edit-profile-card textarea {
    width: 100% !important;
    padding: 1rem 1.2rem !important;
    border: 1.5px solid #e0e0e0 !important;
    border-radius: 12px !important;
    background: rgba(255,255,255,0.85) !important;
    font-size: 1.05rem !important;
    color: var(--neutral-dark) !important;
    font-family: inherit !important;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s !important;
    margin-top: 0.5rem !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04) !important;
    box-sizing: border-box !important;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.edit-input:focus,
.edit-profile-card input[type="text"]:focus,
.edit-profile-card input[type="email"]:focus,
.edit-profile-card input[type="date"]:focus,
.edit-profile-card input[type="url"]:focus,
.edit-profile-card select:focus,
.edit-profile-card textarea:focus {
    border-color: #F9A826 !important;
    outline: none !important;
    background: #fff !important;
    box-shadow: 0 4px 16px rgba(249,168,38,0.08) !important;
}

.edit-input::placeholder,
.edit-profile-card input::placeholder,
.edit-profile-card textarea::placeholder {
    color: #999 !important;
    font-style: italic !important;
}

/* Label styling */
.edit-profile-card label {
    font-weight: 600 !important;
    color: var(--neutral-dark) !important;
    font-size: 1rem !important;
    margin-bottom: 0.3rem !important;
    display: block !important;
}

/* Profile section styling */
.profile-section {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 1.5rem !important;
    margin-bottom: 1rem !important;
}

.profile-section > div {
    background: var(--white) !important;
    padding: 1.2rem 1.5rem !important;
    border-radius: 12px !important;
    border: 1px solid #e0e0e0 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04) !important;
    transition: box-shadow 0.2s, transform 0.2s !important;
    display: block !important;
}

.profile-section > div:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08) !important;
    transform: translateY(-1px) !important;
}

/* Section headers */
.edit-profile-card h2 {
    color: var(--primary) !important;
    font-size: 1.4rem !important;
    font-weight: 700 !important;
    margin-bottom: 1.5rem !important;
    margin-top: 2rem !important;
    padding-bottom: 0.5rem !important;
    border-bottom: 2px solid var(--accent) !important;
    display: inline-block !important;
}

/* Social links section */
.social-links-section {
    grid-template-columns: 1fr 1fr 1fr !important;
}


/* Responsive design */
@media (max-width: 700px) {
    .edit-profile-card {
        padding: 1.2rem 0.5rem 1rem 0.5rem !important;
    }
    .profile-header {
        flex-direction: column !important;
        gap: 1.2rem !important;
        align-items: center !important;
    }
    .profile-section {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    .profile-section > div {
        padding: 1rem 1.2rem !important;
    }
    .social-links-section {
        grid-template-columns: 1fr !important;
    }
}

/* Responsive adjustments for map containers */
@media (max-width: 768px) {
    .map-section {
        min-height: 35vh; /* Smaller minimum height on mobile */
    }
    
    .map-container {
        min-height: 300px; /* Smaller minimum height on mobile */
    }
    
    .trip-view-map-container {
        min-height: 400px; /* Smaller minimum height on mobile */
    }
    
    .trip-view-itinerary-container {
        min-height: 400px; /* Smaller minimum height on mobile */
        max-height: none; /* Allow full height on mobile */
        overflow-y: visible;
    }
    
    .explore-trip-map-container {
        min-height: 350px; /* Smaller minimum height on mobile */
    }
}

@media (max-width: 480px) {
    .map-section {
        min-height: 30vh; /* Even smaller minimum height on small mobile */
    }
    
    .map-container {
        min-height: 250px; /* Even smaller minimum height on small mobile */
    }
    
    .trip-view-map-container {
        min-height: 300px; /* Even smaller minimum height on small mobile */
    }
    
    .trip-view-itinerary-container {
        min-height: 300px; /* Even smaller minimum height on small mobile */
    }
    
    .explore-trip-map-container {
        min-height: 250px; /* Even smaller minimum height on small mobile */
    }
}
