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

body {
    background: #f5f5f5;
    font-family: Poppins, sans-serif;
}

.iata-code {
    font-weight: 600;
}

body {
    overflow-y: scroll;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

body::-webkit-scrollbar {
    display: none; /* Chrome, Safari */
}

html {
    overflow: -moz-scrollbars-none; /* Firefox */
    -ms-overflow-style: none; /* IE */
    scrollbar-width: none; /* Firefox */
}

html::-webkit-scrollbar {
    width: 0px;
    background: transparent;
}

@font-face {
    font-display: swap;
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 400;
    src: url('../../css/fonts/Poppins-Regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

@font-face {
    font-display: swap;
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 600;
    src: url('../../css/fonts/Poppins-Bold.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

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

.view-more-options {
    color: #FFF !important;
    background: #000;
    text-decoration: none;
    height: 62px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 42px;
    padding-left: 34px;
    padding-right: 34px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    font-weight: 600;
    margin-top: 79px;
    margin-bottom: 30px;
}

.main-content h2 {
    letter-spacing: 3.9px;
    color: #000;
    text-transform: uppercase;
    text-align: center;
    font-size: clamp(
            calc((19 / 16) * 1rem),
            calc(19px + (39 - 19) * ((100vw - 320px) / (1920 - 320))),
            calc((39 / 16) * 1rem)
    );

    line-height: clamp(
            calc((35 / 16) * 1rem),
            calc(35px + (44 - 35) * ((100vw - 320px) / (1920 - 320))),
            calc((44 / 16) * 1rem)
    );
    font-weight: 400;
}

.container-flight {
    margin-bottom: 30px;
}

.paragraph-flight {
    text-align: center;
    font-size: clamp(
            calc((19 / 16) * 1rem),
            calc(19px + (39 - 19) * ((100vw - 320px) / (1920 - 320))),
            calc((39 / 16) * 1rem)
    );

    line-height: clamp(
            calc((35 / 16) * 1rem),
            calc(35px + (44 - 35) * ((100vw - 320px) / (1920 - 320))),
            calc((44 / 16) * 1rem)
    );
}

.main-content {
    padding-bottom: 15px;
    padding-top: 2em;
}

@media screen and (min-width: 1025px) {
    .main-content {
        padding-top: 8em;
        padding-bottom: 40px;
    }
}

/* Header Styles */
.header {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

@media screen and (min-width: 1025px) {
    .header {
        flex-direction: row;
        gap: 27px;
    }
}

.title {
    font: normal normal normal 19px/29px Poppins;
    letter-spacing: 1.9px;
    color: #000000;
    text-transform: uppercase;
}

.logo {
    height: 58px; /* Increased by 30% from 45px */
    margin: 0 10px;
    vertical-align: middle;
    max-width: 260px; /* Increased proportionally */
}

.header-origin-select {
    border: 1px solid #C3C3C3;
    border-radius: 42px;
    letter-spacing: 1.4px;
    color: #000000;
    height: 62px;
    padding-left: 21px;
    max-width: 350px;
    width: 100%;
    font: normal normal normal 14px/21px Poppins;
}

/* Controls Styles */
.controls {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: end;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.control-group {
    display: flex;
    flex-direction: column;
    min-width: 250px;
}

.control-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    margin-bottom: 8px;
    color: white;
    font-size: 0.95rem;
}

.icon {
    font-size: 1.2rem;
}

.control-select {
    padding: 12px 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.95);
    font-size: 1rem;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.control-select:hover {
    border-color: #22c55e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.control-select:focus {
    outline: none;
    border-color: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.3);
}

.control-select:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.clear-btn {
    padding: 12px 20px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    height: fit-content;
}

.clear-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(238, 90, 36, 0.4);
}

.clear-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Color Variables */
:root {
    /* ========================================
       MASTER COLOR CONTROL SYSTEM
       ========================================
       All app colors are controlled from here.
       Each color has 3 versions for consistency:
       - main: Dark version for text, borders, icons
       - light-opacity: Semi-transparent for map marker backgrounds
       - light-solid: Opaque light version for blocking backgrounds
    */

    /* DESTINATION COLORS (Green)
       Used for: Dominican Republic destinations, direct flight buttons,
       destination markers, volume bars in selected destination columns */
    --green-main: rgb(16, 154, 72); /* Text, borders, icons */
    --green-light-opacity: rgba(16, 154, 72, 0); /* Map marker backgrounds */
    --green-light-solid: rgb(220, 255, 243); /* Blocking backgrounds */

    /* ORIGIN COLORS (Blue)
       Used for: Origin city text, origin markers, origin dropdown styling,
       selected origin city in header */
    --blue-main: rgb(38, 0, 255); /* Text, borders, icons */
    --blue-light-opacity: rgba(38, 0, 255, 0); /* Map marker backgrounds */
    --blue-light-solid: rgba(230, 230, 255, 1); /* Blocking backgrounds */

    /* TRANSFER COLORS (Brown)
       Used for: Transfer city buttons, transfer markers, volume bars
       in transfer flight options (only in selected columns) */
    --brown-main: rgb(146, 64, 14); /* Text, borders, icons */
    --brown-light-opacity: rgba(146, 64, 14, 0); /* Map marker backgrounds */
    --brown-light-solid: rgba(251, 230, 200, 1); /* Blocking backgrounds */

    /* NEUTRAL COLORS (Grey)
       Used for: Unselected columns, disabled states, secondary text,
       volume bars in unselected columns */
    --grey-main: rgb(102, 102, 102); /* Text, borders, icons */
    --grey-light-opacity: rgba(102, 102, 102, 0.3); /* Map marker backgrounds */
    --grey-light-solid: rgba(245, 245, 245, 1); /* Blocking backgrounds */
    --grey-border: #ccc; /* Light borders */
    --grey-medium: #999; /* Medium grey text */

    /* BACKGROUND & UI COLORS
       Used for: Main backgrounds, shadows, borders, ocean color */
    --white-main: rgba(255, 255, 255, 0.95); /* Main panel backgrounds */
    --white-border: rgba(255, 255, 255, 0.3); /* Panel borders */
    --black-shadow: rgba(0, 0, 0, 0.3); /* Drop shadows */
    --black-shadow-light: rgba(0, 0, 0, 0.1); /* Light shadows */
    --ocean-blue: rgb(137, 216, 236); /* World map ocean color */
}

/* Maps Container */
.maps-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px; /* Further reduced for tighter layout */
    margin-bottom: 15px;
    animation: slideInUp 0.5s ease-out 0.6s both;
    padding: 0 20px;
}

@media screen and (min-width: 1025px) {
    .maps-container {
        padding: 0 40px;
    }
}

#container-flight-details {
    padding: 0 20px;
}

@media screen and (min-width: 1025px) {
    #container-flight-details {
        padding: 0 40px;
    }
}


.map-section {
    background: var(--white-main);
    border-radius: 16px;
    padding: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid var(--white-border);
}

.map-container, .image-container {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15), 0 4px 16px var(--black-shadow-light);
    border: 2px solid var(--dark-green); /* Changed to dark green and half thickness */
    padding: 0;
    flex: 1;
    height: 380px; /* Fixed height for perfect alignment */
}

.map-container {
    background: var(--ocean-blue); /* Ocean color for world map */
}

.map-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 8px; /* Slightly smaller than container */
    box-shadow: inset 0 0 20px rgba(137, 216, 236, 0.8); /* Inner glow to blend edges */
    pointer-events: none;
    z-index: 10;
}

.map-container::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.1));
    border-radius: 14px;
    z-index: -1;
    filter: blur(3px);
}

.map {
    width: 100%;
    height: 100%; /* Fill container completely */
    transition: opacity 0.5s ease-in-out;
}

.map.fade-out {
    opacity: 0.3;
    transition: opacity 0s; /* Instant fade out */
}

/* Destination Image Styles */

.destination-image {
    width: 100%;
    height: 100%; /* Fill container completely */
    object-fit: cover;
    object-position: center top; /* Crop from bottom by positioning to top */
    transition: opacity 0.5s ease-in-out;
    transform: scale(1.05); /* Scale up slightly to crop bottom 5% */
}

.destination-image.fade-out {
    opacity: 0;
    transition: opacity 0s; /* Instant fade out */
}

.map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.loading {
    text-align: center;
    color: #667eea;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(102, 126, 234, 0.3);
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

/* Flight Options */
.flight-options {
    background: var(--white-main);
    border-radius: 16px;
    padding: 18px; /* Reduced from 25px */
    margin-top: 15px; /* Reduced from 20px */
    backdrop-filter: blur(10px);
    border: 1px solid var(--white-border);
    animation: slideInUp 0.5s ease-out;
}

.options-title {
    color: #109a48;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.destination-column {
    background: var(--green-light-solid);
    border-radius: 12px;
    padding: 15px;
    border: 2px solid var(--green-light-opacity);
    height: 250px; /* Reduced from ~500px to 250px (50% reduction) */
    overflow-y: auto; /* Add vertical scroll */
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease; /* Smooth transition for background changes */
}

/* Selected destination column styling */
.destination-column.selected {
    background: var(--green-light-solid);
    border: 2px solid var(--green-main); /* Green border for selected column */
}

/* Unselected destination column styling */
.destination-column.unselected {
    background: white;
    border: 2px solid #ccc;
}

.destination-column.unselected .destination-header {
    color: #666;
    border-bottom: 2px solid #ccc; /* Grey underline for unselected */
}

.destination-column.unselected .flight-option-btn {
    background: white;
    border: 2px solid #ccc;
    color: #666;
}

.destination-column.unselected .flight-option-btn:hover {
    background: #f5f5f5;
    color: #333;
    border-color: #999;
}

.destination-column.unselected .flight-option-btn.selected {
    background: #ccc;
    color: white;
    border-color: #ccc;
}

/* Unselected destination transfer button styling - override transfer colors with grey */
.destination-column.unselected .flight-option-btn.transfer {
    background: white;
    border: 2px solid var(--grey-border);
    color: var(--grey-main);
}

.destination-column.unselected .flight-option-btn.transfer:hover {
    background: var(--grey-light-solid);
    color: var(--grey-main);
    border-color: var(--grey-medium);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.destination-column.unselected .flight-option-btn.transfer.selected {
    background: var(--grey-border);
    color: white;
    border-color: var(--grey-border);
}

/* Unselected destination transfer volume styling - override brown with grey */
.destination-column.unselected .flight-option-btn.transfer .volume-indicator {
    background: white; /* Always white background */
    border-color: var(--grey-border); /* Grey border */
}

.destination-column.unselected .flight-option-btn.transfer .volume-fill {
    background: var(--grey-border); /* Light grey fill */
}

/* Volume bar styling for unselected destinations */
.destination-column.unselected .volume-indicator {
    background: white; /* Always white background */
    border-color: var(--grey-border); /* Grey border */
}

.destination-column.unselected .volume-fill {
    background: var(--grey-border); /* Light grey fill */
}

.destination-column::-webkit-scrollbar {
    width: 8px;
}

.destination-column::-webkit-scrollbar-track {
    background: var(--green-light-solid);
    border-radius: 4px;
}

.destination-column::-webkit-scrollbar-thumb {
    background: var(--green-main);
    border-radius: 4px;
}

.destination-column::-webkit-scrollbar-thumb:hover {
    background: rgba(16, 154, 72, 0.6);
}

.destination-column.unselected::-webkit-scrollbar-track {
    background: #f5f5f5;
    border-radius: 4px;
}

.destination-column.unselected::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.destination-column.unselected::-webkit-scrollbar-thumb:hover {
    background: #999;
}

.destination-header {
    color: var(--green-main);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
    text-align: center;
    border-bottom: 2px solid var(--green-main); /* Changed to dark green for selected */
    padding-bottom: 8px;
    flex-shrink: 0; /* Prevent header from shrinking */
}

.flight-buttons {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-right: 4px; /* Space for scrollbar */
}

.flight-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.flight-option-btn {
    background: white;
    border: 2px solid var(--green-main);
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--green-main);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.flight-option-btn:hover {
    background: var(--green-main);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px var(--green-light-opacity);
}

.flight-option-btn.selected {
    background: var(--green-main);
    color: white;
    border-color: var(--green-main);
}

/* Selected button volume styling - maintain percentage fill visibility */
/* Removed .flight-option-btn.selected .volume-fill override to preserve volume indicators */

/* Transfer City Button Styling */
.flight-option-btn.transfer {
    background: white;
    border: 2px solid var(--brown-main);
    color: var(--brown-main);
}

.flight-option-btn.transfer:hover {
    background: var(--brown-main);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px var(--brown-light-opacity);
}

.flight-option-btn.transfer.selected {
    background: var(--brown-main);
    color: white;
    border-color: var(--brown-main);
}

/* Transfer city volume indicator styling - uniform design */
.flight-option-btn.transfer .volume-indicator {
    background: white; /* Always white background */
    border-color: var(--brown-main); /* Brown border */
}

.flight-option-btn.transfer .volume-fill {
    background: var(--brown-light-solid); /* Light brown fill */
}

.button-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.route-type-row {
    display: flex;
    justify-content: center;
    align-items: center;
}

.route-type {
    font-weight: 600;
    font-size: 0.9rem;
}

.volume-duration-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.volume-section {
    flex: 0 0 70%; /* Takes 70% of the row (reduced from 80%) */
}

.duration-section {
    flex: 0 0 30%; /* Takes 30% of the row (increased from 20%) */
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.volume-indicator {
    width: 100%;
    height: 8px;
    background: white; /* Always white background */
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid var(--green-main); /* Green border for direct flights */
    position: relative;
    transition: all 0.3s ease;
}

.volume-fill {
    height: 100%;
    background: var(--green-light-solid); /* Light green fill for direct flights */
    transition: width 0.3s ease;
}

/* Volume indicator hover effect - uniform across all button types */
.flight-option-btn:hover .volume-indicator {
    background: white; /* Keep white background */
    border-color: var(--grey-border); /* Grey border on hover */
    height: 16px; /* Increase height to accommodate text */
}

.flight-option-btn:hover .volume-indicator::after {
    content: "Daily Flight Volume";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.7rem;
    font-weight: 600;
    color: black; /* Black font as specified */
    white-space: nowrap;
    z-index: 1;
}

.flight-option-btn .duration {
    font-size: 0.8rem;
    opacity: 0.8;
}

/* Flight Details */
.flight-details {
    background: var(--white-main);
    border-radius: 16px;
    padding: 25px;
    margin-top: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid var(--white-border);
    animation: slideInUp 0.5s ease-out;
    /* Removed the separator line */
}

.details-title {
    color: var(--green-main);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
}

.travel-segments {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr; /* Changed to 3 columns */
    gap: 20px;
}

.segment-column {
    background: var(--green-light-solid);
    border-radius: 12px;
    max-width: 265px;
    padding: 15px;
    border: 2px solid var(--green-main); /* Match selected destination border thickness and color */
}

@media screen and (min-width: 490px) {
    .segment-column {
        max-width: unset;
    }
}

.segment-header {
    color: var(--green-main);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
    text-align: center;
    border-bottom: 2px solid var(--green-main); /* Match selected destination underline */
    padding-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.inline-logo {
    height: 20px;
    vertical-align: middle;
}

/* Flight Options Title Logo - 20% larger than travel details header */
.options-title .inline-logo {
    height: 48px; /* 20% increase from 40px */
}

/* Flight Options Title "via" text styling */
.options-title {
    color: #109a48; /* Default green color for main text */
}

.options-title .via-text {
    color: black; /* Black color for "via" text */
}

/* Travel Details Header Logo - 100% increase */
.details-title .inline-logo {
    height: 40px;
}

/* Shuttle Segment Logo - 20% increase */
.segment-header .inline-logo {
    height: 24px;
}

.airlines-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.airline-item {
    background: white;
    border-radius: 8px;
    padding: 8px 10px; /* Reduced padding for more compact display */
    border: 1px solid rgba(34, 197, 94, 0.2);
    font-size: 0.85rem; /* Slightly smaller font for better fit */
    color: #333;
    margin-bottom: 4px; /* Reduced margin */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.airline-name {
    flex: 1;
    text-align: left;
    font-weight: 600;
}

.airline-season {
    flex: 1;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.airline-frequency {
    flex: 1;
    text-align: right;
    font-weight: 500;
    color: var(--green-main);
    display: none;
}

@media screen and (min-width: 768px) {
    .airline-frequency {
        display: inline-block;
    }
}

.calendar-icon {
    font-size: 0.8rem;
}

.month-text {
    font-size: 0.8rem;
    font-weight: 500;
}

/* Small Seasonal Arrow Styles */
.seasonal-arrow {
    display: inline-flex;
    align-items: center;
    margin: 0 4px;
}

.small-arrow-icon {
    width: 12px; /* 1/5 of original 60px */
    height: 12px;
    vertical-align: middle;
}

.details-content {
    display: block;
}

/* Footer */
.footer {
    text-align: center;
    margin-top: 30px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }

    .title {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .header-origin-select {
        margin: 22px 0 0 0;
        min-width: 300px; /* Increased for mobile */
        max-width: 300px; /* Increased for mobile */
    }

    .logo {
        margin: 0 5px;
    }

    .subtitle {
        font-size: 1rem;
    }

    .controls {
        flex-direction: column;
        align-items: stretch;
    }

    .control-group {
        min-width: auto;
    }

    .maps-container {
        grid-template-columns: 1fr;
    }

    .options-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .travel-segments {
        grid-template-columns: 1fr;
    }

    .map-container {
        min-height: 400px;
    }
}

@media (max-width: 480px) {
    .title {
        flex-direction: column;
        gap: 10px;
    }

    .options-grid {
        grid-template-columns: 1fr;
    }

    .flight-details {
        padding: 20px;
    }

    .travel-segments {
        grid-template-columns: 1fr;
    }
}

/* Dominican Republic Map Markers */
.dr-destination-marker {
    background: transparent !important;
    border: none !important;
}

.dr-marker-content {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background: transparent; /* Removed background from entire marker */
    color: #109a48;
    padding: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.dr-marker-content:hover .dr-marker-label {
    background: rgba(16, 154, 72, 0.1);
    transform: scale(1.05);
}

.dr-marker-content.selected .dr-marker-label {
    background: rgba(34, 197, 94, 0.9);
    color: white;
    transform: scale(1.1);
}

.dr-marker-icon {
    margin-right: 8px;
    font-size: 1.1rem;
    background: transparent; /* No background for icon */
    filter: drop-shadow(1px 1px 2px rgba(0, 0, 0, 0.3));
}

.dr-marker-label {
    background: rgba(255, 255, 255, 0.9); /* Background only on text label */
    color: #109a48;
    border-radius: 12px;
    padding: 4px 8px;
    white-space: nowrap;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(16, 154, 72, 0.3);
    transition: all 0.3s ease;
}

/* Green Office Marker Styles */
.green-office-marker {
    background: transparent !important;
    border: none !important;
}

.office-marker-content {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    padding: 0;
    width: 30px;
    height: 30px;
}

.office-logo {
    height: 30px;
    width: auto;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.3));
}

/* Duration Arrow Styles */
.duration-arrow {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    margin: 0 8px;
}

.arrow-icon {
    width: 60px;
    height: 20px;
    vertical-align: middle;
    order: 2; /* Arrow appears below text */
}

.duration-text {
    font-size: 1.08rem; /* Increased by 20% from 0.9rem */
    font-weight: 700;
    color: black;
    white-space: nowrap;
    order: 1; /* Text appears above arrow */
    margin-bottom: -2px; /* Negative margin to bring arrow much closer */
}

/* World Map Markers */
.custom-div-icon {
    background: transparent !important;
    border: none !important;
}

.custom-marker {
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Left align the content */
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
    background: transparent;
    border: none;
    padding: 2px;
}

.custom-marker.origin .marker-label {
    background: var(--blue-light-opacity); /* Blue background for origin text */
    color: var(--blue-main);
    border-radius: 6px;
    padding: 4px 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.custom-marker.destination .marker-label {
    background: var(--green-light-opacity); /* Green background for destination text */
    color: var(--green-main);
    border-radius: 6px;
    padding: 4px 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.custom-marker.transfer .marker-label {
    background: var(--brown-light-opacity); /* Brown background for transfer text */
    color: var(--brown-main);
    border-radius: 6px;
    padding: 4px 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.marker-icon {
    margin-left: 5px; /* Changed from margin-right to margin-left */
    font-size: 2rem; /* Doubled from 1rem to 2rem */
    background: transparent;
    filter: drop-shadow(1px 1px 2px rgba(0, 0, 0, 0.5));
}

.marker-label {
    white-space: nowrap;
}

/* City Dot Markers */
.city-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #000000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.city-dot.origin {
    background-color: var(--blue-main); /* Same blue as origin city label */
}

.city-dot.destination {
    background-color: var(--green-main); /* Same green as destination border */
}

.city-dot.transfer {
    background-color: var(--brown-main); /* Same brown as transfer city label */
}

/* Custom Map Styles */
.leaflet-container {
    background: rgb(137, 216, 236) !important; /* Ocean color matching container */
    border: none !important;
    outline: none !important;
    border-radius: 8px; /* Match container inner radius */
    overflow: hidden; /* Ensure clean edges */
}

.map {
    border: none !important;
    outline: none !important;
    border-radius: 8px;
}

/* Remove any Leaflet default padding/margins */
.leaflet-map-pane {
    border-radius: 8px;
}

.leaflet-tile-pane {
    border-radius: 8px;
}

.leaflet-control-zoom {
    border: none !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

.leaflet-control-zoom a {
    background: rgba(255, 255, 255, 0.95) !important;
    color: #22c55e !important;
    border: none !important;
    font-weight: bold !important;
    transition: all 0.3s ease !important;
}

.leaflet-control-zoom a:hover {
    background: #22c55e !important;
    color: white !important;
    transform: scale(1.05);
}

/* Error Toast Styles */
.error-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    padding: 16px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    animation: slideInRight 0.3s ease-out;
    max-width: 300px;
}

.error-icon {
    font-size: 1.2rem;
}

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

.custom-select-wrapper {
    position: relative;
    width: 100%;
    max-width: 349px;
    margin-top: 22px;
}

@media screen and (min-width: 1025px) {
    .custom-select-wrapper {
        margin-top: 0;
    }
}

.custom-select {
    position: relative;
    width: 100%;
    max-width: 349px;
}

.select-trigger {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: white;
    border: 1px solid #ccc;
    border-radius: 42px;
    cursor: pointer;
    transition: border-color 0.2s;
    max-width: 349px;
    width: 100%;
}

.select-trigger:hover {
    border-color: #888;
}

.select-trigger .placeholder {
    color: #999;
}

.select-trigger .arrow {
    font-size: 10px;
    color: #666;
    transition: transform 0.2s;
}

.custom-options.open + .select-trigger .arrow {
    transform: rotate(180deg);
}

.custom-options {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ccc;
    border-radius: 4px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.custom-options.open {
    display: block;
}

.custom-option {
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.2s;
}

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

.custom-option.selected {
    background: #e8f4ff;
}

.iata-code {
    font-weight: 600;
    color: #000;
}

.separator {
    margin: 0 4px;
}