/**
 * Guide Yusuf - Premium Main Stylesheet
 * Global reset, base typography, shared components, tour pages, forms
 * Note: Layout (header/footer/nav), home page, about page, contact page
 *       each have their own inline <style> blocks in PHP templates.
 */

/* ==============================================
   1. RESET & BASE
   ============================================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f8f9fa;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.25s;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

input, textarea, select, button {
    font-family: inherit;
    font-size: inherit;
}

/* ==============================================
   2. CONTAINER & LAYOUT UTILITIES
   ============================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

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

/* ==============================================
   3. TYPOGRAPHY
   ============================================== */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.3;
    font-weight: 700;
    color: #1a1a2e;
}

h1 { font-size: 2.75rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
    color: #555;
}

/* ==============================================
   4. BUTTONS
   ============================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.75rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    cursor: pointer;
    text-align: center;
    line-height: 1.4;
}

.btn-primary {
    background: #e2574c;
    color: #fff;
    border-color: #e2574c;
}

.btn-primary:hover {
    background: #c9443a;
    border-color: #c9443a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(226, 87, 76, 0.35);
}

.btn-secondary {
    background: #1a1a2e;
    color: #fff;
    border-color: #1a1a2e;
}

.btn-secondary:hover {
    background: #2d2d4a;
    border-color: #2d2d4a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 26, 46, 0.3);
}

.btn-outline {
    background: transparent;
    color: #e2574c;
    border-color: #e2574c;
}

.btn-outline:hover {
    background: #e2574c;
    color: #fff;
    transform: translateY(-2px);
}

.btn-white {
    background: #fff;
    color: #1a1a2e;
    border-color: #fff;
}

.btn-white:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
    border-radius: 6px;
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.0625rem;
    border-radius: 10px;
}

.btn-block {
    width: 100%;
}

/* ==============================================
   5. BADGES
   ============================================== */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.4;
}

.badge-featured {
    background: #ff9800;
    color: #fff;
}

.badge-category {
    background: rgba(226, 87, 76, 0.1);
    color: #e2574c;
}

.badge-new {
    background: #4caf50;
    color: #fff;
}

/* ==============================================
   6. SECTION DEFAULTS
   ============================================== */
section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.25rem;
    margin-bottom: 0.75rem;
    color: #1a1a2e;
}

.section-header p {
    font-size: 1.0625rem;
    color: #777;
    max-width: 600px;
    margin: 0 auto;
}

/* ==============================================
   7. TOURS PAGE - HEADER & FILTERS
   ============================================== */
.tours-header {
    background: linear-gradient(135deg, #1a1a2e 0%, #2d2d4a 50%, #0f3460 100%);
    color: #fff;
    padding: 4rem 0 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.tours-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.tours-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    color: #fff;
    position: relative;
}

.tours-header .breadcrumb {
    justify-content: center;
    position: relative;
}

.tours-filters {
    background: #fff;
    padding: 1.5rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 70px;
    z-index: 50;
    border-bottom: 1px solid #e9ecef;
}

.filter-form {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.search-box {
    flex: 1;
    min-width: 200px;
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 0.9375rem;
    transition: border-color 0.25s;
    outline: none;
}

.search-box input:focus {
    border-color: #e2574c;
}

.search-box i {
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 0.875rem;
}

.category-filter select,
.destination-filter select {
    padding: 0.75rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 0.9375rem;
    color: #555;
    background: #fff;
    cursor: pointer;
    outline: none;
    transition: border-color 0.25s;
    min-width: 160px;
}

.category-filter select:focus,
.destination-filter select:focus {
    border-color: #e2574c;
}

/* ==============================================
   8. TOUR GRID & CARDS
   ============================================== */
.tour-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.75rem;
    margin-bottom: 3rem;
}

.tour-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.tour-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.12);
}

.tour-card .card-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.tour-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

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

.tour-card .card-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #ff9800;
    color: #fff;
    padding: 0.3rem 0.85rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.tour-card .card-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(26, 26, 46, 0.85);
    color: #fff;
    padding: 0.3rem 0.75rem;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    backdrop-filter: blur(4px);
}

.tour-card-content {
    padding: 1.25rem 1.5rem 1.5rem;
}

.tour-card h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    color: #1a1a2e;
    font-weight: 700;
    line-height: 1.4;
}

.tour-card h3 a {
    color: inherit;
}

.tour-card h3 a:hover {
    color: #e2574c;
}

.tour-card p {
    color: #777;
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.tour-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.8125rem;
    color: #999;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tour-meta .duration {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.tour-meta .duration i {
    color: #e2574c;
    font-size: 0.75rem;
}

.tour-meta .price {
    font-weight: 700;
    font-size: 1.25rem;
    color: #e2574c;
}

.tour-meta .price small {
    font-size: 0.75rem;
    font-weight: 400;
    color: #999;
}

.tour-card .card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #f0f0f0;
}

.tour-card .card-footer .btn {
    padding: 0.5rem 1.25rem;
    font-size: 0.8125rem;
}

/* No tours message */
.no-tours {
    text-align: center;
    padding: 4rem 2rem;
    color: #999;
}

.no-tours i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #ddd;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.35rem;
    margin-top: 3rem;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 0.6rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #555;
    background: #fff;
    border: 1px solid #e0e0e0;
    transition: all 0.25s;
}

.pagination a:hover {
    background: #e2574c;
    color: #fff;
    border-color: #e2574c;
}

.pagination .active {
    background: #e2574c;
    color: #fff;
    border-color: #e2574c;
    font-weight: 700;
}

.pagination .disabled {
    opacity: 0.4;
    pointer-events: none;
}

/* ==============================================
   9. TOUR DETAIL PAGE
   ============================================== */
.tour-detail-header {
    padding: 1.5rem 0;
    background: #fff;
    border-bottom: 1px solid #e9ecef;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: #999;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: #e2574c;
    font-weight: 500;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb .separator {
    color: #ccc;
}

.tour-detail-header h1 {
    font-size: 2rem;
    font-weight: 800;
    color: #1a1a2e;
    margin-bottom: 0.5rem;
}

.tour-meta-header {
    display: flex;
    gap: 1.5rem;
    margin-top: 0.75rem;
    font-size: 0.9375rem;
    color: #777;
    flex-wrap: wrap;
}

.tour-meta-header span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.tour-meta-header i {
    color: #e2574c;
    font-size: 0.875rem;
}

/* Gallery */
.tour-gallery {
    padding: 0;
    background: #111;
}

.gallery-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4px;
}

.gallery-main {
    height: 500px;
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.gallery-main:hover img {
    transform: scale(1.03);
}

.gallery-thumbnails {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
}

.gallery-thumb {
    height: 248px;
    cursor: pointer;
    overflow: hidden;
    position: relative;
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.gallery-thumb:hover img {
    transform: scale(1.05);
}

.gallery-thumb .more-photos {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.25rem;
    font-weight: 600;
}

/* Tour Content Layout */
.tour-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 2.5rem;
    padding: 2.5rem 0;
}

.tour-section {
    margin-bottom: 2.5rem;
}

.tour-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #f0f0f0;
    text-align: left;
}

.tour-section .content {
    font-size: 0.9375rem;
    line-height: 1.8;
    color: #555;
}

.tour-section .content p {
    margin-bottom: 1rem;
}

.tour-section .content ul,
.tour-section .content ol {
    padding-left: 1.25rem;
    margin-bottom: 1rem;
    list-style: disc;
}

.tour-section .content li {
    margin-bottom: 0.5rem;
}

/* Includes / Excludes */
.tour-includes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.includes-box,
.excludes-box {
    padding: 1.5rem;
    border-radius: 12px;
}

.includes-box {
    background: #e8f5e9;
    border: 1px solid #c8e6c9;
}

.excludes-box {
    background: #ffebee;
    border: 1px solid #ffcdd2;
}

.includes-box h3 {
    color: #2e7d32;
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.excludes-box h3 {
    color: #c62828;
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.includes-box ul,
.excludes-box ul {
    padding: 0;
}

.includes-box li,
.excludes-box li {
    padding: 0.4rem 0;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.includes-box li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: #4caf50;
    font-size: 0.75rem;
}

.excludes-box li::before {
    content: '\f00d';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: #ef5350;
    font-size: 0.75rem;
}

/* FAQ / Accordion */
.faq-item {
    border: 1px solid #e9ecef;
    border-radius: 10px;
    margin-bottom: 0.75rem;
    overflow: hidden;
    transition: box-shadow 0.25s;
}

.faq-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.faq-question {
    padding: 1rem 1.25rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 0.9375rem;
    color: #333;
    background: #fff;
    transition: background 0.25s;
}

.faq-question:hover {
    background: #fafafa;
}

.faq-toggle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    color: #999;
    transition: all 0.3s;
    flex-shrink: 0;
}

.faq-answer {
    display: none;
    padding: 0 1.25rem 1.25rem;
    font-size: 0.9rem;
    color: #666;
    line-height: 1.7;
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
    background: #e2574c;
    color: #fff;
}

/* ==============================================
   10. TOUR SIDEBAR
   ============================================== */
.tour-sidebar {
    position: sticky;
    top: 90px;
}

.booking-box {
    background: #fff;
    padding: 1.75rem;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    margin-bottom: 1.5rem;
}

.booking-box h3 {
    font-size: 1.125rem;
    margin-bottom: 1.25rem;
    color: #1a1a2e;
}

.price-table {
    margin-bottom: 1.5rem;
}

.price-table table {
    width: 100%;
    border-collapse: collapse;
}

.price-table td {
    padding: 0.65rem 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.9rem;
}

.price-table td:first-child {
    color: #777;
}

.price-table td:last-child {
    text-align: right;
    font-weight: 700;
    color: #e2574c;
}

.contact-box {
    background: #fff;
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    margin-bottom: 1.5rem;
}

.contact-box h4 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: #1a1a2e;
}

.contact-box .contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
    color: #666;
}

.contact-box .contact-item i {
    color: #e2574c;
    width: 20px;
    text-align: center;
}

/* ==============================================
   11. RESERVATION FORM
   ============================================== */
.reservation-form {
    max-width: 800px;
    margin: 2rem auto;
    background: #fff;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.reservation-form h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.75rem;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.form-group {
    margin-bottom: 0;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 600;
    font-size: 0.875rem;
    color: #444;
}

.form-group label .required {
    color: #e2574c;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 0.9375rem;
    color: #333;
    background: #fff;
    transition: border-color 0.25s, box-shadow 0.25s;
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: #e2574c;
    box-shadow: 0 0 0 3px rgba(226, 87, 76, 0.1);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #aaa;
}

/* Price Selection */
.price-selection {
    background: #fafafa;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.price-selection h3 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    color: #1a1a2e;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.85rem 1rem;
    background: #fff;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    border: 1px solid #f0f0f0;
    transition: border-color 0.25s;
}

.price-row:hover {
    border-color: #e2574c;
}

.price-label {
    flex: 1;
}

.price-label span {
    font-weight: 600;
    color: #333;
}

.price-label small {
    display: block;
    color: #999;
    margin-top: 0.15rem;
    font-size: 0.8rem;
}

.price-amount {
    font-weight: 700;
    color: #e2574c;
    margin-right: 1rem;
    font-size: 1rem;
}

.quantity-input {
    width: 72px;
    text-align: center;
    padding: 0.5rem;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-weight: 600;
}

.quantity-input:focus {
    border-color: #e2574c;
    outline: none;
}

/* Total Price Box */
.total-price-box {
    background: linear-gradient(135deg, #fef3f2, #fff5f0);
    padding: 1.5rem;
    border-radius: 12px;
    margin: 1.5rem 0;
    border: 1px solid rgba(226, 87, 76, 0.15);
}

.total-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #666;
}

.total-price-row {
    font-size: 1.5rem;
    font-weight: 800;
    color: #e2574c;
    border-top: 2px solid rgba(226, 87, 76, 0.2);
    padding-top: 1rem;
    margin-top: 1rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

/* ==============================================
   12. LIGHTBOX
   ============================================== */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.lightbox-overlay.active {
    display: flex;
    opacity: 1;
}

.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.25s;
    z-index: 10001;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-image {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 4px;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.25s;
}

.lightbox-prev {
    left: 1.5rem;
}

.lightbox-next {
    right: 1.5rem;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-counter {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    font-weight: 500;
}

/* ==============================================
   13. ALERTS & MESSAGES
   ============================================== */
.alert {
    padding: 1rem 1.25rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border: 1px solid transparent;
}

.alert-success {
    background: #e8f5e9;
    color: #2e7d32;
    border-color: #c8e6c9;
}

.alert-error {
    background: #ffebee;
    color: #c62828;
    border-color: #ffcdd2;
}

.alert-warning {
    background: #fff3e0;
    color: #e65100;
    border-color: #ffe0b2;
}

.alert-info {
    background: #e3f2fd;
    color: #1565c0;
    border-color: #bbdefb;
}

.alert i {
    font-size: 1.125rem;
    flex-shrink: 0;
}

/* ==============================================
   14. CANCEL RESERVATION
   ============================================== */
.cancel-form {
    max-width: 600px;
    margin: 2rem auto;
    background: #fff;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.cancel-form h2 {
    margin-bottom: 1rem;
}

.cancel-form p {
    margin-bottom: 2rem;
    color: #777;
}

/* ==============================================
   15. LOADING SPINNER
   ============================================== */
.spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid rgba(226, 87, 76, 0.2);
    border-top-color: #e2574c;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(4px);
}

/* ==============================================
   16. STAR RATINGS
   ============================================== */
.star-rating {
    display: inline-flex;
    gap: 2px;
    color: #ffc107;
    font-size: 0.875rem;
}

.star-rating .empty {
    color: #ddd;
}

/* ==============================================
   17. BLOG CARDS
   ============================================== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.75rem;
}

.blog-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.12);
}

.blog-card .card-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.blog-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

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

.blog-card .card-body {
    padding: 1.25rem 1.5rem;
}

.blog-card .card-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: #999;
    margin-bottom: 0.75rem;
}

.blog-card h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.blog-card h3 a:hover {
    color: #e2574c;
}

.blog-card .excerpt {
    font-size: 0.875rem;
    color: #777;
    line-height: 1.6;
}

/* ==============================================
   18. ANIMATIONS
   ============================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.05); }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

.animate-fade-in {
    animation: fadeIn 0.6s ease forwards;
}

/* ==============================================
   19. RESPONSIVE
   ============================================== */
@media (max-width: 1024px) {
    .tour-content-wrapper {
        grid-template-columns: 1fr 320px;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.25rem; }

    section {
        padding: 3.5rem 0;
    }

    .section-header h2 {
        font-size: 1.75rem;
    }

    .tour-grid {
        grid-template-columns: 1fr;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .tour-content-wrapper {
        grid-template-columns: 1fr;
    }

    .tour-sidebar {
        position: static;
    }

    .tour-includes {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-main {
        height: 300px;
    }

    .gallery-thumb {
        height: 180px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .filter-form {
        flex-direction: column;
    }

    .search-box {
        width: 100%;
    }

    .category-filter select,
    .destination-filter select {
        width: 100%;
    }

    .tours-header h1 {
        font-size: 1.75rem;
    }

    .reservation-form {
        padding: 1.5rem;
        margin: 1rem;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-actions .btn {
        width: 100%;
    }

    .price-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .btn-lg {
        padding: 0.85rem 2rem;
        font-size: 1rem;
    }

    .lightbox-prev,
    .lightbox-next {
        width: 42px;
        height: 42px;
        font-size: 1rem;
    }

    .lightbox-prev {
        left: 0.75rem;
    }

    .lightbox-next {
        right: 0.75rem;
    }

    .tour-meta-header {
        flex-direction: column;
        gap: 0.5rem;
    }

    .pagination {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .tour-card .card-image {
        height: 180px;
    }

    .booking-box {
        padding: 1.25rem;
    }

    .cancel-form {
        margin: 1rem;
        padding: 1.5rem;
    }

    .total-price-row {
        font-size: 1.25rem;
    }
}

/* ==============================================
   20. PRINT STYLES
   ============================================== */
@media print {
    .top-bar,
    .language-bar,
    .site-header,
    .premium-footer,
    .whatsapp-float,
    .scroll-to-top,
    .tours-filters,
    .lightbox-overlay {
        display: none !important;
    }

    body {
        background: #fff;
        color: #000;
        font-size: 12pt;
    }

    .tour-content-wrapper {
        grid-template-columns: 1fr;
    }

    .tour-card {
        box-shadow: none;
        border: 1px solid #ddd;
        break-inside: avoid;
    }

    a {
        color: #000;
        text-decoration: underline;
    }
}
