/**
 * Location Pages CSS - ProAngles Media
 * Following ProAngles branding: Primary #c401cb, Dark backgrounds
 */

/* ========================================
   CSS Variables
   ======================================== */
:root {
    --location-primary: #c401cb;
    --location-primary-hover: #a601a8;
    --location-primary-light: rgba(196, 1, 203, 0.1);
    --location-dark: #000000;
    --location-dark-gray: #212121;
    --location-text-white: #ffffff;
    --location-text-light: #d1d1d1;
    --location-text-muted: #888888;
    --location-border: #e7e7e7;
    --location-border-dark: #333333;
    --location-success: #00d27a;
    --location-warning: #f5803e;
    --location-danger: #e63757;
}

/* ========================================
   Location Listing Page
   ======================================== */
.locations-page {
    background-color: var(--location-dark);
    min-height: 100vh;
    padding: 30px 0;
}

.locations-page-title {
    color: var(--location-text-white);
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 30px;
    text-align: center;
}

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

@media (max-width: 1200px) {
    .locations-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .locations-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .locations-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   Location Card
   ======================================== */
.location-card {
    background-color: var(--location-text-white);
    border: 1px solid var(--location-primary);
    border-radius: 5px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.location-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(196, 1, 203, 0.3);
}

.location-card-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background-color: #f5f5f5;
}

.location-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.location-card:hover .location-card-image img {
    transform: scale(1.05);
}

.location-card-body {
    padding: 15px;
    text-align: center;
}

.location-card-title {
    color: var(--location-dark);
    font-size: 16px;
    font-weight: 500;
    margin: 0 0 10px 0;
    line-height: 1.4;
    min-height: 45px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.location-card-price {
    color: var(--location-primary);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
}

.location-card .btn-book {
    display: inline-block;
    width: 100%;
    padding: 12px 20px;
    background-color: var(--location-primary);
    color: var(--location-text-white);
    border: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    text-transform: uppercase;
    transition: background-color 0.3s ease;
}

.location-card .btn-book:hover {
    background-color: var(--location-primary-hover);
    color: var(--location-text-white);
}

/* ========================================
   Location Show Page - Header
   ======================================== */
.location-show-page {
    background-color: var(--location-dark);
    min-height: 100vh;
    padding: 20px 0 50px;
}

.location-breadcrumb {
    padding: 15px 0;
}

.location-breadcrumb a {
    color: var(--location-text-light);
    text-decoration: none;
}

.location-breadcrumb a:hover {
    color: var(--location-primary);
}

.location-breadcrumb span {
    color: var(--location-text-muted);
}

/* ========================================
   Location Show Page - Image Carousel
   ======================================== */
.location-carousel-container {
    margin-bottom: 40px;
    border-radius: 10px;
    overflow: hidden;
}

.location-carousel .swiper-slide img {
    width: 100%;
    height: 450px;
    object-fit: cover;
}

.location-carousel .swiper-button-prev,
.location-carousel .swiper-button-next {
    color: var(--location-text-white);
    background-color: rgba(0, 0, 0, 0.5);
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.location-carousel .swiper-button-prev:after,
.location-carousel .swiper-button-next:after {
    font-size: 18px;
}

.location-carousel .swiper-pagination-bullet {
    background-color: var(--location-text-white);
    opacity: 0.5;
}

.location-carousel .swiper-pagination-bullet-active {
    background-color: var(--location-primary);
    opacity: 1;
}

@media (max-width: 768px) {
    .location-carousel .swiper-slide img {
        height: 300px;
    }
}

/* ========================================
   Location Show Page - Info Section
   ======================================== */
.location-info-section {
    background-color: var(--location-dark-gray);
    border-radius: 10px;
    padding: 25px;
    color: var(--location-text-white);
}

.location-info-section h1 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--location-text-white);
}

.location-info-section .description {
    color: var(--location-text-light);
    line-height: 1.7;
    margin-bottom: 25px;
}

.location-info-section h4 {
    color: var(--location-primary);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--location-border-dark);
    padding-bottom: 10px;
}

/* Operating Hours Table */
.operating-hours-table {
    width: 100%;
}

.operating-hours-table tr {
    border-bottom: 1px solid var(--location-border-dark);
}

.operating-hours-table tr:last-child {
    border-bottom: none;
}

.operating-hours-table td {
    padding: 10px 0;
    color: var(--location-text-light);
}

.operating-hours-table td:first-child {
    font-weight: 500;
    color: var(--location-text-white);
}

.operating-hours-table .closed {
    color: var(--location-danger);
}

.operating-hours-table .open {
    color: var(--location-success);
}

/* ========================================
   Location Show Page - Booking Section
   ======================================== */
.location-booking-section {
    background-color: var(--location-dark-gray);
    border-radius: 10px;
    padding: 25px;
    border: 1px solid var(--location-primary);
    max-height: calc(100vh - 100px);
    overflow-y: auto;
}

/* Custom scrollbar for booking section */
.location-booking-section::-webkit-scrollbar {
    width: 6px;
}

.location-booking-section::-webkit-scrollbar-track {
    background: var(--location-dark);
    border-radius: 3px;
}

.location-booking-section::-webkit-scrollbar-thumb {
    background: var(--location-primary);
    border-radius: 3px;
}

.location-booking-section::-webkit-scrollbar-thumb:hover {
    background: var(--location-primary-hover);
}

.location-booking-section h3 {
    color: var(--location-text-white);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.location-booking-section h3 i {
    color: var(--location-primary);
}

/* Calendar Overrides for Dark Theme */
.location-booking-section .fc {
    background-color: var(--location-dark);
    border-radius: 8px;
    padding: 10px;
}

.location-booking-section .fc-toolbar-title {
    color: var(--location-text-white) !important;
    font-size: 1rem;
}

.location-booking-section .fc-button {
    background-color: var(--location-primary) !important;
    border-color: var(--location-primary) !important;
}

.location-booking-section .fc-button:hover {
    background-color: var(--location-primary-hover) !important;
}

.location-booking-section .fc-daygrid-day {
    background-color: var(--location-dark-gray);
}

.location-booking-section .fc-daygrid-day-number {
    color: var(--location-text-white);
}

.location-booking-section .fc-day-today {
    background-color: var(--location-primary-light) !important;
}

.location-booking-section .fc-col-header-cell-cushion {
    color: var(--location-text-light);
}

/* Section Labels */
.booking-step-label {
    color: var(--location-primary);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    display: block;
}

/* Time Slots Grid */
.time-slots-container {
    margin: 20px 0;
}

.time-slots-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.time-slot {
    padding: 12px 8px;
    text-align: center;
    background-color: var(--location-dark);
    border: 2px solid var(--location-border-dark);
    border-radius: 5px;
    color: var(--location-text-white);
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
}

.time-slot:hover:not(.unavailable):not(.held) {
    border-color: var(--location-primary);
    background-color: var(--location-primary-light);
}

.time-slot.selected {
    background-color: var(--location-primary);
    border-color: var(--location-primary);
    color: var(--location-text-white);
}

.time-slot.unavailable {
    background-color: #1a1a1a;
    color: #555;
    cursor: not-allowed;
    text-decoration: line-through;
    border-color: #1a1a1a;
}

.time-slot.held {
    background-color: rgba(245, 128, 62, 0.2);
    border-color: var(--location-warning);
    color: var(--location-warning);
    cursor: not-allowed;
}

@media (max-width: 768px) {
    .time-slots-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 576px) {
    .time-slots-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Duration Selector */
.duration-container {
    margin: 20px 0;
}

.duration-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.duration-option {
    flex: 1;
    min-width: 70px;
    padding: 15px 10px;
    text-align: center;
    background-color: var(--location-dark);
    border: 2px solid var(--location-border-dark);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.duration-option:hover:not(.disabled) {
    border-color: var(--location-primary);
}

.duration-option.selected {
    border-color: var(--location-primary);
    background-color: var(--location-primary-light);
}

.duration-option.disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.duration-option .duration-hours {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--location-primary);
    line-height: 1;
}

.duration-option .duration-label {
    font-size: 12px;
    color: var(--location-text-muted);
    margin-top: 5px;
}

.duration-option.selected .duration-hours {
    color: var(--location-text-white);
}

/* Booking Summary */
.booking-summary {
    background: linear-gradient(135deg, var(--location-dark) 0%, #1a1a1a 100%);
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    border: 1px solid var(--location-border-dark);
}

.booking-summary .summary-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    color: var(--location-text-light);
}

.booking-summary .summary-row.total {
    border-top: 1px solid var(--location-border-dark);
    margin-top: 10px;
    padding-top: 15px;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--location-text-white);
}

.booking-summary .summary-row.total .price {
    color: var(--location-primary);
}

/* Add to Cart Button */
.btn-add-to-cart {
    width: 100%;
    padding: 15px 30px;
    background-color: var(--location-primary);
    color: var(--location-text-white);
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-add-to-cart:hover:not(:disabled) {
    background-color: var(--location-primary-hover);
}

.btn-add-to-cart:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Cart Hold Notice */
.cart-hold-notice {
    background-color: rgba(245, 128, 62, 0.1);
    border: 1px solid var(--location-warning);
    border-radius: 5px;
    padding: 10px 15px;
    margin-top: 15px;
    color: var(--location-warning);
    font-size: 13px;
    text-align: center;
}

/* ========================================
   Success Modal
   ======================================== */
.booking-success-modal .modal-content {
    background-color: var(--location-dark-gray);
    border: 1px solid var(--location-primary);
    color: var(--location-text-white);
}

.booking-success-modal .modal-header {
    border-bottom-color: var(--location-border-dark);
}

.booking-success-modal .btn-close {
    filter: invert(1);
}

.booking-success-modal .success-icon {
    color: var(--location-success);
    font-size: 4rem;
    animation: bounceIn 0.5s;
}

.booking-success-modal .booking-details {
    background-color: var(--location-dark);
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
}

.booking-success-modal .booking-details p {
    margin: 8px 0;
    display: flex;
    justify-content: space-between;
}

.booking-success-modal .btn-view-cart {
    background-color: var(--location-primary);
    border-color: var(--location-primary);
    color: var(--location-text-white);
}

.booking-success-modal .btn-view-cart:hover {
    background-color: var(--location-primary-hover);
}

@keyframes bounceIn {
    0% { transform: scale(0); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* ========================================
   Cart Booking Details Display
   ======================================== */
.cart-booking-details {
    background-color: var(--location-primary-light);
    border-left: 3px solid var(--location-primary);
    padding: 10px 15px;
    margin-top: 10px;
    border-radius: 0 5px 5px 0;
}

.cart-booking-details .booking-info {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 13px;
    color: var(--location-dark);
}

.cart-booking-details .booking-info span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.cart-booking-details .booking-info i {
    color: var(--location-primary);
}

/* ========================================
   Empty State
   ======================================== */
.locations-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--location-text-light);
}

.locations-empty-state i {
    font-size: 4rem;
    color: var(--location-text-muted);
    margin-bottom: 20px;
}

.locations-empty-state h3 {
    color: var(--location-text-white);
    margin-bottom: 10px;
}

.locations-empty-state p {
    color: var(--location-text-muted);
}

/* ========================================
   Loading State
   ======================================== */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--location-border-dark);
    border-top-color: var(--location-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ========================================
   Pagination
   ======================================== */
.locations-pagination {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.locations-pagination .pagination {
    gap: 5px;
}

.locations-pagination .page-link {
    background-color: var(--location-dark-gray);
    border-color: var(--location-border-dark);
    color: var(--location-text-white);
    padding: 10px 15px;
}

.locations-pagination .page-link:hover {
    background-color: var(--location-primary);
    border-color: var(--location-primary);
    color: var(--location-text-white);
}

.locations-pagination .page-item.active .page-link {
    background-color: var(--location-primary);
    border-color: var(--location-primary);
}

.locations-pagination .page-item.disabled .page-link {
    background-color: #1a1a1a;
    border-color: #1a1a1a;
    color: var(--location-text-muted);
}

/* ========================================
   RTL Support
   ======================================== */
[dir="rtl"] .cart-booking-details {
    border-left: none;
    border-right: 3px solid var(--location-primary);
    border-radius: 5px 0 0 5px;
}

[dir="rtl"] .location-carousel .swiper-button-prev,
[dir="rtl"] .location-carousel .swiper-button-next {
    transform: rotate(180deg);
}

/* FullCalendar RTL Arrow Fix */
[dir="rtl"] .location-booking-section .fc-icon-chevron-left,
[dir="rtl"] .location-booking-section .fc-icon-chevron-right {
    transform: scaleX(-1);
}

/* ========================================
   Single Image (No Carousel)
   ======================================== */
.location-single-image {
    border-radius: 10px;
    overflow: hidden;
}

.location-single-image img {
    width: 100%;
    height: 450px;
    object-fit: cover;
}

@media (max-width: 768px) {
    .location-single-image img {
        height: 300px;
    }
}

/* ========================================
   Selected Date Badge
   ======================================== */
.selected-date-badge {
    display: inline-block;
    background-color: var(--location-primary-light);
    border: 1px solid var(--location-primary);
    color: var(--location-text-white);
    padding: 8px 15px;
    border-radius: 20px;
    margin-bottom: 15px;
    font-size: 14px;
}

/* ========================================
   FC Day Selected Override
   ======================================== */
.location-booking-section .fc-day-selected {
    background-color: var(--location-primary-light) !important;
}

.location-booking-section .fc-day-selected .fc-daygrid-day-number {
    color: var(--location-primary) !important;
    font-weight: bold;
}

/* ========================================
   Alert Styles for Dark Theme
   ======================================== */
.location-booking-section .alert {
    background-color: var(--location-dark);
    border-color: var(--location-border-dark);
    color: var(--location-text-light);
}

.location-booking-section .alert-warning {
    border-color: var(--location-warning);
    color: var(--location-warning);
}

.location-booking-section .alert-info {
    border-color: var(--location-primary);
    color: var(--location-primary);
}

.location-booking-section .alert-danger {
    border-color: var(--location-danger);
    color: var(--location-danger);
}

/* ========================================
   Location Banner Style (Collection Banner)
   ======================================== */
.locations-banner-section {
    background-color: var(--location-dark);
    min-height: 100vh;
}

.locations-banner-title {
    color: var(--location-text-white);
    font-size: 2rem;
    font-weight: 600;
    margin: 20px 0 30px;
    text-align: center;
}

/* Location Banner Card */
.location-banner {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    display: block;
    border: 2px solid rgba(196, 1, 203, 0.3);
    transition: all 0.4s ease;
}

/* Purple glow border on hover */
.location-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 3px solid var(--location-primary);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 2;
    pointer-events: none;
}

.location-banner:hover::before {
    opacity: 1;
}

/* Purple corner accent triangle */
.location-banner::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 70px 70px 0;
    border-color: transparent var(--location-primary) transparent transparent;
    opacity: 0.9;
    z-index: 3;
    transition: all 0.3s ease;
}

[dir="rtl"] .location-banner::after {
    right: auto;
    left: 0;
    border-width: 70px 70px 0 0;
    border-color: var(--location-primary) transparent transparent transparent;
}

/* Animated purple glow on hover */
@keyframes purpleGlow {
    0%, 100% {
        box-shadow:
            0 0 20px rgba(196, 1, 203, 0.4),
            0 0 40px rgba(196, 1, 203, 0.2);
    }
    50% {
        box-shadow:
            0 0 30px rgba(196, 1, 203, 0.6),
            0 0 60px rgba(196, 1, 203, 0.3);
    }
}

.location-banner:hover {
    animation: purpleGlow 2s ease-in-out infinite;
    border-color: var(--location-primary);
}

.location-banner .img-part {
    transition: transform 0.5s ease;
    overflow: hidden;
}

.location-banner:hover .img-part {
    transform: scale(1.02);
}

.location-banner:hover .img-part img {
    transform: scale(1.05);
}

.location-banner .img-part img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

@media (max-width: 768px) {
    .location-banner .img-part img {
        height: 250px;
    }
}

/* Banner Content Overlay */
.location-banner-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Location Name Badge */
.location-name-badge {
    color: var(--location-text-white);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

@media (max-width: 576px) {
    .location-name-badge {
        font-size: 1.25rem;
    }
}

/* Price Badge */
.location-price-badge {
    display: inline-block;
    background-color: var(--location-primary);
    color: var(--location-text-white);
    padding: 10px 25px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(196, 1, 203, 0.4);
}

/* Book Button on Banner */
.location-book-btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: transparent;
    border: 2px solid var(--location-text-white);
    color: var(--location-text-white);
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.location-book-btn:hover {
    background-color: var(--location-primary);
    border-color: var(--location-primary);
    color: var(--location-text-white);
}

[dir="rtl"] .location-banner-content {
    align-items: flex-end;
    text-align: right;
}

/* Banner Link Wrapper */
.location-banner-link {
    display: block;
    text-decoration: none;
}

.location-banner-link:hover {
    text-decoration: none;
}

/* ========================================
   Cart Page - Booking Items Section
   ======================================== */

/* Cart Section Headers */
.cart-section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

.cart-section-header h4 {
    margin: 0;
    color: var(--location-text-white);
    font-size: 18px;
    font-weight: 600;
}

.cart-section-header i {
    color: var(--location-primary);
    font-size: 20px;
}

/* Booking Card in Cart */
.cart-booking-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.cart-booking-card:hover {
    border-color: rgba(196, 1, 203, 0.3);
    box-shadow: 0 5px 20px rgba(196, 1, 203, 0.1);
}

.cart-booking-card .booking-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cart-booking-card .booking-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--location-text-white);
    margin: 0;
}

.cart-booking-card .booking-remove {
    background: rgba(230, 55, 87, 0.1);
    border: 1px solid rgba(230, 55, 87, 0.3);
    color: var(--location-danger);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cart-booking-card .booking-remove:hover {
    background: var(--location-danger);
    color: var(--location-text-white);
}

/* Booking Info Grid */
.booking-info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

@media (max-width: 992px) {
    .booking-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .booking-info-grid {
        grid-template-columns: 1fr;
    }
}

.booking-info-item {
    background: rgba(0, 0, 0, 0.3);
    padding: 12px 15px;
    border-radius: 8px;
    text-align: center;
}

.booking-info-item .info-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.booking-info-item .info-label i {
    color: var(--location-primary);
}

.booking-info-item .info-value {
    color: var(--location-text-white);
    font-size: 14px;
    font-weight: 600;
}

.booking-info-item .info-value.price {
    color: var(--location-primary);
    font-size: 16px;
}

/* Cart Order Summary Section */
.cart-order-summary {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 25px;
}

.cart-order-summary h4 {
    color: var(--location-text-white);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-order-summary h4 i {
    color: var(--location-primary);
}

.summary-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.summary-line.subtotal-group {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
}

.summary-line.subtotal-group i {
    color: var(--location-primary);
    margin-right: 5px;
}

.summary-line.divider {
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
    margin-top: 10px;
    padding-top: 15px;
}

.summary-line.vat-line {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
}

.summary-line.total-line {
    border-top: 2px solid rgba(196, 1, 203, 0.5);
    margin-top: 15px;
    padding-top: 15px;
    font-size: 18px;
    font-weight: 600;
    color: var(--location-text-white);
}

.summary-line.total-line .amount {
    color: var(--location-primary);
    font-size: 22px;
}

/* Cart Checkout Button */
.cart-checkout-btn {
    display: block;
    width: 100%;
    padding: 15px 30px;
    background: linear-gradient(135deg, var(--location-primary), #9a01a0);
    color: var(--location-text-white);
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.3s ease;
}

.cart-checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(196, 1, 203, 0.4);
    color: var(--location-text-white);
    text-decoration: none;
}

.cart-checkout-btn i {
    margin-right: 10px;
}

/* ========================================
   Checkout Page - Section Cards
   ======================================== */
.checkout-section-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.checkout-section-card .checkout-title {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.checkout-section-card .checkout-title h3 {
    font-size: 18px;
    margin: 0;
    display: flex;
    align-items: center;
}

.checkout-section-card .checkout-title h3 i {
    color: var(--location-primary);
}

/* Rental Info Note */
.rental-info-note {
    background: linear-gradient(135deg, rgba(196, 1, 203, 0.1), rgba(196, 1, 203, 0.05));
    border: 1px solid rgba(196, 1, 203, 0.3);
    border-radius: 8px;
    padding: 12px 15px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.rental-info-note i {
    color: var(--location-primary);
    font-size: 16px;
}

.rental-info-note span {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

/* Checkout Booking Card */
.checkout-booking-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
}

.checkout-booking-card .booking-card-header h5 {
    color: var(--location-text-white);
    font-size: 16px;
    margin: 0 0 12px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.checkout-booking-card .booking-card-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.checkout-booking-card .booking-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.checkout-booking-card .detail-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
}

.checkout-booking-card .detail-label i {
    width: 20px;
    color: var(--location-primary);
}

.checkout-booking-card .detail-value {
    color: var(--location-text-white);
    font-size: 13px;
    font-weight: 500;
}

.checkout-booking-card .booking-price-row {
    margin-top: 8px;
    padding-top: 10px;
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
}

.checkout-booking-card .detail-value.price {
    color: var(--location-primary);
    font-size: 15px;
    font-weight: 600;
}

/* Booking Notice */
.booking-notice {
    background: rgba(196, 1, 203, 0.1);
    border-radius: 8px;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.booking-notice i {
    color: var(--location-primary);
}

.booking-notice span {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
}

/* Order Items Section */
.order-items-section {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.order-items-section .section-title,
.order-summary-section .section-title,
.payment-box .section-title {
    font-size: 16px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.order-items-section .section-title i,
.order-summary-section .section-title i,
.payment-box .section-title i {
    color: var(--location-primary);
}

.order-items-group {
    margin-bottom: 15px;
}

.order-items-group .group-title {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.order-items-group .group-title i {
    color: var(--location-primary);
}

/* Booking Details in Checkout */
.booking-details-checkout {
    color: var(--location-primary) !important;
    display: block;
    font-size: 12px;
    margin-top: 5px;
    line-height: 1.6;
}

.booking-details-checkout i {
    width: 15px;
}

/* Out of Stock Badge */
.out-of-stock-badge {
    display: inline-block;
    background: var(--location-danger);
    color: var(--location-text-white);
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 4px;
    margin-top: 5px;
}

/* Coupon Section */
.coupon-section {
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Order Summary Section */
.order-summary-section {
    padding-top: 15px;
    margin-bottom: 20px;
}

.order-summary-section .summary-row {
    padding: 8px 0;
}

.order-summary-section .vat-row {
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
    margin-top: 10px;
    padding-top: 12px;
}

.order-summary-section .total-row {
    border-top: 2px solid rgba(196, 1, 203, 0.5);
    margin-top: 10px;
    padding-top: 15px;
    font-size: 18px;
}

.order-summary-section .total-row .checkout-total {
    color: var(--location-primary);
    font-size: 20px;
}

/* Payment Box Enhancements */
.payment-box .section-title {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.terms-option {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Place Order Button */
.place-order-btn {
    width: 100%;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    margin-top: 20px;
    background: linear-gradient(135deg, var(--location-primary), #9a01a0);
    border: none;
    transition: all 0.3s ease;
}

.place-order-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(196, 1, 203, 0.4);
}

/* Bank Details Section */
.bank-details-section {
    display: none;
    color: var(--location-text-white);
    background-color: rgba(17, 17, 17, 0.9);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 10px;
}

.bank-details-section p {
    margin-bottom: 8px;
    font-size: 13px;
}

/* Shipping Options */
.shipping-options .shopping-option {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.shipping-options .shopping-option:hover {
    border-color: rgba(196, 1, 203, 0.5);
}

.shipping-options .shopping-option label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    cursor: pointer;
}

.shipping-options .shipping-amount {
    color: var(--location-primary);
    font-weight: 600;
}

/* RTL Support for Cart/Checkout */
[dir="rtl"] .checkout-section-card .checkout-title h3 i,
[dir="rtl"] .rental-info-note i,
[dir="rtl"] .booking-notice i,
[dir="rtl"] .order-items-section .section-title i,
[dir="rtl"] .order-summary-section .section-title i,
[dir="rtl"] .payment-box .section-title i,
[dir="rtl"] .order-items-group .group-title i,
[dir="rtl"] .checkout-booking-card .detail-label i,
[dir="rtl"] .cart-section-header i,
[dir="rtl"] .cart-order-summary h4 i,
[dir="rtl"] .summary-line.subtotal-group i {
    margin-left: 8px;
    margin-right: 0;
}

[dir="rtl"] .cart-checkout-btn i {
    margin-left: 10px;
    margin-right: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .checkout-section-card {
        padding: 15px;
    }

    .checkout-booking-card .booking-detail-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 3px;
    }

    .order-summary-section .total-row {
        font-size: 16px;
    }

    .order-summary-section .total-row .checkout-total {
        font-size: 18px;
    }

    .cart-booking-card {
        padding: 15px;
    }

    .cart-order-summary {
        padding: 15px;
    }
}
