/* Delivery Zones Page Styles */

/* Color Variables matching home page */
:root {
    --primary-color: #EA1C24;
    --secondary-color: #F45B69;
    --accent-color: #F29BAB;
    --dark-color: #1A1A1A;
    --light-bg: #FFF5F7;
    --gold-color: #C9A35E;
    --text-primary: #333;
    --text-secondary: #666;
    --text-muted: #999;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.05);
    --shadow-md: 0 5px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.15);
    --transition-base: all 0.3s ease;
}

/* Hero Section */
.delivery-zones-hero {
    background: url('../images/banner-3.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
    min-height: 220px;
    display: flex;
    align-items: center;
    padding: 75px 0 40px;
    color: white;
    text-align: center;
}

.delivery-zones-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(26, 26, 26, 0.5), rgba(26, 26, 26, 0.5));
    z-index: 1;
}

.delivery-zones-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 20%, rgba(234, 28, 36, 0.1) 100%);
    z-index: 2;
}

.delivery-zones-hero .container {
    position: relative;
    z-index: 3;
}

.delivery-zones-hero .section-badge {
    display: inline-block;
    font-family: 'Jost', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--gold-color);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 1rem;
    position: relative;
    padding: 0 60px;
}

.delivery-zones-hero .section-badge::before,
.delivery-zones-hero .section-badge::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 45px;
    height: 1px;
    background: var(--gold-color);
}

.delivery-zones-hero .section-badge::before {
    left: 0;
}

.delivery-zones-hero .section-badge::after {
    right: 0;
}

.delivery-zones-hero .section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.25rem, 5vw, 2rem);
    font-weight: 600;
    color: #ffffff;
    line-height: 1.25;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
}

.delivery-zones-hero .section-subtitle {
    font-family: 'Jost', sans-serif;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.8;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
}

/* Section Intro Box */
.section-intro {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--primary-color);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.section-intro h5 {
    color: var(--gold-color);
    font-weight: 600;
    margin-bottom: 15px;
    font-family: 'Jost', sans-serif;
}

.section-intro p {
    margin-bottom: 10px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
}

/* Section Title */
.section-title {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--accent-color);
    border-radius: 2px;
}

/* Table Wrapper */
.table-wrapper {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    margin-bottom: 50px;
    transition: var(--transition-base);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.table-wrapper:hover {
    box-shadow: var(--shadow-lg);
    border-color: rgba(201, 163, 94, 0.4);
}

/* Table Header */
.table-header {
    background: var(--gold-color);
    color: white;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.table-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    font-family: 'Cormorant Garamond', serif;
}

/* Search Box */
.search-box {
    position: relative;
    width: 300px;
}

.search-box input {
    width: 100%;
    padding: 10px 40px 10px 15px;
    border: none;
    border-radius: 50px;
    font-size: 14px;
    transition: var(--transition-base);
}

.search-box input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.search-box button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--secondary-color);
    border: none;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-base);
}

.search-box button:hover {
    background: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
}

/* Table Styles */
.table-responsive {
    padding: 0;
}

.custom-table {
    margin: 0;
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.custom-table thead {
    background: rgba(255, 255, 255, 0.05);
}

.custom-table thead th {
    font-weight: 600;
    color: #ffffff;
    padding: 20px 15px;
    text-align: center;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'Jost', sans-serif;
}

.custom-table tbody td {
    padding: 18px 15px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.85);
    font-size: 15px;
}

.custom-table tbody tr {
    transition: var(--transition-base);
}

.custom-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

.custom-table tbody tr:last-child td {
    border-bottom: none;
}

/* Badge Style */
.badge-primary {
    background: var(--gold-color);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    display: inline-block;
}

/* Pagination Wrapper */
.pagination-wrapper {
    padding: 20px 30px;
    background: rgba(255, 255, 255, 0.05);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.pagination {
    margin: 0;
    justify-content: center;
}

.pagination .page-link {
    color: var(--gold-color);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    margin: 0 3px;
    border-radius: 6px;
    font-weight: 600;
}

.pagination .page-item.active .page-link {
    background: var(--gold-color);
    border-color: var(--gold-color);
    color: #18312e;
}

.pagination .page-link:hover {
    background: rgba(201, 163, 94, 0.2);
    border-color: var(--gold-color);
    color: var(--gold-color);
}

/* Empty State */
.empty-state-icon {
    display: block;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.5);
}

.empty-state-text {
    color: rgba(255, 255, 255, 0.7);
}

/* Loading Indicator */
#loadingIndicator {
    background: transparent;
    padding: 30px;
    min-height: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#loadingIndicator .spinner-border {
    width: 3rem;
    height: 3rem;
    border-color: var(--gold-color);
    border-right-color: transparent;
}

#loadingIndicator p {
    margin-top: 1rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 991.98px) {
    .delivery-zones-hero {
        padding: 80px 0 60px;
    }
    
    .delivery-zones-hero .section-badge::before,
    .delivery-zones-hero .section-badge::after {
        width: 30px;
    }
    
    .table-header {
        padding: 15px 20px;
    }
    
    .search-box {
        width: 250px;
    }
}

@media (max-width: 768px) {
    .delivery-zones-hero {
        padding: 60px 0 50px;
    }
    
    .delivery-zones-hero .section-badge::before,
    .delivery-zones-hero .section-badge::after {
        display: none;
    }
    
    .delivery-zones-hero .section-badge {
        padding: 0;
    }
    
    .table-header {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .search-box {
        width: 100%;
    }
    
    .section-intro {
        padding: 20px;
    }
    
    .table-wrapper {
        margin-bottom: 30px;
    }
    
    .custom-table thead th {
        padding: 15px 10px;
        font-size: 12px;
    }
    
    .custom-table tbody td {
        padding: 15px 10px;
        font-size: 14px;
    }
    
    .pagination-wrapper {
        padding: 15px 20px;
    }
}

@media (max-width: 576px) {
    .delivery-zones-hero {
        padding: 50px 0 40px;
    }
    
    .section-intro {
        padding: 15px;
    }
    
    .section-intro h5 {
        font-size: 1rem;
    }
    
    .section-intro p {
        font-size: 0.875rem;
    }
    
    .table-header h3 {
        font-size: 1.25rem;
    }
    
    .custom-table {
        font-size: 12px;
    }
    
    .custom-table thead th {
        padding: 12px 8px;
        font-size: 10px;
    }
    
    .custom-table tbody td {
        padding: 12px 8px;
        font-size: 12px;
    }
    
    .badge-primary {
        padding: 4px 8px;
        font-size: 11px;
    }
    
    .pagination-wrapper {
        padding: 15px;
    }
    
    .pagination .page-link {
        padding: 6px 10px;
        font-size: 12px;
    }
}

/* Print Styles */
@media print {
    .search-box,
    .pagination-wrapper {
        display: none;
    }
    
    .table-wrapper {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .custom-table tbody tr:hover {
        background: transparent;
    }
}

