/* Custom Styles */
:root {
    /* THEME: Orange primary */
    --app-orange: #f68409;
    --app-orange-dark: #e66b00; /* Darker orange for hover */
    --app-orange-light-bg: #fff8eb;
    
    /* THEME: Consistent field styling */
    --app-field-border-color: #ddd;
    --app-field-bg: #fff;
    --app-field-border-radius: 6px;
    --app-field-font-size: 13px; /* Smaller text */
    --app-field-placeholder-font-size: 13px; /* Smaller text */
    --app-field-placeholder-color: #999;
    --app-field-padding: 0.7rem 0.9rem; 
    --app-field-shadow: 0 1px 2px rgba(0,0,0,0.05) inset;
    --app-field-divider-color: #e6e6e6;
    --app-field-min-height: 44px; /* Touch target size */

    /* Mobile slider card sizing */
    --slider-card-gap: 8px;
    /* Calculation for 3 cards visible */
    --slider-card-width-3: calc((100% - (2 * var(--slider-card-gap))) / 3);
}



.bg-blur::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: var(--bg-image, none);
    background-size: cover;
    background-position: center;
    filter: blur(8px);
    z-index: -1;
    transition: background-image 0.5s ease-in-out;
}

/* LAYOUT:
  - Centered container
*/
.main-container {
    padding-top: 2rem;
    padding-bottom: 2rem;
    max-width: 1140px; /* Centered width */
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;  /* Add side padding */
    padding-right: 1rem; /* Add side padding */
}

.booking-card {
    background-color: #ffffff;
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    padding: 1.75rem;
    height: 100%;
    /* ANIMATION: Blur effect */
    transition: filter 0.5s ease-out;
}

/* BLUR: State when cart is open */
#booking-wrapper.is-blurred .booking-card {
    filter: blur(5px);
}

.booking-header h2 {
    font-weight: 600;
    font-size: 1.5rem;
    color: #212529;
    margin-bottom: 0; /* Remove margin for flex alignment */
}
.booking-header p {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
}
.karma-banner {
    background-color: var(--app-orange-light-bg);
    border: 1px solid #fdeccf;
    color: var(--app-orange);
    border-radius: var(--app-field-border-radius);
    padding: 0.6rem 1rem;
    font-weight: 500;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

/* *** NEW: Header title wrapper *** */
.booking-header-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.25rem; /* Space between title and subtitle */
}

/* *** NEW: Reset Button Style *** */
.btn-reset-form {
    background: none;
    border: none;
    color: #000; /* Black color */
    font-size: 0.85rem; /* Small text */
    font-weight: 500;
    padding: 0;
    margin: 0;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}
.btn-reset-form:hover {
    opacity: 1;
}


/* SPORT SELECTION (Desktop):
  - Using Bootstrap row
*/
.sport-grid-desktop {
    /* This is now a Bootstrap .row, no extra styles needed */
}

.grid-radio-input {
    display: none; 
}
.grid-radio-input + label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 0.25rem;
    border: 1px solid var(--app-field-border-color); /* Updated border */
    border-radius: 8px; 
    cursor: pointer;
    text-align: center;
    font-weight: 500;
    font-size: 0.8rem; /* Smaller text */
    transition: all 0.2s ease-in-out;
    background-color: #fff;
    min-height: 80px; /* Smaller height */
    color: #495057;
    width: 100%;
    height: 100%;
}
.grid-radio-input + label i {
    font-size: 1.5rem; /* Smaller icon */
    color: var(--app-orange) !important; /* Orange icon */
    margin-bottom: 0.35rem;
}
.grid-radio-input:checked + label {
    border-color: var(--app-orange) !important;
    background-color: var(--app-orange-light-bg);
    box-shadow: 0 0 0 3px rgba(246, 132, 9, 0.25) !important;
    color: #212529;
    font-weight: 600;
}
.grid-radio-input + label:hover {
    border-color: var(--app-orange);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.04);
}

/* --- Form Labels and Inputs (Themed) --- */
.form-label {
    font-weight: 500;
    color: #495057;
    margin-bottom: 0.5rem;
    font-size: 0.875rem; 
}

/* FIX: Force all form controls to have the same height */
.form-control, 
.form-select,
.input-group,
.duration-control,
.custom-select-trigger {
    border-radius: var(--app-field-border-radius);
    border: 1px solid var(--app-field-border-color);
    font-size: var(--app-field-font-size);
    background-color: var(--app-field-bg);
    color: #000;
    height: var(--app-field-min-height); /* Use height, not min-height */
    width: 100%;
    font-weight: 300; /* Thin text */
}

.form-control {
    box-shadow: var(--app-field-shadow);
    padding: var(--app-field-padding);
}
.form-control::placeholder {
    color: var(--app-field-placeholder-color);
    font-weight: 300; /* Thin text */
    font-size: var(--app-field-placeholder-font-size);
}
.form-control:hover {
    border-color: #aaa;
}
.form-control:focus {
    border-color: var(--app-orange);
    box-shadow: 0 0 0 3px rgba(246, 132, 9, 0.25) !important;
    outline: none;
}
.form-control[readonly] {
    background-color: #fff;
}

/* Custom Dropdown Trigger Input */
.custom-select-trigger {
    cursor: pointer;
    text-align: left; /* Ensure text aligns left */
    padding: var(--app-field-padding); /* Match form-control */
    padding-right: 2.5rem !important;
    background-clip: padding-box;
}
/* Style placeholder text */
.custom-select-trigger.placeholder {
     color: var(--app-field-placeholder-color);
    font-weight: 300; /* Thin text */
    font-size: var(--app-field-placeholder-font-size);
}
/* Add the dropdown arrow */
.custom-select-trigger::after {
    content: '';
    border: solid #333;
    border-width: 0 2px 2px 0;
    display: inline-block;
    padding: 3px;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
    position: absolute;
    right: 1.25rem;
    top: 50%;
    margin-top: -3px; 
}
.custom-select-trigger[aria-expanded="true"]::after {
    transform: rotate(-135deg);
    margin-top: 0;
}
.form-control:focus,
.custom-select-trigger:focus,
.custom-select-trigger[aria-expanded="true"] {
    border-color: var(--app-orange);
    box-shadow: 0 0 0 3px rgba(246, 132, 9, 0.25) !important;
    outline: none;
}


/* Validation */
.has-validation {
    position: relative;
}
.form-control.is-invalid, 
.was-validated .form-control:invalid {
    border-color: #dc3545;
    background-image: none; /* Hide default icon */
    padding-right: 0.9rem;
}
.form-control.is-invalid:focus {
     box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.25) !important;
}
.invalid-feedback {
    display: none; /* Hide by default */
    font-size: 0.8rem;
    width: 100%;
    margin-top: 0.25rem;
    color: #dc3545; /* Make sure it's red */
}
/* Show feedback only when invalid */
.form-control.is-invalid ~ .invalid-feedback,
.was-validated .form-control:invalid ~ .invalid-feedback {
    display: block;
}


/* Date field with icon on left */
.input-group {
    border: none; /* Remove double border */
    box-shadow: var(--app-field-shadow);
    padding: 0; /* Handled by children */
}
.input-group .form-control {
     border-left: none;
     border-radius: 0 var(--app-field-border-radius) var(--app-field-border-radius) 0;
     border-top-width: 1px; /* Ensure borders are even */
     border-right-width: 1px;
     border-bottom-width: 1px;
}
.input-group .input-group-text.icon-orange {
    border-right: none;
    border-left: 1px solid var(--app-field-border-color);
    border-top: 1px solid var(--app-field-border-color);
    border-bottom: 1px solid var(--app-field-border-color);
    border-radius: var(--app-field-border-radius) 0 0 var(--app-field-border-radius);
    color: var(--app-orange); /* Orange Icon */
    background-color: var(--app-field-bg);
}
.form-control:focus ~ .input-group-text.icon-orange {
    border-color: var(--app-orange);
}

/* Custom Dropdown Menus */
.dropdown-menu.custom-dropdown {
    width: 100%; 
    max-height: 200px;
    overflow-y: auto;
    border-radius: var(--app-field-border-radius);
    border: 1px solid var(--app-field-border-color);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    background-color: var(--app-field-bg);
    padding: 0.25rem;
    font-size: var(--app-field-font-size);
    margin-top: 0.25rem !important;
}

/* COURT Dropdown: Small text, bold price */
#court-select-dropdown .dropdown-item,
#duration-select-dropdown .dropdown-item {
    font-size: 13px; /* Small text */
    padding: 0.6rem 0.75rem;
    color: #000;
    font-weight: 300; /* Light text */
    border-top: 1px solid var(--app-field-divider-color); /* Gray separators */
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
#court-select-dropdown .dropdown-item:first-child,
#duration-select-dropdown .dropdown-item:first-child {
    border-top: none;
}
#court-select-dropdown .dropdown-item:hover,
#duration-select-dropdown .dropdown-item:hover {
    background-color: #f4f4f4;
}
#court-select-dropdown .dropdown-item:active,
#court-select-dropdown .dropdown-item.active,
#duration-select-dropdown .dropdown-item:active,
#duration-select-dropdown .dropdown-item.active {
    background-color: var(--app-orange);
    color: #fff;
}
#court-select-dropdown .dropdown-item span {
    font-weight: 700; /* Bold Price */
}
#court-select-dropdown .dropdown-item-text {
    padding: 0.6rem 0.75rem;
    color: #6c757d;
    font-style: italic;
}


/* TIME Dropdown: 2-col button layout */
#time-select-dropdown {
    padding: 0.5rem;
}
#time-select-dropdown .row {
    --bs-gutter-x: 0.5rem;
    margin-left: 0;
    margin-right: 0;
}
#time-select-dropdown .time-slot-btn {
    font-size: 13px; /* Small text */
    font-weight: 500;
    color: #000;
    background-color: var(--app-field-bg);
    border: 1px solid var(--app-field-border-color); /* Gray border */
    border-radius: 4px; /* Rounded corners */
    padding: 0.5rem 0.25rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 0.5rem;
    width: 100%;
}
#time-select-dropdown .time-slot-btn:hover {
    background-color: var(--app-orange-light-bg); /* Light orange hover */
    border-color: var(--app-orange);
    color: #000;
}
#time-select-dropdown .time-slot-btn:active,
#time-select-dropdown .time-slot-btn.active {
    background-color: var(--app-orange);
    border-color: var(--app-orange);
    color: #fff;
}


/* DURATION CONTROL (Themed & Aligned) */
.duration-control {
    display: flex;
    border: none; /* Remove double border */
    padding: 0; /* Handled by children */
    /* Fix: Ensure it uses the same border as other fields */
    border: 1px solid var(--app-field-border-color);
}
.duration-control .form-control {
    border: none; /* Remove borders, parent .duration-control has it */
    border-radius: 0;
    background-color: var(--app-field-bg) !important;
    text-align: center;
    font-weight: 300; /* Thin text */
    padding: 0.5rem;
    height: 100%;
    z-index: 2;
    box-shadow: none !important; /* Remove inner shadow */
}
.duration-control .btn {
    background-color: var(--app-orange);
    border: none; /* Remove borders */
    color: #fff;
    font-weight: 600;
    font-size: 1.25rem;
    line-height: 1;
    padding: 0 1rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    border-radius: 0;
}
.duration-control .btn:hover {
    background-color: var(--app-orange-dark);
    border-color: var(--app-orange-dark);
    color: #fff;
}
.duration-control .btn:first-child {
    border-right: 1px solid var(--app-field-border-color); /* Add divider */
    border-radius: var(--app-field-border-radius) 0 0 var(--app-field-border-radius);
}
.duration-control .btn:last-child {
    border-left: 1px solid var(--app-field-border-color); /* Add divider */
    border-radius: 0 var(--app-field-border-radius) var(--app-field-border-radius) 0;
}
.duration-control .btn:focus {
    box-shadow: 0 0 0 3px rgba(246, 132, 9, 0.25) !important;
}


/* --- Calendar Theme (Orange) --- */
.flatpickr-calendar {
    border-radius: 6px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
    border: none !important;
    font-family: "Inter", sans-serif;
    font-size: 0.875rem;
}
/* Top bar: Orange background, white text */
.flatpickr-months {
    background-color: var(--app-orange) !important; 
    color: #fff !important; 
    border-radius: 6px 6px 0 0 !important;
    padding: 0.5rem 0.75rem !important;
}
/* Fix: Target inner elements for full orange bar */
.flatpickr-months .flatpickr-month,
.flatpickr-months .flatpickr-current-month,
.flatpickr-months .numInputWrapper {
    background-color: var(--app-orange) !important; 
    color: #fff !important;
    font-weight: 500 !important;
}
.flatpickr-current-month input.cur-year {
    color: #fff !important;
    font-weight: 500 !important;
}
.flatpickr-prev-month, .flatpickr-next-month {
    color: #fff !important;
    fill: #fff !important;
}
.flatpickr-prev-month:hover, .flatpickr-next-month:hover {
    color: var(--app-orange-light-bg) !important;
}
.flatpickr-weekdays {
    background-color: var(--app-orange-light-bg) !important;
    color: var(--app-orange) !important;
    padding: 0.25rem 0 !important;
}
.flatpickr-weekday {
    color: var(--app-orange) !important;
    font-weight: 500 !important;
    font-size: 0.7rem !important;
}
.dayContainer {
    padding: 0 0.5rem 0.5rem 0.5rem !important;
    background-color: #fff !important;
    border-radius: 0 0 6px 6px !important;
}
.flatpickr-day {
    color: #495057 !important;
    font-weight: 400 !important;
}
.flatpickr-day:hover {
    background-color: var(--app-orange-light-bg) !important;
    color: var(--app-orange) !important;
    border-radius: 50% !important;
}
.flatpickr-day.today {
    border-color: var(--app-orange) !important;
    color: var(--app-orange) !important;
    border-radius: 50% !important;
}
.flatpickr-day.selected {
    background-color: var(--app-orange) !important;
    border-color: var(--app-orange) !important;
    color: #fff !important;
    border-radius: 50% !important;
}


/* --- Mobile Slider (Overrides) --- */
.sport-slider-wrapper {
    position: relative;
    /* Add padding so arrows have space inside card */
    padding: 0 25px; 
    /* Remove negative margin to prevent overflow */
    margin: 0; 
}

/* Arrows: Orange, circular, outside */
.sport-slider-arrow {
    display: none; /* Hidden by default */
    position: absolute;
    top: 50%;
    transform: translateY(-50%); 
    z-index: 10;
    
    background-color: var(--app-orange);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 30px;  /* Smaller size */
    height: 30px; /* Smaller size */
    font-size: 0.8rem; /* Smaller icon */
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: background-color 0.2s ease;
    /* Vertically center arrow icon */
    line-height: 28px;
    text-align: center;
    padding: 0;
}
.sport-slider-arrow:hover {
    background-color: var(--app-orange-dark);
}
#slider-arrow-prev {
    left: 0; /* Position in the padding */
}
#slider-arrow-next {
    right: 0; /* Position in the padding */
}
.sport-slider-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Slider container */
.sport-slider-container {
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; /* Firefox */
}
.sport-slider-container::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}
/* The track that holds the cards */
.sport-grid-mobile {
    display: flex;
    flex-wrap: nowrap;
    gap: var(--slider-card-gap);
    padding: 0 2px;
}
/* This hides the original radio buttons on mobile */
.sport-grid-mobile .grid-radio-input {
    display: none;
}

/* Slider cards */
.sport-grid-mobile .col-auto {
    width: var(--slider-card-width-3); /* 3 boxes */
    flex-shrink: 0;
    scroll-snap-align: start;
    padding: 10px 0;
}
/* Make mobile slider cards smaller */
.sport-grid-mobile .grid-radio-input + label {
    min-height: 70px; /* Shorter */
    font-size: 0.75rem; /* Smaller text */
    padding: 0.5rem 0.25rem;
}
.sport-grid-mobile .grid-radio-input + label i {
    font-size: 1.5rem; /* Smaller icon */
}


/* --- Cart --- */
.cart-card-desktop {
    background-color: #ffffff;
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    padding: 0; /* No padding, header/body handles it */
    height: 100%;
    overflow: hidden; /* For border radius */
    
    /* Animation: Hidden by default */
    opacity: 0;
    transform: translateY(20px);
    visibility: hidden;
    transition: opacity 0.5s ease-out, transform 0.5s ease-out, visibility 0.5s, filter 0.3s ease-in-out;
}

/* State for when editing the booking */
.cart-card-desktop.is-editing {
    filter: blur(5px);
}


/* Cart Slide-up Animation */
@keyframes slideUpFade {
  from { 
    transform: translateY(100%); 
    opacity: 0; 
  }
  to { 
    transform: translateY(0); 
    opacity: 1; 
  }
}

.cart-wrapper-mobile {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1050;
    background-color: #fff;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.1);
    
    /* Animation: Hidden by default */
    transform: translateY(100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}
/* Visible states for both carts */
.cart-wrapper-mobile.is-visible,
.cart-card-desktop.is-visible {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}
/* Mobile cart specific animation */
.cart-wrapper-mobile.is-visible {
     animation: slideUpFade 0.5s ease-out forwards;
}

/* Cart Top Bar (Orange) */
.cart-top-bar {
    background-color: var(--app-orange);
    color: #fff;
    padding: 1rem 1.5rem;
    /* Match card radius */
    border-radius: 12px 12px 0 0; 
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.cart-top-bar h3 {
    color: #fff;
    font-weight: 600;
    font-size: 1.25rem;
    margin: 0;
}

/* Cart Body */
.cart-body {
    padding: 1.5rem;
}
.cart-empty-icon {
    font-size: 2.5rem;
    color: #adb5bd;
}

/* *** NEW: Cart Item Container *** */
#cart-items-container-desktop,
#cart-items-container-mobile {
    max-height: 400px; /* Set a max height for multi-item scroll */
    overflow-y: auto;
    margin-right: -1.5rem; /* Hide scrollbar visual */
    padding-right: 1.5rem; /* Add padding back */
}

.cart-item-card {
    border: 1px solid var(--app-field-divider-color);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}
.cart-item-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}
.cart-item-row .item-name {
    font-weight: 600;
    color: #212529;
    font-size: 1.1rem;
}
.cart-item-details {
    font-size: 0.9rem;
    color: #495057;
    margin-top: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--app-field-divider-color);
}
.cart-item-details span {
    display: block;
    margin-bottom: 0.25rem;
}
.cart-item-details i {
    width: 20px;
    display: inline-block;
    color: var(--app-orange);
}
.cart-item-price {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
}
.cart-item-price .location-text {
    font-weight: 300; /* Thin text */
    color: #666; /* Muted location text */
    font-size: 0.9rem; /* Smaller location text */
}
.cart-item-price .price-text {
    font-weight: 700; /* Bold Price */
    color: #000;
    font-size: 1.25rem;
}
.cart-item-price i {
    color: #6c757d; 
    font-size: 0.9rem;
    margin-right: 0.25rem;
}
.offer-banner {
    background-color: #f8f9fa;
    color: #495057;
    border-radius: var(--app-field-border-radius);
    padding: 0.75rem 1rem;
    font-weight: 500;
    font-size: 0.85rem;
    text-align: center;
    margin-bottom: 1rem;
}

/* Buttons */
.btn-primary {
    background-color: var(--app-orange) !important;
    border-color: var(--app-orange) !important;
    color: #fff !important;
    font-weight: 500;
    padding: 0.75rem 1.25rem;
    font-size: 1rem;
    border-radius: var(--app-field-border-radius);
}
.btn-primary:hover {
    background-color: var(--app-orange-dark) !important;
    border-color: var(--app-orange-dark) !important;
    color: #fff !important;
}
.btn-primary:focus {
    box-shadow: 0 0 0 3px rgba(246, 132, 9, 0.25) !important;
}

/* Proceed Button: Black */
.btn-proceed {
    background-color: #000 !important;
    border-color: #000 !important;
    color: #fff !important;
    font-weight: 600;
    padding: 0.75rem 1.25rem;
    font-size: 1rem;
    border-radius: var(--app-field-border-radius);
}
.btn-proceed:hover {
    background-color: #333 !important;
    border-color: #333 !important;
    color: #fff !imporant;
}
.btn-proceed:focus {
    box-shadow: 0 0 0 3px rgba(66, 70, 73, 0.5) !important;
}

.btn-edit-booking {
    color: #000;
    border-color: var(--app-field-border-color);
    font-weight: 500;
    padding: 0.75rem 1.25rem;
    font-size: 1rem;
    border-radius: var(--app-field-border-radius);
}
.btn-edit-booking:hover {
    background-color: #f8f9fa;
    border-color: #adb5bd;
}


/* --- Responsive Overrides --- */
@media (max-width: 991px) {
    /* Stack form/cart */
    .main-container {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
    
    /* Show mobile slider */
    .sport-slider-arrow {
        display: block;
    }
}
@media (max-width: 575px) {
    .main-container {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    .booking-card {
        padding: 1rem; /* Tighter padding on mobile */
    }
    .booking-header h2 {
        font-size: 1.25rem;
    }
    
    /* Tighter padding for slider arrows on small screens */
    .sport-slider-wrapper {
        padding: 0 20px;
        margin: 0;
    }
    #slider-arrow-prev {
        left: -5px;
    }
    #slider-arrow-next {
        right: -5px;
    }

    /* Stack form fields */
    .row.g-3 > .col-md-6 {
        width: 100%;
    }
    
    .cart-body {
        padding: 1rem;
    }
}


/* --- ADDITIONS FOR POOL BOOKING MODULE --- */

.pool-list-container {
    border: 1px solid var(--app-field-border-color);
    border-radius: var(--app-field-border-radius);
    /* NO SCROLL: max-height removed */
    background: var(--app-field-bg);
    box-shadow: var(--app-field-shadow);
}
/* Validation for the pool list */
.pool-list-container.is-invalid {
    border-color: #dc3545;
}
.pool-list-container.is-invalid ~ .invalid-feedback {
    display: block;
}


.pool-item-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--app-field-divider-color);
}
.pool-item-card:last-child {
    border-bottom: none;
}

.pool-item-info {
    display: flex;
    flex-direction: column;
}
.pool-item-info .pool-name {
    font-weight: 600;
    color: #212529;
    font-size: 0.95rem;
}
.pool-item-info .pool-price-base {
    font-weight: 300;
    color: #6c757d;
    font-size: 0.8rem;
}

.pool-item-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}
/* *** PRICE ALIGNMENT FIX *** */
.pool-item-controls .pool-price-total {
    font-weight: 500;
    color: #000; /* Black color */
    font-size: 0.9rem; /* Small font */
    width: 95px; /* WIDER for "AED 390.00" */
    text-align: right;
    white-space: nowrap; /* Prevent wrapping */
}

/* Stepper Control (Small, All-Orange) */
.stepper-control {
    display: flex;
    align-items: center;
    border: 1px solid var(--app-field-border-color);
    border-radius: var(--app-field-border-radius);
    overflow: hidden; /* Enforce border-radius */
    height: 32px; /* SMALLER */
}
.stepper-control .form-control {
    border: none;
    border-radius: 0;
    background-color: #fff !important;
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem; /* SMALLER */
    padding: 0.25rem;
    width: 34px; /* SMALLER */
    height: 100%;
    box-shadow: none !important;
    color: #000;
}
.stepper-control .btn-stepper {
    background-color: var(--app-orange); /* Orange button */
    border: none;
    color: #fff;
    font-weight: 700;
    font-size: 1rem; /* SMALLER */
    line-height: 1;
    padding: 0 0.6rem; /* SMALLER */
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    border-radius: 0;
}
.stepper-control .btn-stepper:hover {
    background-color: var(--app-orange-dark);
}
.stepper-control .btn-stepper:focus {
    box-shadow: 0 0 0 3px rgba(246, 132, 9, 0.25) !important;
}

/* --- VALIDATION HELPERS --- */
.input-group.is-invalid .form-control,
.dropdown.is-invalid .form-control {
    border-color: #dc3545;
}
.input-group.is-invalid .form-control:focus,
.dropdown.is-invalid .form-control:focus {
     box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.25) !important;
}

.input-group.is-invalid ~ .invalid-feedback,
.dropdown.is-invalid ~ .invalid-feedback {
    display: block;
}