.clickable-banner {
  cursor: pointer;
}

.input-error {
    border: 2px solid #e74c3c !important;
    background-color: #fff0f0 !important;
    transition: border 0.2s, background 0.2s;
}

select.input-error {
    border: 2px solid #e74c3c !important;
    background-color: #fff0f0 !important;
    box-shadow: 0 0 2px #e74c3c;
}

/* Ensure search rows stack vertically */
#search-rows-wrapper, #search-rows-wrapper2 {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 0;
}

/* Force first-row and return-row to stack vertically */
#first-row, #return-row {
    display: flex;
    flex-direction: column;
    width: 100%;
    flex: 1;
}

/* Custom styles for the responsive input grouping and dividers */
.search-input-group > div {
    border-radius: 0.5rem; /* Match the main container rounded corners */
}
.search-input-group {
    display: flex;
    flex-direction: column;
    gap: 1px; /* Gap for mobile stacking */
}

/* Utility to hide default date/time icons on modern browsers for cleaner look 
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator {
    background: none;
    display: none;
}
*/

/* Base radio-tab styles (Updated for rectangular tabs) */

.radio-tab {
    position: relative; /* For pseudo-elements if needed */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease-in-out; /* Smooth bg, color, shadow, transform */
    outline: none; /* Remove default focus outline */
    user-select: none; /* Prevent text selection */
    border-radius: 0; /* Rectangular (no rounding) */
    border-top: none; /* Flat top for attachment to header */
    color: white !important; /* White text for ALL tabs (overrides specifics) */
    z-index: 0; /* Base layering */
}

/* Selected state (add .selected class via JS) - Enhanced Green with Elevation */
.radio-tab.selected {
    background-color: #047857; /* Subtle green bg */
    color:#ffffff !important; /* Green text for selected (overrides white for contrast) */
    border-bottom: none; /* No bottom border to elevate */
    border-color: #047857; /* Green side borders if needed */
    /* box-shadow: 0 2px 8px rgba(4, 120, 87, 0.15), 0 4px 12px rgba(4, 120, 87, 0.2);  Stronger shadow for elevation */
    /* transform: translateY(-1px);  Slight upward lift */
    z-index: 1; /* Elevate above others */
}

.radio-tab.selected:hover {
    color:#ffffff !important; /* Green text for selected (overrides white for contrast) */
    border-color: #065f46;
    /* box-shadow: 0 4px 12px rgba(4, 120, 87, 0.25), 0 6px 16px rgba(4, 120, 87, 0.3);  Enhanced hover shadow */
    /* transform: translateY(-2px); More lift on hover */
}

/* Unselected state (default) - Blue Background with White Text */
.radio-tab:not(.selected) {
    background-color: #003580; /* Solid booking-blue bg for unselected */
    color: white !important; /* White text (as requested) */
    border-color: #0066c0; /* Lighter blue border for subtle contrast */
    box-shadow: none; /* Flat for unselected */
}

.radio-tab:not(.selected):hover {
    background-color: #0066c0; /* Lighter blue (booking-highlight) on hover */
    border-color: #004494; /* Darker blue border */
    color: white !important; /* Keep white text */
    box-shadow: 0 2px 8px rgba(0, 102, 192, 0.2); /* Subtle hover glow */
    /* transform: translateY(-1px);  Slight lift on hover */
}

/* Active/Focus states - Green accents */
.radio-tab:active,
.radio-tab:focus-visible {
    background-color: #047857; /* Mid-green for press */
    color: white !important; /* White text on active */
    border-color: #047857;
    box-shadow: 0 0 0 2px rgba(5, 150, 105, 0.3), 0 4px 12px rgba(4, 120, 87, 0.2); /* Focus ring + elevation shadow */
    transform: scale(1.01); /* Subtle scale */
    z-index: 2;
}

/* Visually hidden (unchanged) */
.radio-tab.visually-hidden {
    display: none;
}
.menu-items {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

.menu-items li {
    margin-right: 25px;
}

.menu-items a {
    color: white;
    text-decoration: none;
    font-size: 0.9em;
    transition: color 0.3s ease;
}

.menu-items a:hover {
    color: #BBDEFB; /* Lighter blue on hover */
}

/* --- SEARCH CRITERIA BOX STYLES (Existing) --- */
.search-criteria-box {
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08); /* Lighter, more elegant shadow */
    width: 80%;
    max-width: 1200px;
    margin: 30px auto 20px auto; /* More spacing from banner, centered */
    padding: 30px;
    box-sizing: border-box;
}
.hamburger {
    display: none;
    font-size: 2rem;   
    color: #263238; 
    background: white;
    border: none;
    cursor: pointer;
    margin-left: 1rem;
    z-index: 1100;
}

/* --- NEW: Main Content Area for Layout Split --- */
.main-content-area {
    text-align: center;
    display: flex;
    flex-wrap: wrap; /* Allow columns to wrap on smaller screens */
    justify-content: space-between; /* Space between the two columns */
    align-items: flex-start; /* Align items to the top */
    width: 90%;
    max-width: 1200px; /* Max width for the entire content area */
    /* margin: 30px auto; */ /* Space from search box and center */
    gap: 30px; /* Gap between the two main columns */
}

.suggestions-list {
  position: absolute;
  z-index: 1000;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  margin-top: 0.25rem;
  width: 100%;
  max-height: 220px;
  overflow-y: auto;
  padding: 0.25rem 0;
}

.suggestion-item {
  padding: 0.5rem 1rem;
  cursor: pointer;
  font-size: 1rem;
  color: #222;
  transition: background 0.15s, color 0.15s;
}

.suggestion-item:hover,
.suggestion-item.active {
  background: #f3f4f6;
  color: #003580;
}

/* --- London Sights Gallery Styles (Existing) --- */
.additional-content {
    margin-top: 50px;
    padding: 30px 20px;
    max-width: 1200px;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
}

.additional-content h2 {
    font-size: 2.5em;
    color: #37474F;
    margin-bottom: 40px;
    font-weight: 700;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto;
    gap: 25px;
    max-width: 1100px;
    margin: 0 auto;
}

.gallery-item {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.gallery-item h3 {
    font-size: 1.4em;
    color: #37474F;
    margin: 15px 15px 8px;
    font-weight: 600;
    line-height: 1.3;
}

.gallery-item .booking-link {
    display: block;
    background-color: #2196F3;
    color: white;
    padding: 12px 15px;
    margin: 0 15px 15px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1em;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.gallery-item .booking-link:hover {
    background-color: #1976D2;
    transform: translateY(-2px);
}

/* --- Site Footer Styles (Existing) --- */
.site-footer {
    background-color: #263238;
    color: #CFD8DC;
    padding: 40px 20px 20px;
    margin-top: 60px;
    width: 100%;
    box-sizing: border-box;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    max-width: 1200px;
    margin: 0 auto;
    gap: 30px;
}

.footer-section {
    flex: 1;
    min-width: 250px;
    margin-bottom: 20px;
}

.footer-section h3 {
    color: #FFC107;
    font-size: 1.4em;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-section p,
.footer-section ul {
    font-size: 0.95em;
    line-height: 1.6;
    color: #B0BEC5;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #B0BEC5;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #FFFFFF;
}

.footer-section p i {
    margin-right: 10px;
    color: #2196F3;
}

.footer-about .footer-logo {
    height: 50px;
    width: 50px;
    background-color: #FFC107;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    color: #263238;
    font-size: 1.5em;
    margin-bottom: 15px;
}

.footer-about h3 {
    margin-top: 0;
    color: #FFFFFF;
    font-size: 1.8em;
}

.social-links {
    margin-top: 20px;
}

.social-links a {
    color: #B0BEC5;
    font-size: 1.5em;
    margin-right: 15px;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #2196F3;
}

.footer-bottom {
    border-top: 1px solid #37474F;
    padding-top: 20px;
    margin-top: 40px;
    text-align: center;
    font-size: 0.85em;
    color: #9E9E9E;
}

.footer-bottom i {
    color: #E91E63; /* Pink heart for a nice touch */
}

.ticket-display-area {
    flex: 0 0 98%; /* Allocate 40% (minus gap) for ticket, flex-shrink 0 to maintain size */
    max-width: 550px; /* Keep ticket max-width consistent */
    box-sizing: border-box;
    display: flex; /* To center the ticket-container if it's smaller */
    justify-content: center;
    margin: 0 auto;
}

.ticket-container {
    background-color: #ffffff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08); /* Lighter, more elegant shadow */
    width: 100%; /* Take full width of its parent (.ticket-display-area) */
    overflow: hidden;
    position: relative;
    transform: perspective(1px) translateZ(0); /* For crisp shadow rendering */
}

/* Optional: Subtle 'perforated' edge effect (adjust colors) */
.ticket-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -10px;
    right: -10px;
    height: 20px;
    background-image: radial-gradient(circle at 10px 50%, transparent 10px, #FFFFFF 10px),
                      radial-gradient(circle at calc(100% - 10px) 50%, transparent 10px, #FFFFFF 10px);
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-color: #ECEFF1; /* Match body background */
    z-index: 1;
    transform: translateY(-50%);
    mask-image: repeating-linear-gradient(to right, #000 0px, #000 5px, transparent 5px, transparent 10px);
    -webkit-mask-image: repeating-linear-gradient(to right, #000 0px, #000 5px, transparent 5px, transparent 10px);
}

/* Ticket Header: Selected Package */
.ticket-header {
    background-color: #009688; /* Vibrant Teal */
    color: white;
    padding: 25px 30px; /* More padding */
    text-align: center;
    border-bottom: 1px dashed #4DB6AC; /* Lighter teal dashed line */
    position: relative;
    z-index: 2;
}

.ticket-title {
    font-size: 2em; /* Even bigger font */
    margin: 0;
    font-weight: 700;
    letter-spacing: 0.5px; /* Subtle spacing */
}

/* Ticket Body: Details */
.ticket-body {
    padding: 30px; /* More overall padding */
    padding-bottom: 25px;
    position: relative;
    z-index: 2;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    margin-bottom: 18px; /* More space */
    font-size: 1.15em; /* Slightly larger font */
    color: #455A64; /* Darker grey for readability */
    border-bottom: 2px solid #2196F3; /* Brighter booking blue separator */
    padding-bottom: 12px;
}

.detail-row .detail-label {
  flex: 0 0 40%;    /* don't shrink, take 40% */
  max-width: 40%;
  box-sizing: border-box;
  padding-right: 0;
  text-align: left;
}

.detail-row .detail-value {
  flex: 0 0 60%;    /* don't shrink, take 60% */
  max-width: 60%;
  box-sizing: border-box;
  padding-left: 10px;
  text-align: right;
}

.detail-row .detail-label:nth-child(even) {
    text-align: right; /* Align second label to the right */
}

.detail-row .detail-value:nth-child(even) {
    text-align: right; /* Align second value to the right */
}

.search-title {
    font-size: 2em; /* Slightly larger title */
    font-weight: 700;
    color: #37474F; /* Very dark blue-grey for strong readability */
    margin-bottom: 25px;
    text-align: center; /* Center the search title */
}

.car-selection-area {
    flex: 1; /* Take remaining space */
    min-width: 50%; /* Ensure it doesn't shrink too much */
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 25px; /* Space between car selection rows */
}

.car-selection-row {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: stretch; /* Stretch items to fill height of row */
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 200px; /* Ensure a minimum height for the row */
}

.car-selection-row--active {
    background-color: #CFD8DC;
    border: 2px solid #8BC34A;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

.car-selection-row:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}


/*
.car-image-wrapper {
    flex: 0 0 30%; 
    max-width: 200px;
    overflow: hidden;
    display: flex;
    align-items: center; 
    justify-content: center; 
    background-color: #F0F4F5; 
}
*/
.car-image-wrapper {
    display: flex;
    max-width: 200px;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    overflow: visible; /* Ensure text isn't clipped */
    background-color: #F0F4F5; 
}
/*
.car-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain; 
}
*/
.car-image-wrapper img {
    width: 100%;
    height: auto;
    max-height: 150px; /* Optional: control image height */
    object-fit: contain;
}
.alt-car-type {
    margin-top: 8px;
    font-size: 0.85em;
    color: #666;
    text-align: center;
    font-weight: 600;
    line-height: 1.3;
    width: 100%;
    padding: 4px 8px;
    background-color: #f8f9fa; /* Light background for emphasis */
    border-radius: 4px;
    box-sizing: border-box;
}
.car-selection-row {
    display: flex;
    align-items: stretch;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 200px;
}
.car-selection-row {
    min-height: 220px; /* Slightly increased to accommodate text */
}
.car-price-display {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    padding: 0 20px;
}

.car-price-value {
    font-size: 1.6em;
    font-weight: 800;
    color: #2196F3;
    letter-spacing: 1px;
    white-space: nowrap;
}
.car-details-and-features {
    flex: 1; /* Take remaining space */
    padding: 20px 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Push button to bottom */
    text-align: left;
}

.car-type-name {
    font-size: 1.8em;
    font-weight: 700;
    color: #263238;
    margin-top: 0;
    margin-bottom: 10px;
}

.car-capacity-row { /* Reusing capacity-item styles, but for a row */
    display: flex;
    gap: 25px;
    font-size: 1.05em;
    color: #607D8B;
    margin-bottom: 15px;
}

.car-capacity-row .capacity-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.car-capacity-row .capacity-item i {
    color: #8BC34A; /* Green tick color */
    font-size: 1.2em;
}


.car-features {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0; /* Space below features, above button */
    font-size: 0.95em;
    color: #455A64;
    line-height: 1.5;
}

.car-features li {
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.car-features i.fas.fa-check-circle {
    color: #4CAF50; /* Green for checkmark */
    font-size: 1.1em;
    flex-shrink: 0; /* Prevent icon from shrinking */
}

.select-car-button {
    /* Assuming booking-highlight color is #0066c0 from your HTML */
    background-color: #0066c0; 
    color: white;
    font-weight: 600;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    white-space: nowrap; /* Prevent button text from wrapping on small screens */
    padding: 10px 20px; /* Standard padding for touch targets */
}
.select-car-button:hover {
    background-color: #1976D2;
    transform: translateY(-2px);
}
.select-car-button:active {
    transform: translateY(1px);
}
.pickup-datetime {
  color: #009688; /* Teal for Pickup */
  font-weight: 600;
}

.pickup-detail-value {
  color: #009688; /* Teal for Pickup */
  font-weight: 600;
}

.drop-datetime {
  color: #009688; /* Teal for Pickup */
  /* color: #3F51B5; Indigo for Return Dropoff */
  font-weight: 600;
}

.drop-detail-value {
  color: #2196F3;
  font-weight: 600;
}
.return-pickup-value {
  color: #3F51B5; /* Indigo for Return Dropoff */
  font-weight: 600;
}
.return-drop-value {
  color: #c83c4a; /* Teal for Pickup */
  font-weight: 600;
}

/* --- Location formatting: Airport and Terminal parts --- */
.airport-name {
    color: #009688; /* Teal for Pickup */
    /* color: #003580; Booking blue for airport name */
    font-weight: 700;
    display: inline;
}
.terminal-name {
    color: #009688; /* Teal for Pickup */
    /* color: #4CAF50; Green for terminal */
    font-weight: 600;
    font-size: 0.85em; /* Slightly smaller */
    margin-left: 6px; /* Small separation from airport */
    display: inline-block;
}
.terminal-name2 {
    color: #c83c4a; /* Teal for Pickup */
    /* color: #4CAF50; Green for terminal */
    font-weight: 600;
    font-size: 0.85em; /* Slightly smaller */
    margin-left: 6px; /* Small separation from airport */
    display: inline-block;
}

/* Specific airport color overrides for pickup vs drop */
.airport-name-pickup {
    color: #009688; /* Teal for Pickup */
    /* color: #003580; Booking blue for pickup */
    font-weight: 700;
    display: inline;
}
.airport-name-drop {
    color: #c83c4a; /* Teal for Pickup */
    /* color: #D32F2F; Red for dropoff airport */
    font-weight: 700;
    display: inline;
}

/* --- NEW: Shopping Cart Page Styles --- */
.cart-container {
    background-color: #ffffff;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    width: 90%;
    max-width: 900px; /* Wider than ticket, narrower than search box */
    margin: 50px auto 30px auto;
    padding: 30px;
    box-sizing: border-box;
}

.cart-title {
    font-size: 2.2em;
    font-weight: 700;
    color: #37474F;
    text-align: center;
    margin-bottom: 40px;
}

.cart-items-list {
    margin-bottom: 30px;
    border-top: 1px solid #ECEFF1; /* Light separator at top */
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #ECEFF1; /* Separator between items */
}

.cart-item:last-child {
    border-bottom: none; /* No border for the last item */
}

.item-info-container {
    display: flex;
    align-items: flex-start;
    gap: 20px; /* Adjust this gap as needed */
    flex-wrap: wrap;
}

.left-info {
    flex: 0 1 auto; /* Don't grow, but can shrink */
    min-width: 0;
}

#poiInfo1-div {
   flex: 0 0 auto; /* Don't grow or shrink */
   margin-top: 0;
}

.grid-container {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: start;
}

.item-details {
    flex-grow: 1;
    text-align: left;
}

.item-package {
    font-size: 1.4em;
    font-weight: 600;
    color: #263238; /* Deep Charcoal Blue */
    margin-top: 0;
    margin-bottom: 10px;
}

.item-package2 {
    font-size: 1.0em;
    font-weight: 600;
    color: #263238; /* Deep Charcoal Blue */
    margin-top: 0;
    margin-bottom: 10px;
}

.item-info-row .item-info-row2 {
    font-size: 0.95em;
    color: #607D8B;
    margin-bottom: 5px;
}

.info-label2 {
  display: grid;
  grid-template-columns: auto auto;
  grid-template-rows: auto auto;
  gap: 10px;
  align-items: start;
}

.poi-thumb-container2 {
  grid-column: 1;
  grid-row: 1;
}

.poi-remove-btn2 {
  grid-column: 2;
  grid-row: 1;
  align-self: flex-start;
}

.poi-text2 {
  grid-column: 1 / span 2;
  grid-row: 2;
}

.item-info-row .info-label .item-info-row2 {
    font-weight: 500;
    margin-right: 5px;
}

.item-info-row .info-value .item-info-row2 {
    color: #455A64;
}

.item-price {
    font-size: 1.8em; /* Large price font */
    font-weight: 700;
    color: #009688; /* Vibrant Teal for price */
    white-space: nowrap;
    margin-left: 20px; /* Space from details */
}

.item-price .currency {
    font-size: 0.7em;
    vertical-align: super;
    margin-right: 2px;
}

.remove-item-btn {
    background: none;
    border: none;
    color: #E57373; /* Light Red for delete icon */
    font-size: 1.3em;
    cursor: pointer;
    margin-left: 20px;
    transition: color 0.3s ease, transform 0.2s ease;
}

.remove-item-btn:hover {
    color: #D32F2F; /* Darker red on hover */
    transform: scale(1.1);
}

.cart-summary {
    border-top: 2px dashed #CFD8DC; /* Stronger dashed line before summary */
    padding-top: 20px;
    margin-top: 20px;
    margin-bottom: 30px;
    text-align: right;
}

.summary-row {
    display: flex;
    justify-content: flex-end; /* Align label and value to the right */
    align-items: baseline;
    margin-bottom: 10px;
    font-size: 1.2em;
    color: #455A64;
}

.summary-row .summary-label {
    font-weight: 500;
    margin-right: 15px;
    flex-shrink: 0; /* Prevent label from shrinking */
}

.summary-row .summary-value {
    font-weight: 600;
    color: #263238; /* Dark color for values */
    min-width: 100px; /* Ensure values have consistent alignment */
    text-align: right;
}

.summary-row.grand-total {
    font-size: 1.6em; /* Bigger font for grand total */
    font-weight: 700;
    color: #2196F3; /* Primary accent blue for grand total */
    border-top: 1px solid #CFD8DC; /* Line above grand total */
    padding-top: 15px;
    margin-top: 0px;
}

.summary-row.grand-total .summary-value {
    color: #2196F3; /* Ensure value matches grand total color */
}

.cart-actions {
    display: flex;
    flex-wrap: wrap; /* Allow buttons to wrap */
    justify-content: center; /* Center buttons */
    gap: 15px; /* Space between buttons */
    margin-top: 30px;
}

.action-btn {
    background-color: #2196F3; /* Primary blue for main actions */
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.05em;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px; /* Space between icon and text */
}

.action-btn:hover {
    background-color: #1976D2;
    transform: translateY(-2px);
}

.action-btn.clear-cart-btn {
    background-color: #E57373; /* Red for clear cart */
}
.action-btn.clear-cart-btn:hover {
    background-color: #D32F2F;
}

.action-btn.return-btn {
    background-color: #607D8B; /* Grey-blue for return to booking */
}
.action-btn.return-btn:hover {
    background-color: #546E7A;
}

.checkout-container {
    background-color: #ffffff;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    width: 90%;
    max-width: 900px; /* Consistent width with cart page */
    margin: 50px auto 30px auto;
    padding: 30px;
    box-sizing: border-box;
}

.checkout-title {
    font-size: 2.2em;
    font-weight: 700;
    color: #37474F;
    text-align: center;
    margin-bottom: 40px;
}

/* Authentication Section */
.auth-section {
    padding-bottom: 30px;
    border-bottom: 1px dashed #CFD8DC;
    margin-bottom: 30px;
    text-align: center;
}

.auth-section h3 {
    font-size: 1.8em;
    color: #263238;
    margin-bottom: 20px;
}

.auth-intro-text {
    font-size: 1.1em;
    color: #607D8B;
    margin-bottom: 30px;
}

.auth-options {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
}

.auth-box {
    background-color: #F8F9FA; /* Light background for auth forms */
    border: 1px solid #CFD8DC;
    border-radius: 10px;
    padding: 25px;
    flex: 1; /* Allows boxes to grow */
    min-width: 300px; /* Minimum width for each form box */
    max-width: 400px;
    box-sizing: border-box;
    text-align: left; /* Align form labels/inputs left */
}

.auth-box h4 {
    font-size: 1.5em;
    color: #009688; /* Teal accent for sub-headings */
    margin-bottom: 25px;
    text-align: center;
}

.auth-form .form-group {
    margin-bottom: 18px;
}

.auth-form label {
    display: block;
    font-size: 0.95em;
    color: #455A64;
    margin-bottom: 8px;
    font-weight: 500;
}

.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form input[type="text"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #CFD8DC;
    border-radius: 8px;
    font-size: 1em;
    box-sizing: border-box;
    color: #37474F;
    background-color: #FFFFFF;
}

.auth-btn {
    display: block;
    width: 100%;
    background-color: #2196F3;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin-top: 20px;
}

.auth-btn:hover {
    background-color: #1976D2;
    transform: translateY(-2px);
}

.proceed-to-payment-auth-btn { /* "Proceed as Guest" button */
    background-color: #607D8B; /* Grey-blue */
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: 600;
    margin-top: 30px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.proceed-to-payment-auth-btn:hover {
    background-color: #546E7A;
    transform: translateY(-2px);
}


/* Order Summary Section (Read-Only Cart) */
.order-summary-section {
    padding-bottom: 30px;
    border-bottom: 1px dashed #CFD8DC;
    margin-bottom: 30px;
    text-align: center;
}

/* --- NEW: Style for Welcome Message --- */
.order-summary-section .welcome-message {
    font-size: 1.6em; /* Slightly smaller than main section title, but still prominent */
    color: #64B5F6;   /* Light Blue - soft and inviting */
    margin-bottom: 25px; /* Add some space below the welcome message */
    text-align: center;
    font-weight: 600; /* Make it a bit bolder for visibility */
}

.order-summary-section h3 {
    font-size: 1.8em;
    color: #263238;
    margin-bottom: 20px;
}

.order-summary-section .cart-items-list.read-only .remove-item-btn {
    display: none;
}

.order-summary-section .cart-items-list.read-only .cart-item {
    cursor: default; /* No pointer cursor */
    box-shadow: none; /* No shadow for read-only items */
}

.proceed-to-payment-btn, .confirm-changes-btn { /* "Proceed to Payment" button */
    background-color: #2196F3;
    color: white;
    border: none;
    padding: 14px 30px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin-top: 25px;
    display: flex; /* For icon alignment */
    align-items: center;
    gap: 8px;
    margin-left: auto; /* Push button to the right */
    margin-right: auto; /* Center on small screens */
}
.proceed-to-payment-btn:hover {
    background-color: #1976D2;
    transform: translateY(-2px);
}

.confirm-changes-btn { 
    background-color: green;
}
.download-link {
    color: #2196F3;
    text-decoration: underline;
    font-weight: 600;
}
.download-link i {
    margin-right: 6px;
}
.download-link:hover {
    color: #1976D2;
}

/* Disabled state styling for proceed button */
.proceed-to-payment-btn.disabled,
.proceed-to-payment-btn[disabled],
.proceed-to-payment-btn[aria-disabled="true"] {
    background-color: #9E9E9E !important; /* greyed out */
    color: #FFFFFF !important;
    cursor: not-allowed !important;
    transform: none !important;
    pointer-events: none !important; /* ensure no clicks */
    opacity: 0.9;
}

.confirm-changes-btn.disabled,
.confirm-changes-btn[disabled],
.confirm-changes-btn[aria-disabled="true"] {
    background-color: #9E9E9E !important; /* greyed out */
    color: #FFFFFF !important;
    cursor: not-allowed !important;
    transform: none !important;
    pointer-events: none !important; /* ensure no clicks */
    opacity: 0.9;
}

#edit-booking-btn.disabled,
#edit-booking-btn[disabled],
#edit-booking-btn[aria-disabled="true"] {
    background-color: #9E9E9E !important; /* greyed out */
    color: #FFFFFF !important;
    cursor: not-allowed !important;
    transform: none !important;
    pointer-events: none !important; /* ensure no clicks */
    opacity: 0.9;
}

#edit-booking-btn {
    cursor: pointer;
}

#cancel-booking-btn {
    background-color: #E57373; /* Light Red for cancel button */
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.05em;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px; /* Space between icon and text */
}

/* Payment Section */
.payment-section h3 {
    font-size: 1.8em;
    color: #263238;
    margin-bottom: 20px;
    text-align: center;
}

.payment-interface {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    gap: 20px;
}

.payment-tabs {
    flex: 0 0 200px; /* Fixed width for tabs */
    display: flex;
    flex-direction: column; /* Vertical tabs */
    background-color: #F8F9FA; /* Light background for tabs */
    border-radius: 10px;
    padding: 10px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.fa-whatsapp {
  color: #25D366 !important; /* WhatsApp green */
  font-size: 20px;
}

.payment-content {
    flex-grow: 1; /* Payment form content takes remaining space */
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 25px;
    box-sizing: border-box;
}

.payment-form h4 {
    font-size: 1.6em;
    color: #37474F;
    margin-bottom: 25px;
}

.payment-form .form-group {
    margin-bottom: 20px;
}

.payment-form label {
    display: block;
    font-size: 0.95em;
    color: #455A64;
    margin-bottom: 8px;
    font-weight: 500;
}

.payment-form input[type="text"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #CFD8DC;
    border-radius: 8px;
    font-size: 1em;
    box-sizing: border-box;
    color: #37474F;
    background-color: #FFFFFF;
}

.payment-form .form-row {
    display: flex;
    gap: 20px;
}

.payment-form .form-row .form-group {
    flex: 1; /* Make expiry and CVV take equal space */
}

.paypal-login-btn,
.google-pay-btn,
.apple-pay-btn {
    background-color: #E0E0E0; /* Default neutral color for these buttons */
    color: #37474F;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    width: 100%;
    margin-top: 20px;
    transition: background-color 0.3s ease, transform 0.2s ease, color 0.3s ease;
}

.paypal-login-btn i,
.google-pay-btn i,
.apple-pay-btn i {
    font-size: 1.2em;
}

/* Specific button colors */
.paypal-login-btn {
    background-color: #FFC439; /* PayPal Yellow */
    color: #1A222B;
}
.paypal-login-btn:hover {
    background-color: #e0ac00;
    transform: translateY(-2px);
}

.paypalMessage {
    padding: 10px;
    border-radius: 5px;
    margin-top: 20px;
    display: none;
}

.google-pay-btn {
    background-color: #4285F4; /* Google Blue */
    color: white;
}
.google-pay-btn:hover {
    background-color: #3367D6;
    transform: translateY(-2px);
}

.apple-pay-btn {
    background-color: #000000; /* Apple Black */
    color: white;
}
.apple-pay-btn:hover {
    background-color: #333333;
    transform: translateY(-2px);
}


.submit-payment-btn {
    display: block;
    width: 100%;
    background-color: #009688; /* Teal accent for submit */
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.3em;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin-top: 30px;
}

.submit-payment-btn:hover {
    background-color: #00796B;
    transform: translateY(-2px);
}


/* Order Confirmation Section */
.order-confirmation-section {
    background-color: #E8F5E9; /* Light Green for success */
    border: 1px solid #A5D6A7;
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
    margin-top: 50px;
    max-width: 600px;
}

.order-confirmation-section h3 {
    font-size: 2.2em;
    color: #388E3C; /* Dark Green for success heading */
    margin-bottom: 20px;
}

.order-confirmation-section h3 i {
    margin-right: 15px;
    color: #4CAF50; /* Green icon */
}

.order-confirmation-section p {
    font-size: 1.1em;
    color: #455A64;
    line-height: 1.6;
    margin-bottom: 15px;
}

.order-confirmation-section p strong {
    color: #263238;
}

.order-confirmation-section #display-order-number {
    font-size: 1.3em;
    font-weight: bold;
    color: #2196F3; /* Blue for order number */
}

.order-confirmation-section .action-btn {
    margin: 15px 10px 0; /* Space between confirmation buttons */
}

/* visually hide elements but keep them in the accessibility tree and DOM */
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}
/* POI modal cards */
.poi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.5rem;
    max-height: 320px;
    overflow: hidden;
}
.poi-card {
    cursor: pointer;
    border: 1px solid #e5e7eb; /* gray-200 */
    border-radius: 0.5rem;
    padding: 0.25rem;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.poi-card.selected {
    box-shadow: 0 10px 30px rgba(3,102,192,0.18);
    border-color: #0366c0;
    transform: translateY(-6px) scale(1.02);
    z-index: 5;
}
.poi-card {
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
/* selected badge */
.poi-card.selected::after {
    content: '\2713'; /* checkmark */
    position: absolute;
    top: 6px;
    right: 6px;
    background: #0366c0;
    color: white;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 14px;
    box-shadow: 0 4px 10px rgba(3,102,192,0.2);
}
.poi-thumb {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 0.375rem;
    margin-bottom: 0.25rem;
}
.poi-name {
    font-size: 0.85rem;
    color: #111827; /* gray-900 */
    line-height: 1.1;
}
/* price styles */
.gallery-price {
    margin-left: 0.5rem;
    font-size: 0.9rem;
    color: #0366c0; /* booking highlight */
    font-weight: 600;
}
.card-price {
    display: inline-block;
    margin-left: 0.35rem;
    color: #0366c0;
    font-weight: 600;
    font-size: 0.85rem;
}
/* info button */
.info-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    margin-left: 0.35rem;
    border-radius: 4px;
    background: #dbeafe; /* keep subtle */
    border: 1px solid transparent;
    color: #0366c0; /* booking highlight */
    cursor: pointer;
    box-sizing: border-box;
    font-weight: 700;
    font-size: 13px;
    line-height: 20px;
    font-family: inherit;
}
.info-btn:hover { background: #eef7ff; color: #014a86; border-color: #dbeafe; }
/* info modal */
#poi-info-modal { position: fixed; inset: 0; display: none; align-items: center; justify-content: center; z-index: 60; }
#poi-info-modal .overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.5); }
#poi-info-modal .panel { position: relative; background: white; border-radius: 0.5rem; padding: 1rem; width: 92%; max-width: 520px; box-shadow: 0 10px 30px rgba(0,0,0,0.2); z-index: 61; }
#poi-info-modal img { width: 100%; height: 180px; object-fit: cover; border-radius: 0.375rem; margin-bottom: 0.5rem; }
#poi-info-modal .meta { display:flex; align-items:center; justify-content:space-between; gap:0.5rem; }
#poi-info-modal .meta h4 { margin:0; font-size:1.1rem; }
#poi-info-modal .meta .price { color:#0366c0; font-weight:700; }
#poi-info-modal .desc { margin-top:0.5rem; color:#374151; }
#poi-info-modal .close-btn { position:absolute; top:0.5rem; right:0.5rem; background:transparent; border:0; font-size:1.25rem; cursor:pointer; }

.guest-registration-form {
    width: 100%;
    max-width: 500px;
    margin: 40px auto;
    padding: 20px;
    background-color: #f5f5f5;
    border: 1px solid #e5e5e5;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
}
.guest-registration-form h3 {
    text-align: center;
    margin-bottom: 20px;
}
.guest-registration-form .form-group {
    margin-bottom: 20px;
}
.guest-registration-form label {
    display: block;
}
.guest-registration-form input {
    width: 100%;
    padding: 10px;
    border: 1px solid #e5e5e5;
}
.guest-registration-form button {
    width: 100%;
    background-color: #4CAF50;
    color: white;
    padding: 14px 20px;
    margin: 8px 0;
    border: none;
    cursor: pointer;
}

.back-button {
    background-color: #2196F3;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
}

.back-button2 {
    background-color: #2196F3;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    padding: 14px 30px;
    border-radius: 8px;
    font-size: 1.2em;
    font-weight: bold;
    margin-top: 25px;
    gap: 8px;
    margin-left: auto; /* Push button to the right */
    margin-right: auto; /* Center on small screens */
}

.back-button3 {
    background-color: #2196F3;
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    padding: 14px 30px;
    border-radius: 8px;
    font-size: 1.3em;
    font-weight: bold;
    margin-top: 30px;
}

.tab-button {
    background: none;
    border: none;
    border-left: 5px solid transparent; /* Border for active indicator */
    padding: 15px 20px;
    text-align: left;
    font-size: 1.1em;
    color: #607D8B;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, border-left-color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.tab-button i {
    font-size: 1.3em;
    color: #B0BEC5; /* Icon color */
    transition: color 0.3s ease;
}

.tab-button:hover:not(.active) {
    background-color: #ECEFF1; /* Lighter hover background */
    color: #455A64;
}

.tab-button.active {
    background-color: #E3F2FD; /* Light blue background for active tab */
    border-left-color: #2196F3; /* Blue border for active indicator */
    color: #2196F3; /* Blue text for active tab */
    font-weight: 600;
}

.tab-button.active i {
    color: #2196F3; /* Blue icon for active tab */
}

/* Base styles for button group (horizontal by default) */
.button-group {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px; /* NEW: Adds consistent spacing between buttons */
    flex-wrap: wrap; /* NEW: Allows wrapping if needed on medium screens */
    width: 100%;
    margin: 20px 0; /* NEW: Top/bottom margin for breathing room */
}

/* Ensure buttons don't shrink in row layout */
.button-group .action-btn {
    flex: 0 0 auto; /* Don't grow/shrink; keep natural width */
    min-width: 140px; /* NEW: Minimum width for usability */
    white-space: nowrap; /* Prevent text wrapping in buttons */
}

.button-group .submit-payment-btn {
    width:40%;
}

.terminal-display {
    transition: opacity 0.2s;
}
.relative img {
    transition: opacity 0.2s;
}

/* === SHRINK & OPTIMIZE ROUTE CARD HEIGHT === */

.route-pair {
    min-height: unset !important; /* Override any fixed height */
    padding: 1rem 0 !important;   /* Reduce vertical padding on the container */
}

.route-pair > div {
    padding: 1.25rem 1.5rem !important; /* Tighter padding inside each card */
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.75rem; /* Reduced spacing between elements */
}

.route-pair h4 {
    font-size: 1.125rem !important;    /* 18px instead of 20–22px */
    line-height: 1.3 !important;
    margin: 0 !important;
}

.route-pair .text-4xl {
    font-size: 2.5rem !important;     /* Reduced from 4xl (64px) → 40px */
    margin: 0.25rem 0 !important;
}

.route-pair .pt-4 {
    padding-top: 0.75rem !important;  /* Less space before price */
}

.route-pair .text-3xl {
    font-size: 2rem !important;       /* £200 becomes slightly smaller */
}

.route-pair .text-sm {
    font-size: 0.8rem !important;     /* "One way • 1h 30m" smaller */
}

.route-pair--active {
    background-color: #CFD8DC !important;
    border: 2px solid #8BC34A;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

.route-pair:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Optional: Slightly smaller Select button on mobile */
@media (max-width: 768px) {
    .route-pair .select-fixed-route {
        padding: 0.65rem 1.25rem !important;
        font-size: 0.95rem !important;
    }
}

@media (max-width: 480px) { /* Adjust for very small screens */
    .item-info-container {
        gap: 10px;
    }
    .detail-row .detail-label,
    .detail-row .detail-value {
        flex: 1 1 100%; /* Stack on top of each other */
        max-width: 100%;
        text-align: left !important; /* Force left alignment */
        padding-right: 0;
        padding-left: 0;
    }
    .detail-row .detail-label {
        margin-bottom: 5px; /* Space between label and its value when stacked */
    }
}

@media (min-width: 768px) {
    #first-row, #return-row {
        flex-direction: row;
    }
    .search-input-group {
        flex-direction: row;
        gap: 0; /* Remove gap for desktop horizontal layout */
    }
    /* Create visual dividers for desktop layout */
    .search-input-group > div:not(:last-child) {
        border-right: 1px solid #e5e7eb; /* Light gray border for separation */
    }
    /* Reset specific border radii for the horizontal layout */
    .search-input-group > div:first-child {
        border-top-right-radius: 0;
        border-bottom-right-radius: 0;
    }
    .search-input-group > div:nth-child(2) {
        border-radius: 0;
    }
    .search-input-group > div:nth-last-child(3) {
        border-radius: 0;
    }
    .search-input-group > div:nth-last-child(2) {
        border-top-left-radius: 0;
        border-bottom-left-radius: 0;
    }
    /* Adjust widths for the taxi search fields: 2 wide location fields, 2 narrow date/time fields */
    .search-input-group > div.location-field {
        flex: 2; /* Give location fields twice the width of date/time fields */
    }
    .search-input-group > div.small-field {
        flex: 1; /* Standard width for date/time */
    }
    /* Fix button radius */
    .search-input-group > button {
        border-top-left-radius: 0;
        border-bottom-left-radius: 0;
    }
}

@media (max-width: 768px) {
    /* Existing responsive adjustments */
    .item-info-container {
        flex-direction: column; /* Stack vertically on tablets/mobile */
        gap: 15px;
    }
    .additional-content {
        padding: 20px 10px;
    }
    .gallery-grid {
        gap: 15px;
    }
    .gallery-item img {
        height: 160px;
    }
    .gallery-item h3 {
        font-size: 1.2em;
        margin: 12px 12px 6px;
    }
    .gallery-item .booking-link {
        padding: 10px 12px;
        margin: 0 12px 12px;
        font-size: 0.9em;
    }

    .site-footer {
        padding: 30px 15px 15px;
    }
    .footer-content {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }
    .footer-section {
        text-align: center;
        flex-basis: auto;
        min-width: unset;
        width: 100%;
    }
    .footer-section p i {
        margin-right: 5px;
    }
    .footer-about .footer-logo {
        margin: 0 auto 15px;
    }
    .social-links {
        display: flex;
        justify-content: center;
    }
    .social-links a {
        margin: 0 10px;
    }
    .checkout-title {
        font-size: 1.6em;
    }
    .auth-section h3, .order-summary-section h3, .payment-section h3 {
        font-size: 1.6em;
    }

    .menu-items {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px; /* adjust as needed */
        right: 0;
        left: auto;
        width: fit-content;
        color: white;
        background: #000;
        z-index: 1000;
        align-items: flex-start;
        text-align: right;
        box-shadow: -2px 2px 10px rgba(0,0,0,0.15);
        margin-left: 1rem;
    }
    .menu-items.open {
        display: flex;
    }
    .hamburger {
        display: block;
    }
    /* Car selection row adjustments for smaller tablets/large phones */
    .car-selection-row {
        padding-bottom: 15px; /* Less padding when stacked */
    }
    .car-details-and-features {
        padding: 15px;
    }
    .car-type-name {
        font-size: 1.5em;
    }
    .car-capacity-row {
        font-size: 0.95em;
    }
    .car-features {
        font-size: 0.85em;
    }
    .ticket-container {
        width: 95%;
    }
    .ticket-title {
        font-size: 1.6em;
    }    
    .car-details {
        flex-direction: column; /* Stack car details vertically */
        align-items: center;
        text-align: center;
        gap: 20px; /* Space between car info block and value */
    }
    .car-visual-and-info {
        flex-direction: column; /* Stack car icon and info vertically */
        align-items: center;
        gap: 15px;
        width: 100%; /* Take full width to center its contents */
    }
    .car-capacity {
        flex-direction: column; /* Stack capacity items on small screens */
        gap: 15px;
        align-items: center;
    }
    .ticket-value-display {
        margin-left: 0; /* Remove left margin when stacked */
        margin-top: 20px; /* Add more top margin for separation */
        font-size: 2em; /* Slightly smaller font when stacked vertically */
        width: 100%; /* IMPORTANT: Take full width of the parent ticket */
        display: flex; /* Make it a flex container */
        flex-direction: column; /* Stack price and button vertically */
        align-items: center; /* Center content horizontally */
    }    
    .select-car-button {
        /* 1. Ensure it is displayed and overrides any 'display: none' */
        display: block; 
        
        /* 2. Give it a proper mobile width for easy tapping */
        width: 90%; 
        max-width: 350px; 
        
        /* 3. Center the button and add necessary spacing */
        margin: 15px auto 0 auto; 
        padding: 14px; /* Increase touch target size */
        font-size: 1.1rem;
        box-sizing: border-box;
    }
    .button-group {
        flex-direction: column; /* NEW: Stack buttons one below another */
        align-items: stretch; /* NEW: Full-width buttons when stacked */
        gap: 10px; /* Slightly smaller gap for vertical */
    }

    .button-group .action-btn {
        width: 100%; /* NEW: Full-width for easy tapping */
        max-width: 300px; /* Cap width to prevent over-stretching on wider mobiles */
        justify-content: center; /* Center icons/text */
    }

    /* Specific overrides for back buttons if needed */
    .back-button2 {
        order: -1; /* NEW: Optional: Ensure 'Back' appears first in stack */
    }    
    .button-group .submit-payment-btn {
        width: 100%; /* NEW: Full-width for easy tapping */
    }

    .radio-tab {
        font-size: 0.75rem; /* Smaller text on mobile */
        height: py-2; /* Shorter height if needed */
    }
}

@media (max-width: 992px) { /* Tablets and smaller laptops */

    .main-content-area {
        flex-direction: column;
        align-items: center; /* Center stacked items */
        gap: 40px; /* More space between stacked sections */
    }

    .ticket-display-area {
        flex: 0 0 auto; /* Remove fixed width, let it adjust */
        width: 90%; /* Take more width on smaller screens */
        max-width: 450px; /* Maintain max width */
    }

    .car-selection-area {
        flex: 0 0 auto; /* Remove flex-grow, let it adjust */
        width: 90%; /* Take more width on smaller screens */
        min-width: unset; /* Remove min-width constraint */
    }

    /* Car selection row adjustments */
    .car-selection-row {
        flex-direction: column; /* Stack image and details vertically */
        align-items: center;
        text-align: center;
        padding-bottom: 20px; /* Add padding at bottom for stacked button */
    }

    .car-image-wrapper {
        flex: 0 0 auto;
        width: 100%;
        height: auto; /* NEW: Allow content to set height (fixes overflow) */
        min-height: 200px; /* NEW: Optional minimum to maintain visual balance; adjust based on shortest content */
        border-radius: 12px 12px 0 0;
        justify-content: space-between; /* NEW: Distribute space evenly; pushes button container to bottom reliably */
    }

    .car-image-wrapper img {
        border-radius: 12px 12px 0 0;
        max-height: 140px; /* OPTIONAL: Slightly reduce to give more room for button on very small screens */
    }

    /* Ensure button container takes full available space at bottom */
    .car-image-wrapper > .flex { /* Targets the button's parent div with class "flex" */
        width: 100%;
        margin-top: auto; /* Reinforce mt-auto for flex column */
        padding-top: 10px; /* NEW: Add breathing room above button */
    }
    .car-details-and-features {
        padding: 20px;
        align-items: center; /* Center contents when stacked */
        text-align: center;
        gap: 10px; /* Adjust gap */
    }

    .car-capacity-row {
        flex-direction: column; /* Stack capacity items */
        gap: 10px;
    }

    .car-features {
        margin-bottom: 15px; /* Adjust margin */
    }

    .car-features li {
        justify-content: center; /* Center features with checkmarks */
    }
/*
    .select-car-button {
        align-self: center; 
        width: auto; 
        min-width: 150px;
    }
*/
    /* Gallery and Footer adjustments (existing) */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .additional-content h2 {
        font-size: 2em;
    }

    .footer-content {
        justify-content: center;
        gap: 25px;
    }
    .footer-section {
        min-width: 200px;
        flex-basis: 45%;
    }

}

@media (max-width: 576px) { /* Mobile phones */
    /* Existing responsive adjustments */
    .additional-content h2 {
        font-size: 1.8em;
        margin-bottom: 25px;
    }
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 350px;
    }
    .gallery-item img {
        height: 200px;
    }
    /* Car selection row adjustments for mobile */
    .car-selection-row {
        min-height: unset; /* Allow height to be dynamic */
    }
    .car-image-wrapper {
        min-height: 220px; /* NEW: Slightly taller minimum for stacked capacity/features above */
        padding: 10px; /* NEW: Add internal padding to prevent button from hugging the bottom edge */
    }    
    .select-car-button {
        padding: 12px 16px; /* NEW: Slightly smaller padding for mobile touch targets without losing usability */
        font-size: 1rem; /* NEW: Reduce text size if needed to fit */
    }
    .auth-box {
        padding: 20px;
    }
    .auth-box h4 {
        font-size: 1.3em;
    }
    .auth-form label, .payment-form label {
        font-size: 0.9em;
    }
    .auth-form input, .payment-form input {
        padding: 10px;
    }
    .payment-form h4 {
        font-size: 1.4em;
    }
    .submit-payment-btn {
        font-size: 1em;
    }
    .order-confirmation-section h3 {
        font-size: 1.6em;
    }
    .order-confirmation-section p {
        font-size: 0.95em;
    }
    .tab-button {
        font-size: 0.85em;
        padding: 10px 5px;
    }
    .tab-button i {
        font-size: 1.1em;
    }
    .button-group {
        gap: 8px;
        margin: 15px 0;
    }

    .button-group .action-btn {
        padding: 12px 16px; /* NEW: Larger touch targets (~48px height) */
        font-size: 1rem; /* Slightly smaller text if needed */
    }    
    .button-group .submit-payment-btn {
        width: 100%; /* NEW: Full-width for easy tapping */
    }

}

/* Processing visual state: global wait cursor + spinner overlay */
.processing, .processing * {
    cursor: wait !important;
}
.processing-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,0.45);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    pointer-events: none; /* allow overlay to be non-interactive except cursor */
}
.processing-overlay .spinner {
    width: 48px;
    height: 48px;
    border: 6px solid rgba(0,0,0,0.12);
    border-top-color: #2196F3;
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 600px) {
    .site-name {
        font-size: 1.8em;
        margin-right: 15px;
    }
    .search-criteria-box {
        width: 95%;
        padding: 20px;
    }
    .search-title {
        font-size: 1.6em;
    }
    .search-fields-grid {
        grid-template-columns: 1fr;
    }
    .ticket-container {
        width: 95%;
    }
    .ticket-title {
        font-size: 1.6em;
    }

    /* Adjust car details for small screens */
    .car-details {
        flex-direction: column; /* Stack car details vertically */
        align-items: center;
        text-align: center;
        gap: 20px; /* Space between car info block and value */
    }

    .car-visual-and-info {
        flex-direction: column; /* Stack car icon and info vertically */
        align-items: center;
        gap: 15px;
        width: 100%; /* Take full width to center its contents */
    }

    .car-capacity {
        flex-direction: column; /* Stack capacity items on small screens */
        gap: 15px;
        align-items: center;
    }

    .ticket-value-display {
        margin-left: 0; /* Remove left margin when stacked */
        margin-top: 15px; /* Add top margin when stacked */
        font-size: 2em; /* Slightly smaller font when stacked vertically */
    }

    .cart-summary > div {
        flex-direction: column !important;
        gap: 1rem !important;
    }
    .cart-notes-charges-row {
        flex-direction: column !important;
        gap: 0.5rem !important;
    }
    .cart-notes-charges-row > div {
        min-width: 0 !important;
        margin-left: 0 !important;
    }
    .cart-summary label {
        float: none !important;
        display: block;
        margin-bottom: 4px;
    }
}
