@charset "utf-8";
/* CSS Document */
/* Root variables */
:root {
    --primary-color: #1a73e8;
    --secondary-color: #34a853;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --simbrief-color: #5f6368;
    --background-color: rgba(248, 249, 250, 0.95); /* Made semi-transparent */
    --card-background: rgba(255, 255, 255, 0.95); /* Made semi-transparent */
    --text-primary: #202124;
    --text-secondary: #5f6368;
    --border-color: #e0e0e0;
}

/* Base styles with background image */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin: 0;
    padding: 20px;
    min-width: 100vw;
    overflow-x: hidden;
    line-height: 1.6;
    color: var(--text-primary);
    
    /* Background image settings */
    background-image: url('https://freeimghost.net/images/2025/06/07/night-illumination-of-flight-deck-2025-03-08-16-46-36-utcadcf7e29ec8f257a.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
}

/* Alternative: If you want a subtle overlay over the background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1); /* Light overlay */
    z-index: -1;
    pointer-events: none;
}

/* Header styles */
.header {
    text-align: center;
    margin: 0 -5px 5px;
    padding: 5px 5px;
    color: white;
    border-radius: 0;
    width: 100vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px); /* Adds glass effect */
}

.header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

/* Form and buttons */
.flight-form, .results-card {
    margin: 0 auto 30px;
    max-width: 1400px;
    width: calc(100% - 40px);
}

form {
    text-align: center;
    margin-bottom: 30px;
}

input[type="text"] {
    padding: 14px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s;
    background: var(--card-background);
    backdrop-filter: blur(5px);
    width: 50%;
    max-width: 400px;
}

input[type="text"]:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(26,115,232,0.2);
    outline: none;
}

button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    backdrop-filter: blur(5px);
    cursor: pointer;
}

button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Detail items and groups with enhanced transparency */
.grid-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    width: calc(100% - 40px);
    max-width: 1400px;
    margin: 0 auto 30px;
}

.detail-group {
    flex: 1;
    min-width: 250px;
    padding: 15px;
    background: var(--card-background);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px); /* Glass effect */
    margin-bottom: 15px;
}

.detail-group:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.detail-item {
    margin-bottom: 10px;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.detail-label {
    font-weight: bold;
    color: var(--primary-color);
}

.detail-value {
    color: var(--secondary-color);
}

.gate-input {
    width: 100px;
    padding: 4px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    color: var(--secondary-color);
    background: rgba(255, 255, 255, 0.9);
}

.section-header {
    cursor: pointer;
    padding: 5px;
    border-radius: 6px;
    transition: background-color 0.2s;
}

.section-header:hover {
    background-color: rgba(240, 244, 248, 0.5);
}

.section-content {
    max-height: 1000px;
    opacity: 1;
    transition: all 0.3s ease;
    overflow: hidden;
}

.section-content.collapsed {
    max-height: 0;
    opacity: 0;
    margin-top: 0;
}

/* Styles for the collapse icon */
.collapse-icon {
    transition: transform 0.3s ease; /* Smooth transition for rotation */
    margin-right: 8px; /* Keep spacing */
    color: var(--primary-color); /* Keep color */
    transform: rotate(0deg); /* Ensure it points down when open (default) */
}

/* When the section is collapsed, rotate the icon to point right */
.collapse-icon.collapsed {
    transform: rotate(-90deg); /* This will make a 'down' arrow point 'right' */
}

/* Ensure the section content itself collapses visually */
.section-content.collapsed {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    padding-top: 0;
    padding-bottom: 0;
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out, padding 0.3s ease-out; /* Smooth collapse */
}

/* Route display */

.full-width-route h3 {
    margin-bottom: 5px;
}
.full-width-route {
    width: 100%;
    padding: 15px;
    background: var(--card-background);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-top: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
}

.route-textarea {
    text-align: left;
    white-space: pre-wrap;
    word-break: break-word;
    width: 100%;
    font-family: monospace;
    font-size: 18px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px;
    min-height: 120px;
    resize: vertical;
    background: rgba(240, 244, 248, 0.8);
    color: #333;
    box-sizing: border-box;
    margin-bottom: 10px;
    line-height: 1.5;
}

.route-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.route-action-btn {
    padding: 8px 16px;
    width: auto;
    margin: 0;
}

#saveRouteBtn {
    background-color: var(--success-color);
}

#revertRouteBtn {
    background-color: var(--warning-color);
    color: var(--text-primary);
}


.full-width-route.detail-group {
    text-align: left;
    align-items: flex-start !important;
}

/* Weather information */
.weather-container {
    display: flex;
    gap: 15px;
    justify-content: space-between;
    width: calc(100% - 40px);
    max-width: 1400px;
    margin: 15px auto;
}

.weather-box {
    flex: 1;
    min-width: 300px;
    background: var(--card-background);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
}

.weather-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 8px;
}

.weather-title {
    font-weight: bold;
    font-size: 1.1em;
    color: var(--primary-color);
    margin: 0;
}

.weather-icao {
    font-weight: bold;
    color: var(--secondary-color);
}

.metar-text {
    font-family: 'Monaco', 'Consolas', monospace;
    white-space: pre-wrap;
    background: rgba(240, 244, 248, 0.8);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e1e4e8;
    font-size: 14px;
    color: #333;
    margin-top: 10px;
    line-height: 1.6;
}

.weather-loading {
    font-style: italic;
    color: #666;
    text-align: center;
    padding: 15px;
}

.weather-timestamp {
    font-size: 0.8em;
    color: #666;
    text-align: right;
    margin-top: 8px;
}

.weather-error {
    color: var(--danger-color);
    text-align: center;
    padding: 10px;
    background: rgba(253, 226, 226, 0.9);
    border-radius: 4px;
    font-size: 0.9em;
    margin-top: 10px;
}

/* Clearance section */
.clearance-section {
    width: calc(100% - 40px);
    max-width: 1400px;
    margin: 20px auto;
    padding: 20px;
    background: var(--card-background);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
}

.clearance-header {
    font-size: 1.2em;
    color: var(--primary-color);
    margin-bottom: 15px;
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 8px;
}

.clearance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.clearance-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.clearance-item-full-width {
    grid-column: 1 / -1;
}

.clearance-item-full-width .clearance-input {
    flex-grow: 1;
    max-width: none;
}

.climb-maintain-container {
    display: flex;
    align-items: center;
    gap: 5px;
}

.clearance-input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    width: 100%;
    max-width: 200px;
    background: rgba(255, 255, 255, 0.9);
}

.divider {
    color: var(--primary-color);
    font-weight: bold;
}

/* Notes and CRAFT modals */
.notes-overlay, .craft-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.notes-modal, .craft-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90%;
    background: rgba(255, 255, 255, 0.98);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(15px);
    border: 1px solid var(--border-color);
}

/* Specific rule for the clearance section inside the CRAFT modal */
.craft-modal .clearance-section {
    width: 100%;
    margin: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
    border: none;
    backdrop-filter: none;
}

/* Set the CRAFT modal grid to a single column */
.craft-modal .clearance-grid {
    grid-template-columns: 1fr;
}

/* Style the inputs within the CRAFT modal */
.craft-modal .clearance-item .clearance-input {
    flex-grow: 1;
    max-width: none;
}

/* Specifically size the 'CRAFT' input fields */
#craftClearanceLimit {
    max-width: 50px !important;
    flex-grow: 0 !important;
}

#craftFrequency,
#craftTransponder,
#craftAltitude {
    max-width: 150px !important;
    flex-grow: 0 !important;
}

.destination-name {
    margin-left: 10px;
    font-weight: 500;
    color: var(--text-secondary);
}

.notes-modal {
    width: 480px;
    min-height: 400px;
}

.craft-modal {
    width: 600px;
}

.notes-content {
    flex: 1;
    margin: 10px 0;
    padding-bottom: 15px;
}

#notesText {
    width: calc(100% - 20px);
    height: calc(100% - 10px);
    min-height: 250px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: none;
    font-family: inherit;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.9);
}

.notes-buttons {
    text-align: right;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

/* Error message */
.error-message {
    background: rgba(253, 226, 226, 0.95);
    color: var(--danger-color);
    padding: 15px;
    border-radius: 6px;
    margin-top: 20px;
    text-align: center;
    font-weight: bold;
    backdrop-filter: blur(5px);
}

/* Frequency Panel Styles */
.frequency-panel {
    background: var(--card-background);
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
    backdrop-filter: blur(10px);
}

.frequency-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    cursor: pointer;
    padding: 5px;
    border-radius: 6px;
    transition: background-color 0.2s;
}

.frequency-header:hover {
    background-color: rgba(240, 244, 248, 0.5);
}

.frequency-header h3 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}


.collapse-icon {
    transition: transform 0.3s ease;
    font-size: 0.8em;
}

.collapse-icon.collapsed {
    transform: rotate(-90deg);
}

.frequency-content {
    max-height: 1000px;
    opacity: 1;
    transition: all 0.3s ease;
    margin-top: 15px;
}

.frequency-content.collapsed {
    max-height: 0;
    opacity: 0;
    margin-top: 0;
    overflow: hidden;
}

.frequency-section {
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(240, 244, 248, 0.6);
    border-radius: 8px;
}

.frequency-subheader {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.frequency-subheader h4 {
    margin: 0;
    color: var(--primary-color);
}

.frequency-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}

.freq-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px;
}

.freq-input {
    width: 100px;
    padding: 5px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    text-align: center;
    background: rgba(255, 255, 255, 0.9);
}

.save-airport-freq, .toggle-saved-freq {
    padding: 5px 10px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.save-airport-freq:hover, .toggle-saved-freq:hover {
    background: var(--secondary-color);
}

.saved-frequencies-panel {
    margin-top: 15px;
    padding: 15px;
    background: rgba(240, 244, 248, 0.6);
    border-radius: 8px;
}

/* Master Collapse Header */
.master-collapse-header {
    cursor: pointer;
    padding: 10px 15px;
    margin: 15px auto;
    max-width: 1400px;
    width: calc(100% - 40px);
    background: rgba(240, 244, 248, 0.6);
    border-radius: 8px;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.master-collapse-header:hover {
    background-color: rgba(240, 244, 248, 0.9);
}

.master-collapse-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Dropdown Button */
.dropbtn {
    /* Inherits general button styles */
}

/* The container <div> - needed to position the dropdown content */
.dropdown {
    position: relative;
    display: inline-block;
}

/* Dropdown Content (Hidden by Default) */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 10; /* Increased z-index */
    border-radius: 8px;
    /* Removed overflow: hidden; */
}

/* Links inside the dropdown */
.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
    transition: background-color 0.2s;
}

/* Change color of dropdown links on hover */
.dropdown-content a:hover {
    background-color: #f1f1f1;
}

/* Show the dropdown menu on hover */
.dropdown:hover .dropdown-content {
    display: block;
}

/* Submenu for METAR */
.dropdown-submenu {
    position: relative;
}

.dropdown-submenu .submenu-content {
    display: none;
    position: absolute;
    left: 100%; /* Position to the right of the parent menu item */
    top: 0;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 11; /* Increased z-index to be higher than dropdown-content */
    border-radius: 8px;
}

/* Show the submenu on hover of the parent submenu item */
.dropdown-submenu:hover .submenu-content {
    display: block;
}

/* Caret icons for submenus */
.dropdown-submenu a .fa-caret-right {
    float: right;
    margin-left: 10px;
    padding-top: 2px;
}

/* Phraseology Overlay - Similar to notes-overlay */
.phraseology-overlay {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Dark semi-transparent background */
    z-index: 1000; /* Ensure it's above other content */
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px); /* Optional: blur background */
}

/* Phraseology Modal - Similar to notes-modal */
.phraseology-modal {
    background-color: var(--card-background);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    width: 90%; /* Adjust width as needed */
    max-width: 800px; /* Max width for larger screens */
    max-height: 80vh; /* Limit height to prevent overflow */
    overflow-y: auto; /* Enable scrolling for long content */
    display: flex;
    flex-direction: column;
    gap: 15px; /* Spacing between elements */
}

.phraseology-modal h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Search bar styling */
#phraseologySearch {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1em;
    margin-bottom: 15px;
    box-sizing: border-box; /* Include padding in element's total width and height */
}

/* Content area for categories and details */
.phraseology-content {
    flex-grow: 1; /* Allows content to take available space */
    overflow-y: auto; /* Enables scrolling within the content area */
}

/* Styling for categories (if you use them) */
.phraseology-category {
    background-color: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.phraseology-category:hover {
    background-color: var(--border-color);
}

.phraseology-category h4 {
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.phraseology-category p {
    font-size: 0.9em;
    color: var(--text-secondary);
}

/* Styling for phrase examples */
.phrase-example {
    background-color: var(--card-background);
    border: 1px solid var(--border-color);
    border-left: 5px solid var(--primary-color); /* Highlight */
    padding: 10px 15px;
    margin-bottom: 10px;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.phrase-example .atc, .phrase-example .pilot {
    font-weight: 500;
}

.phrase-example .atc {
    color: var(--danger-color); /* Example: Red for ATC calls */
}

.phrase-example .pilot {
    color: var(--success-color); /* Example: Green for Pilot replies */
}

.phrase-example .description {
    font-style: italic;
    font-size: 0.9em;
    color: var(--text-secondary);
    margin-top: 5px;
}

/* Buttons at the bottom */
.phraseology-buttons {
    display: flex;
    justify-content: flex-end; /* Align to the right */
    padding-top: 15px;
}

.phraseology-buttons button {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.2s ease;
}

.taxi-tag-wrapper {
    background-color: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px;
    cursor: text; /* Change cursor to indicate it's a text input area */
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.07);
}

.taxi-tag-wrapper ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap; /* Allow tags to wrap to the next line */
    gap: 8px; /* Spacing between tags */
}

.taxi-tag-wrapper li {
    display: flex;
    align-items: center;
}

li.taxi-tag-input-li {
    flex-grow: 1; /* Allow the input item to take remaining space */
}

#taxiTagInput {
    border: none;
    outline: none;
    padding: 4px 0;
    font-size: 0.78em;
    width: 100%;
    min-width: 200px; /* Give it a minimum width to avoid being too small */
    background: transparent;
}

.taxi-tag {
    background-color: var(--primary-color);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: 500;
    font-size: 0.9em;
    white-space: nowrap; /* Prevent tags from breaking into two lines */
}

.taxi-tag.hold-tag {
    background-color: var(--warning-color);
    color: var(--text-primary);
}

.taxi-tag .fa-times {
    margin-left: 8px;
    cursor: pointer;
    font-size: 1.1em;
    transition: color 0.2s;
}

.taxi-tag .fa-times:hover {
    color: #ffdddd;
}

.taxi-tag.hold-tag .fa-times:hover {
    color: var(--danger-color);
}

/* About Page Styles */
.about-container {
    max-width: 1000px;
    margin: 20px auto;
    padding: 20px;
}

.about-card {
    background: var(--card-background);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
}

.about-card h2 {
    color: var(--primary-color);
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 10px;
    margin-top: 30px;
}

.about-card ul {
    padding-left: 20px;
    margin: 15px 0;
}

.about-card li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.tech-item {
    background: rgba(240, 244, 248, 0.6);
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.version-info {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px dashed var(--border-color);
    text-align: center;
    font-style: italic;
}

.footer {
    text-align: center;
    margin-top: 30px;
    padding: 20px;
    color: var(--text-secondary);
    font-size: 0.9em;
}

.back-btn {
    background: var(--primary-color);
    margin-bottom: 15px;
}

.back-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 500;
    margin: 20px auto;
    display: block;
    cursor: pointer;
    transition: all 0.2s;
}

.back-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Map Modal Styles */
.map-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.map-modal {
    position: relative;
    width: 80%;
    height: 80vh;
    background: var(--card-background);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
}

.map-modal h3 {
    margin-top: 0;
    color: var(--primary-color);
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

#mapContainer {
    flex-grow: 1;
    height: 500px; /* Add fixed height */
    width: 100%; /* Ensure full width */
    border-radius: 8px;
    margin: 10px 0;
}

.map-buttons {
    text-align: right;
    padding-top: 10px;
}

/* Custom Map Marker Icons */
.map-icon {
    background: white;
    border-radius: 50%;
    text-align: center;
    font-weight: bold;
    line-height: 24px;
    width: 26px;
    height: 26px;
    border: 2px solid;
    box-shadow: 0 0 5px rgba(0,0,0,0.3);
}

.map-icon.departure {
    color: var(--success-color);
    border-color: var(--success-color);
}

.map-icon.arrival {
    color: var(--danger-color);
    border-color: var(--danger-color);
}

/* Responsive design */
@media (max-width: 1200px) {
    .grid-container {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .detail-group {
        flex-basis: calc(50% - 15px);
        min-width: 0;
    }
}

@media (max-width: 768px) {
    .grid-container, .weather-container {
        flex-direction: column;
        gap: 20px;
    }
    
    .detail-group, .weather-box {
        flex-basis: 100%;
        margin-bottom: 20px;
        padding: 20px;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    button {
        width: 100%;
        margin: 5px 0;
    }
    
    input[type="text"] {
        width: 100%;
    }
}

/* Loading animation */
@keyframes shimmer {
    0% { background-position: -468px 0 }
    100% { background-position: 468px 0 }
}

.loading {
    animation: shimmer 1s linear infinite;
    background: linear-gradient(to right, rgba(246, 247, 248, 0.8) 8%, rgba(237, 238, 241, 0.8) 18%, rgba(246, 247, 248, 0.8) 33%);
    background-size: 800px 104px;
}