/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #5f9ea0 0%, #4a7c7e 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 100%;
    margin: 0;
    padding: 0;
}

/* Keep max-width only for the form */
.container.form-view {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.header {
    text-align: center;
    color: white;
    margin-bottom: 30px;
}

.header-logo {
    display: flex;
    align-items: center;
    justify-content: center;
      flex-wrap: wrap;
}

.logo-image {
    width: 180px;
    height: 180px;
        
    
}

.logo-image:hover {
    transform: scale(1.05);
}

.header-text {
    text-align: left;
}

.header h1 {
    font-size: 2.8rem;
    margin: 0;
    font-weight: 700;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tagline {
    font-size: 1rem;
    margin: 4px 0 0 0;
    opacity: 0.95;
    font-weight: 500;
    font-style: italic;
    color: #e0f2f1;
}

.header-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-top: 8px;
}

@media (max-width: 768px) {
    .header-logo {
        flex-direction: column;
        gap: 12px;
    }
    
    .header-text {
        text-align: center;
    }
    
    .logo-image {
        width: 70px;
        height: 70px;
    }
    
    .header h1 {
        font-size: 2.2rem;
    }
    
    .tagline {
        font-size: 0.95rem;
    }
    
    .header-subtitle {
        font-size: 1rem;
    }
}

.main-content {
    display: flex;
    gap: 20px;
    flex-direction: column;
}

@media (min-width: 1024px) {
    .main-content.with-results {
        flex-direction: row;
    }
}

.form-card, .results-card, .map-card {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.form-card {
    flex: 1;
}

.results-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.results-card {
    flex: 1;
    overflow-y: auto;
    max-height: 600px;
}

.map-card {
    flex: 1;
    padding: 0;
    overflow: hidden;
    min-height: 400px;
    position: relative;
}

@media (min-width: 1024px) {
    .map-card {
        min-height: 600px;
    }
}

.map-controls {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    display: flex;
    gap: 10px;
}

.map-control-btn {
    background: white;
    border: none;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    color: #5f9ea0 ;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    transition: all 0.2s;
}

.map-control-btn:hover {
    background: #5f9ea0 ;
    color: white;
}

.map-control-btn.active {
    background: #5f9ea0 ;
    color: white;
}

.map-control-btn.warning {
    background: #fef3c7;
    color: #f59e0b;
    border: 2px solid #f59e0b;
}

.map-control-btn.warning:hover {
    background: #f59e0b;
    color: white;
}

/* Date Picker - Responsive */
.date-picker-desktop {
    display: block;
}

.date-picker-mobile {
    display: none;
}

@media (max-width: 768px) {
    .date-picker-desktop {
        display: none;
    }
    
    .date-picker-mobile {
        display: block;
    }
}

/* Desktop Date Picker Input - Visible and clickable */
.date-picker-desktop input {
    display: block;  /* Show input so users can click it */
    cursor: pointer;
}

/* Flatpickr Popup Calendar Styling (opens on click) */
.flatpickr-calendar {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    border: 2px solid #e5e7eb;
}

.flatpickr-calendar .flatpickr-months {
    background: #5f9ea0 ;
    border-radius: 10px 10px 0 0;
    padding: 15px 10px;
    min-height: 60px;
}

.flatpickr-calendar .flatpickr-month {
    color: white;
    height: auto;
    min-height: 40px;
}

.flatpickr-calendar .flatpickr-current-month {
    color: white;
    padding: 8px 0;
    position: static;
    height: auto;
}

.flatpickr-calendar .flatpickr-current-month span.cur-month {
    color: white;
    font-weight: 600;
    margin: 0 5px;
    display: inline-block;
}

.flatpickr-calendar .flatpickr-current-month .numInputWrapper {
    color: white;
    display: inline-block;
    width: 70px;
}

.flatpickr-calendar .flatpickr-current-month .numInputWrapper input {
    color: white;
    font-weight: 600;
    width: 100%;
}

.flatpickr-calendar .flatpickr-current-month input.cur-year {
    color: white;
    font-weight: 600;
    width: 70px;
}

.flatpickr-calendar .flatpickr-weekday {
    color: #5f9ea0 ;
    font-weight: 600;
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange {
    background: #5f9ea0  !important;
    border-color: #5f9ea0  !important;
}

.flatpickr-day.inRange {
    background: #e0e7ff !important;
    border-color: #e0e7ff !important;
}

.flatpickr-day.today {
    border-color: #5f9ea0 ;
}

.flatpickr-day:hover {
    background: #f3f4f6;
}

.flatpickr-months .flatpickr-prev-month,
.flatpickr-months .flatpickr-next-month {
    fill: white !important;
    position: static;
    height: auto;
    padding: 5px 10px;
}

.flatpickr-months .flatpickr-prev-month:hover,
.flatpickr-months .flatpickr-next-month:hover {
    fill: rgba(255, 255, 255, 0.8) !important;
}

.flatpickr-months .flatpickr-prev-month svg,
.flatpickr-months .flatpickr-next-month svg {
    width: 14px;
    height: 14px;
}

/* Mobile Date Inputs */
.date-inputs {
    display: flex;
    gap: 15px;
}

.date-input-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.date-input-group label {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 500;
}

.date-input-group input[type="date"] {
    width: 100%;
    padding: 12px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s;
}

.date-input-group input[type="date"]:focus {
    outline: none;
    border-color: #5f9ea0 ;
    box-shadow: 0 0 0 3px rgba(37, 150, 190, 0.1);
}

@media (max-width: 768px) {
    .date-inputs {
        flex-direction: column;
        gap: 12px;
    }
}

/* Modern Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background: white;
    border-radius: 16px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    padding: 24px 24px 16px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: #1f2937;
    font-weight: 700;
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #9ca3af;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s;
}

.modal-close:hover {
    background: #f3f4f6;
    color: #4b5563;
}

.modal-body {
    padding: 24px;
}

.modal-message {
    font-size: 1rem;
    color: #374151;
    margin: 0 0 16px 0;
    line-height: 1.6;
}

.modal-info {
    background: #f0fdf4;
    border-left: 4px solid #10b981;
    padding: 12px 16px;
    margin: 16px 0;
    border-radius: 6px;
    color: #065f46;
    font-weight: 500;
}

.modal-tip {
    background: #fffbeb;
    border-left: 4px solid #f59e0b;
    padding: 12px 16px;
    margin: 16px 0;
    border-radius: 6px;
    color: #92400e;
    line-height: 1.6;
}

.modal-note {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 16px 0 0 0;
    line-height: 1.5;
}

.modal-footer {
    padding: 16px 24px 24px;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.modal-btn-primary {
    background: #5f9ea0 ;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.modal-btn-primary:hover {
    background: #5568d3;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.modal-btn-primary:active {
    transform: translateY(0);
}

@media (max-width: 640px) {
    .modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .modal-header {
        padding: 20px 20px 12px;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .modal-footer {
        padding: 12px 20px 20px;
    }
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="date"],
.form-group input[type="number"],
.form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #5f9ea0 ;
}

.api-key-section {
    background: #f7fafc;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    border: 2px solid #e2e8f0;
}

.api-key-section h3 {
    color: #5f9ea0 ;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.api-key-section p {
    color: #718096;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.people-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkbox-item label {
    margin: 0;
    cursor: pointer;
    font-weight: 400;
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #5f9ea0 0%, #4a7c7e 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(37, 150, 190, 0.4);
}

.submit-btn:disabled {
    background: #cbd5e0;
    cursor: not-allowed;
    transform: none;
}

.new-trip-btn {
    margin-bottom: 20px;
    padding: 12px 20px;
    background: #4a7c7e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(95, 158, 160, 0.3);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.new-trip-btn:hover {
     background: #1a7a9e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 150, 190, 0.3);
}

/* Loading Animations */
.loading {
    text-align: center;
    padding: 60px 40px;
    color: #5f9ea0 ;
}

.loading-photos {
    position: relative;
    width: 100%;
    max-width: 600px;
    height: 300px;
    margin: 0 auto 30px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    background: #f0f0f0;
}

.loading-photo-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.loading-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: fadeInPhoto 0.5s ease-in-out;
}

.photo-credit {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
    z-index: 10;
    transition: all 0.2s;
}

.photo-credit:hover {
    background: rgba(0, 0, 0, 0.75);
    transform: translateY(-2px);
}

.photo-credit a {
    color: white;
    text-decoration: none;
    font-weight: 600;
}

.photo-credit a:hover {
    text-decoration: underline;
}

@keyframes fadeInPhoto {
    from {
        opacity: 0;
        transform: scale(1.05);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.photo-indicators {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.photo-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transition: all 0.3s;
    cursor: pointer;
}

.photo-indicator.active {
    width: 24px;
    border-radius: 4px;
    background: white;
}

@media (max-width: 768px) {
    .loading-photos {
        height: 200px;
        margin-bottom: 20px;
    }
}



@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes bounce {
    0%, 80%, 100% { 
        transform: scale(0);
        opacity: 0.5;
    }
    40% { 
        transform: scale(1);
        opacity: 1;
    }
}

.loading h2 {
    font-size: 1.5rem;
    color: #2d3748;
    margin-bottom: 20px;
    font-weight: 700;
}

.loading-stage {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 25px 0;
    padding: 15px 25px;
    background: linear-gradient(135deg, #f7fafc 0%, #e0e7ff 100%);
    border-radius: 12px;
    border: 2px solid #5f9ea0 ;
    animation: pulse 2s ease-in-out infinite;
}

.stage-icon {
    font-size: 1.5rem;
    animation: rotate 2s linear infinite;
}

.stage-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: #5f9ea0 ;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(37, 150, 190, 0.4);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(37, 150, 190, 0);
    }
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-progress {
    margin: 20px auto;
    width: 80%;
    height: 6px;
    background: #e0e7ff;
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #5f9ea0  0%, #0d7fa6 50%, #5f9ea0  100%);
    background-size: 200% 100%;
    border-radius: 10px;
    animation: progress 2s ease-in-out infinite;
}

@keyframes progress {
    0% {
        background-position: 0% 0%;
        width: 0%;
    }
    50% {
        width: 70%;
    }
    100% {
        background-position: 200% 0%;
        width: 95%;
    }
}

.loading-tip {
    margin-top: 20px;
    font-size: 0.95rem;
    color: #718096;
    font-style: italic;
}

.itinerary-item {
    margin-bottom: 25px;
    padding: 20px 20px 20px 50px;
    background: #f7fafc;
    border-radius: 10px;
    border-left: 4px solid #5f9ea0 ;
    position: relative;
}

.itinerary-item.day-0 { border-left-color: #5f9ea0 ; }
.itinerary-item.day-1 { border-left-color: #1a7a9e; }
.itinerary-item.day-2 { border-left-color: #0f5e7e; }
.itinerary-item.day-3 { border-left-color: #17a2b8; }
.itinerary-item.day-4 { border-left-color: #20c997; }
.itinerary-item.day-5 { border-left-color: #4dd0e1; }
.itinerary-item.day-6 { border-left-color: #26c6da; }
.itinerary-item.day-7 { border-left-color: #00acc1; }
.itinerary-item.day-8 { border-left-color: #0097a7; }
.itinerary-item.day-9 { border-left-color: #00838f; }
.itinerary-item.day-10 { border-left-color: #006064; }
.itinerary-item.day-11 { border-left-color: #1e88e5; }

.itinerary-day {
    font-weight: 700;
    font-size: 1.2rem;
    color: #5f9ea0 ;
    margin-bottom: 10px;
}

.itinerary-activity {
    margin-bottom: 15px;
    padding-left: 15px;
    position: relative;
}

.activity-number {
    position: absolute;
    left: -35px;
    top: 0;
    width: 28px;
    height: 28px;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.85rem;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.activity-number.day-0 { background: #5f9ea0 ; }
.activity-number.day-1 { background: #1a7a9e; }
.activity-number.day-2 { background: #0f5e7e; }
.activity-number.day-3 { background: #17a2b8; }
.activity-number.day-4 { background: #20c997; }
.activity-number.day-5 { background: #4dd0e1; }
.activity-number.day-6 { background: #26c6da; }
.activity-number.day-7 { background: #00acc1; }
.activity-number.day-8 { background: #0097a7; }
.activity-number.day-9 { background: #00838f; }
.activity-number.day-10 { background: #006064; }
.activity-number.day-11 { background: #1e88e5; }

.itinerary-time {
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 5px;
}

.itinerary-place {
    color: #2d3748;
    margin-bottom: 5px;
    font-weight: 500;
}

.itinerary-description {
    color: #718096;
    font-size: 0.95rem;
}

.color-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    border: 2px solid #e2e8f0;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: #4a5568;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.legend-color.day-0 { background: #5f9ea0 ; }
.legend-color.day-1 { background: #1a7a9e; }
.legend-color.day-2 { background: #0f5e7e; }
.legend-color.day-3 { background: #17a2b8; }
.legend-color.day-4 { background: #20c997; }
.legend-color.day-5 { background: #4dd0e1; }
.legend-color.day-6 { background: #26c6da; }
.legend-color.day-7 { background: #00acc1; }
.legend-color.day-8 { background: #0097a7; }
.legend-color.day-9 { background: #00838f; }
.legend-color.day-10 { background: #006064; }
.legend-color.day-11 { background: #1e88e5; }

.map-container {
    width: 100%;
    height: 100%;
    min-height: 400px;
}

@media (max-width: 1023px) {
    .map-container {
        min-height: calc(100vh - 200px);
        height: calc(100vh - 200px);
    }
    
    .map-card {
        height: calc(100vh - 150px) !important;
    }
}

.map-toggle-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: auto;  /* Changed from fixed width */
    min-width: 60px;
    padding: 12px 20px;  /* Added horizontal padding */
    background: #5f9ea0 ;
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

@media (min-width: 1024px) {
    .map-toggle-btn {
        display: none;
    }
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.badge {
    background: #5f9ea0 ;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.error-message {
    background: #fee;
    border: 2px solid #fcc;
    color: #c33;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.custom-info-window {
    max-width: 320px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.info-photo {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
    margin: -10px -10px 10px -10px;
}

.info-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #5f9ea0 ;
    margin-bottom: 8px;
}

.info-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 8px;
    color: #f59e0b;
    font-weight: 600;
}

.info-description {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 8px;
    line-height: 1.4;
}

.info-time {
    font-weight: bold;
    color: #4a5568;
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.info-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.info-btn {
    flex: 1;
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.info-btn-primary {
    background: #5f9ea0 ;
    color: white;
}

.info-btn-primary:hover {
    background: #5568d3;
}

.info-btn-secondary {
    background: #e2e8f0;
    color: #4a5568;
}

.info-btn-secondary:hover {
    background: #cbd5e0;
}

.flatpickr-calendar {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    border: none;
}

.flatpickr-day.selected, 
.flatpickr-day.startRange, 
.flatpickr-day.endRange,
.flatpickr-day.selected.inRange,
.flatpickr-day.startRange.inRange,
.flatpickr-day.endRange.inRange {
    background: #5f9ea0 ;
    border-color: #5f9ea0 ;
}

.flatpickr-day.selected:hover,
.flatpickr-day.startRange:hover,
.flatpickr-day.endRange:hover {
    background: #5568d3;
    border-color: #5568d3;
}

.flatpickr-day.inRange {
    background: #e0e7ff;
    border-color: #e0e7ff;
    box-shadow: none;
}

.flatpickr-months .flatpickr-month {
    background: #5f9ea0 ;
    color: white;
}

.flatpickr-current-month .flatpickr-monthDropdown-months {
    background: #5f9ea0 ;
}

.flatpickr-months .flatpickr-prev-month:hover svg,
.flatpickr-months .flatpickr-next-month:hover svg {
    fill: white;
}

.date-range-input {
    position: relative;
}

.date-range-input input {
    padding-right: 40px;
}

.date-range-input::after {
    content: "📅";
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    font-size: 1.2rem;
}

.pac-container {
    border-radius: 8px;
    border-top: 2px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin-top: 2px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.pac-item {
    padding: 10px 12px;
    cursor: pointer;
    border: none;
}

.pac-item:hover {
    background: #f7fafc;
}

.pac-item-query {
    font-size: 14px;
    color: #2d3748;
}

.pac-icon {
    margin-top: 6px;
}

@media (max-width: 768px) {
    .header h1 {
        font-size: 2rem;
    }
    
    .header p {
        font-size: 1rem;
    }

    .form-card, .results-card {
        padding: 20px;
    }
}

.download-pdf-btn {
    background: #5dced6;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.download-pdf-btn:hover {
    background: #6db69f;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.new-trip-btn, .download-pdf-btn {
    height: 48px; /* Fixed height */
    padding: 0 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}
/* ===== animation compass ===== */
/* From Uiverse.io by Nawsome */ 
.pl {
  display: block;
  width: 9.375em;
  height: 9.375em;
}

.pl__arrows,
.pl__ring-rotate,
.pl__ring-stroke,
.pl__tick {
  animation-duration: 2s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

.pl__arrows {
  animation-name: arrows42;
  transform: rotate(45deg);
  transform-origin: 16px 52px;
}

.pl__ring-rotate,
.pl__ring-stroke {
  transform-origin: 80px 80px;
}

.pl__ring-rotate {
  animation-name: ringRotate42;
}

.pl__ring-stroke {
  animation-name: ringStroke42;
  transform: rotate(-45deg);
}

.pl__tick {
  animation-name: tick42;
}

.pl__tick:nth-child(2) {
  animation-delay: -1.75s;
}

.pl__tick:nth-child(3) {
  animation-delay: -1.5s;
}

.pl__tick:nth-child(4) {
  animation-delay: -1.25s;
}

.pl__tick:nth-child(5) {
  animation-delay: -1s;
}

.pl__tick:nth-child(6) {
  animation-delay: -0.75s;
}

.pl__tick:nth-child(7) {
  animation-delay: -0.5s;
}

.pl__tick:nth-child(8) {
  animation-delay: -0.25s;
}

/* Animations */
@keyframes arrows42 {
  from {
    transform: rotate(45deg);
  }

  to {
    transform: rotate(405deg);
  }
}

@keyframes ringRotate42 {
  from {
    transform: rotate(0);
  }

  to {
    transform: rotate(720deg);
  }
}

@keyframes ringStroke42 {
  from,
	to {
    stroke-dashoffset: 452;
    transform: rotate(-45deg);
  }

  50% {
    stroke-dashoffset: 169.5;
    transform: rotate(-180deg);
  }
}

@keyframes tick42 {
  from,
	3%,
	47%,
	to {
    stroke-dashoffset: -12;
  }

  14%,
	36% {
    stroke-dashoffset: 0;
  }
}

.loading-animation {
    display: flex;
    justify-content: center;   /* horizontal center */
    /*align-items: center;        /* vertical center */
    /*height: 100vh;              /* full screen height */
}
