/* Global Styles - AfDB Official Design */
:root {
    --primary-color: #628b52;      /* AfDB Official Green */
    --primary-dark: #008554;       /* Darker green for hover */
    --secondary-color: #231F20;    /* AfDB Official Black */
    --text-dark: #231F20;
    --text-light: #666666;
    --bg-light: #F8F9FA;
    --bg-white: #FFFFFF;
    --border-color: #E5E5E5;
    --success-color: #628b52;
    --error-color: #D32F2F;
    --shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 4px 12px rgba(0, 168, 106, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', 'Helvetica Neue', sans-serif;
    color: var(--text-dark);
    background: linear-gradient(to bottom, #f1e6c0, #ead8a5); background-attachment: fixed;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header - AfDB Style */
.header {
    background: var(--bg-white);
    color: var(--secondary-color);
    padding: 15px 0;
    border-bottom: 3px solid var(--primary-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.logo h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 5px;
    letter-spacing: -0.5px;
}

.logo p {
    font-size: 13px;
    color: var(--text-light);
    font-weight: 400;
}

.event-dates {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    background: var(--primary-color);
    padding: 12px 24px;
    border-radius: 4px;
    color: var(--bg-white);
}

.date-label {
    font-size: 11px;
    opacity: 0.9;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.date-value {
    font-size: 16px;
    font-weight: 700;
}

/* Hero Section - Clean AfDB Style */
.hero {
    background: linear-gradient(to right, var(--primary-color), #628b52);
    color: var(--bg-white);
    padding: 50px 0;
    text-align: center;
}

.hero h2 {
    font-size: 32px;
    margin-bottom: 12px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.hero p {
    font-size: 16px;
    opacity: 0.95;
    font-weight: 400;
}

/* Filters Section */
.filters-section {
    background: var(--bg-white);
    padding: 30px 0;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.filters h3 {
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 700;
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
    font-size: 13px;
}

.filter-group input,
.filter-group select {
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 3px;
    font-size: 14px;
    transition: border-color 0.3s;
    font-family: inherit;
}

.filter-group input:focus,
.filter-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.price-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
}

.price-inputs input {
    flex: 1;
}

.amenities-checkboxes {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.amenities-checkboxes label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: normal;
    cursor: pointer;
    font-size: 13px;
}

.amenities-checkboxes input[type="checkbox"] {
    cursor: pointer;
    accent-color: var(--primary-color);
}

/* Buttons - AfDB Style */
.btn {
    padding: 12px 28px;
    border: none;
    border-radius: 3px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-right: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--bg-white);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 168, 106, 0.25);
}

.btn-secondary {
    background: var(--bg-white);
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.btn-secondary:hover {
    background: var(--secondary-color);
    color: var(--bg-white);
}

/* Hotels Grid */
.hotels-section {
    padding: 30px 0 60px;
}

.hotels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
}

.hotel-card {
    background: var(--bg-white);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    cursor: pointer;
    border: 1px solid var(--border-color);
}

.hotel-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

/* Hotel Carousel */
.hotel-carousel {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: #000;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 168, 106, 0.8);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 10;
    opacity: 0;
}

.hotel-carousel:hover .carousel-btn {
    opacity: 1;
}

.carousel-btn:hover {
    background: rgba(0, 168, 106, 1);
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
    left: 10px;
}

.carousel-next {
    right: 10px;
}

.carousel-btn span {
    display: block;
    margin-top: -2px;
}

.carousel-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.carousel-dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.carousel-dot.active {
    background: var(--primary-color);
    border-color: white;
    transform: scale(1.15);
}

.hotel-image {
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.hotel-content {
    padding: 20px;
}

.hotel-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 10px;
}

.hotel-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 6px;
    line-height: 1.3;
}

.hotel-stars {
    color: var(--primary-color);
    font-size: 14px;
}

.hotel-distance {
    color: var(--text-light);
    font-size: 13px;
    margin-bottom: 12px;
}

.hotel-description {
    color: var(--text-light);
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hotel-amenities {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 15px;
}

.amenity-badge {
    background: var(--bg-light);
    color: var(--text-dark);
    padding: 4px 10px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 500;
    border: 1px solid var(--border-color);
}

.hotel-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.price-from {
    font-size: 12px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.price-amount {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-color);
}

.price-currency {
    font-size: 13px;
    font-weight: 600;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(35, 31, 32, 0.7);
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: var(--bg-white);
    margin: 3% auto;
    padding: 0;
    border-radius: 4px;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.3s;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-modal,
.close-booking-modal {
    color: var(--text-light);
    float: right;
    font-size: 32px;
    font-weight: bold;
    padding: 10px 20px;
    cursor: pointer;
    transition: color 0.3s;
}

.close-modal:hover,
.close-booking-modal:hover {
    color: var(--primary-color);
}

#modal-body {
    padding: 20px 30px 30px;
}

/* Hotel Detail Modal */
.hotel-detail-header {
    position: relative;
}

/* Modal Carousel */
.modal-hotel-carousel {
    position: relative;
    width: 100%;
    height: 450px;
    overflow: hidden;
    background: #000;
}

.modal-carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.modal-carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

.modal-carousel-slide.active {
    opacity: 1;
}

.modal-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 168, 106, 0.9);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 32px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 10;
}

.modal-carousel-btn:hover {
    background: rgba(0, 168, 106, 1);
    transform: translateY(-50%) scale(1.1);
}

.modal-carousel-prev {
    left: 20px;
}

.modal-carousel-next {
    right: 20px;
}

.modal-carousel-btn span {
    display: block;
    margin-top: -4px;
}

.modal-carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.modal-carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.modal-carousel-dot:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: scale(1.2);
}

.modal-carousel-dot.active {
    background: var(--primary-color);
    border-color: white;
    transform: scale(1.2);
}

.hotel-detail-image {
    width: 100%;
    height: 380px;
    object-fit: cover;
}

.hotel-detail-content {
    padding: 30px;
}

.hotel-detail-title {
    font-size: 28px;
    color: var(--secondary-color);
    margin-bottom: 10px;
    font-weight: 700;
}

.hotel-detail-info {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    color: var(--text-light);
    font-size: 14px;
    flex-wrap: wrap;
}

.hotel-detail-description {
    color: var(--text-dark);
    line-height: 1.7;
    margin-bottom: 30px;
    font-size: 14px;
}

.rooms-section {
    margin-top: 40px;
}

.rooms-section h3 {
    color: var(--secondary-color);
    font-size: 22px;
    margin-bottom: 20px;
    font-weight: 700;
}

.room-card {
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 20px;
    transition: all 0.3s;
}

.room-card:hover {
    box-shadow: var(--shadow);
    border-color: var(--primary-color);
}

.room-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 15px;
}

.room-type {
    font-size: 18px;
    font-weight: 700;
    color: var(--secondary-color);
}

.room-price {
    text-align: right;
}

.room-price-amount {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-color);
}

.room-price-label {
    font-size: 11px;
    color: var(--text-light);
    text-transform: uppercase;
}

.room-description {
    color: var(--text-light);
    margin-bottom: 15px;
    font-size: 13px;
    line-height: 1.6;
}

.room-details {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 13px;
    color: var(--text-light);
}

.date-selector {
    display: flex;
    gap: 15px;
    margin: 20px 0;
    padding: 15px;
    background: var(--bg-light);
    border-radius: 4px;
    border: 1px solid var(--border-color);
}

.date-input-group {
    flex: 1;
}

.date-input-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text-dark);
    font-size: 13px;
}

.date-input-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 3px;
    font-size: 14px;
}

.date-input-group input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.availability-info {
    padding: 12px;
    background: var(--bg-light);
    border-radius: 4px;
    margin-bottom: 15px;
    font-size: 13px;
    border: 1px solid var(--border-color);
}

.availability-available {
    color: var(--success-color);
    font-weight: 600;
}

.availability-limited {
    color: #FF8C00;
    font-weight: 600;
}

.availability-unavailable {
    color: var(--error-color);
    font-weight: 600;
}

.select-room-btn {
    width: 100%;
    padding: 12px;
    background: var(--primary-color);
    color: var(--bg-white);
    border: none;
    border-radius: 3px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.select-room-btn:hover:not(:disabled) {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.select-room-btn:disabled {
    background: var(--border-color);
    cursor: not-allowed;
    color: var(--text-light);
}

/* Booking Form */
#booking-form-container h2 {
    color: var(--secondary-color);
    margin-bottom: 30px;
    padding: 20px 30px 0;
    font-weight: 700;
}

#booking-form {
    padding: 0 30px 30px;
}

.form-section {
    margin-bottom: 30px;
}

.form-section h3 {
    color: var(--secondary-color);
    font-size: 18px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
    font-weight: 700;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
    font-size: 13px;
}

.form-group input {
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 3px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
}

#booking-summary {
    background: var(--bg-light);
    padding: 20px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
}

.summary-item:last-child {
    border-bottom: none;
    font-weight: 700;
    font-size: 18px;
    color: var(--primary-color);
    margin-bottom: 0;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 30px;
}

/* Confirmation */
#confirmation-content {
    padding: 40px;
    text-align: center;
}

.confirmation-success {
    color: var(--success-color);
    font-size: 48px;
    margin-bottom: 20px;
}

.confirmation-title {
    color: var(--secondary-color);
    font-size: 26px;
    margin-bottom: 20px;
    font-weight: 700;
}

.confirmation-details {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 4px;
    margin: 30px 0;
    text-align: left;
    border: 1px solid var(--border-color);
}

.confirmation-detail {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
}

.confirmation-detail:last-child {
    border-bottom: none;
}

.payment-section {
    background: linear-gradient(to right, var(--primary-color), #628b52);
    color: var(--bg-white);
    padding: 30px;
    border-radius: 4px;
    margin: 30px 0;
}

.payment-section h3 {
    margin-bottom: 15px;
    font-weight: 700;
}

.payment-link {
    display: inline-block;
    background: var(--bg-white);
    color: var(--primary-color);
    padding: 15px 40px;
    border-radius: 3px;
    text-decoration: none;
    font-weight: 700;
    margin-top: 15px;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.payment-link:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

/* Loading Spinner */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(35, 31, 32, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.spinner {
    border: 4px solid var(--bg-light);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* No Results */
.no-results {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
    font-size: 16px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .event-dates {
        align-items: center;
    }
    
    .hero h2 {
        font-size: 26px;
    }
    
    .hotels-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        width: 95%;
        margin: 10px auto;
    }
    
    .modal-hotel-carousel {
        height: 280px;
    }
    
    .modal-carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }
    
    .modal-carousel-prev {
        left: 10px;
    }
    
    .modal-carousel-next {
        right: 10px;
    }
    
    .carousel-btn {
        width: 35px;
        height: 35px;
        font-size: 20px;
    }
    
    .hotel-detail-image {
        height: 250px;
    }
    
    .date-selector {
        flex-direction: column;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .btn {
        width: 100%;
        margin-right: 0;
        margin-bottom: 10px;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 20px;
    }
    
    .hero h2 {
        font-size: 22px;
    }
    
    .hero p {
        font-size: 14px;
    }
    
    .hotel-name {
        font-size: 17px;
    }
    
    .amenities-checkboxes {
        grid-template-columns: 1fr;
    }
}
