/* ============================================
   BOOKINGTANZANIA - MODERN CSS FILE
   Complete styling for homepage, admin, hotel manager
   Version: 2.0
   ============================================ */

:root {
    --primary: #0ea5e9;
    --primary-dark: #0284c7;
    --secondary: #8b5cf6;
    --secondary-dark: #7c3aed;
    --accent: #f59e0b;
    --dark: #1e293b;
    --light: #f8fafc;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #0ea5e9;
    --gradient: linear-gradient(135deg, #0ea5e9 0%, #8b5cf6 100%);
    --gradient-warm: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    --gradient-success: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --gradient-danger: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    --shadow-md: 0 5px 15px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.1);
    --shadow-xl: 0 25px 50px -12px rgba(0,0,0,0.25);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--light);
    color: var(--dark);
    line-height: 1.5;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
}

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   HERO SECTION WITH SLIDESHOW
   ============================================ */

.hero-slideshow {
    position: relative;
    height: 65vh;
    min-height: 550px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.slideshow-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.4) 100%);
    z-index: 3;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 1100px;
    width: 90%;
    padding: 2rem;
    animation: fadeInUp 0.8s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #fff, #e0f2fe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* ============================================
   SEARCH BOX - IMPROVED VERSION
   ============================================ */

.search-box-modern {
    background: white;
    border-radius: 60px;
    padding: 0.3rem;
    box-shadow: var(--shadow-xl);
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
}

.search-field {
    padding: 0.3rem 1rem;
    border-right: 1px solid #e2e8f0;
}

.search-field:last-of-type {
    border-right: none;
}

.search-field label {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.search-field .form-control,
.search-field .form-select {
    border: none;
    padding: 0.3rem 0;
    font-size: 0.9rem;
    background: transparent;
    font-weight: 500;
    cursor: pointer;
}

.search-field .form-control:focus,
.search-field .form-select:focus {
    outline: none;
    box-shadow: none;
}

.search-field .form-control::placeholder {
    color: #94a3b8;
    font-weight: normal;
}

.search-field small {
    font-size: 0.6rem;
    color: #94a3b8;
}

.search-box-modern button {
    background: var(--gradient);
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s;
    color: white;
    height: 100%;
    min-height: 65px;
    width: 100%;
}

.search-box-modern button:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 20px rgba(14,165,233,0.3);
}

/* ============================================
   SLIDE INDICATORS
   ============================================ */

.slide-indicators {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    text-align: center;
    z-index: 15;
}

.dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    margin: 0 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: white;
    width: 25px;
    border-radius: 10px;
}

/* ============================================
   TRUST BADGES
   ============================================ */

.trust-badge {
    text-align: center;
    padding: 1rem;
    transition: transform 0.2s;
}

.trust-badge:hover {
    transform: translateY(-5px);
}

.trust-badge i {
    font-size: 2rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ============================================
   FILTER CHIPS
   ============================================ */

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin: 2rem 0;
}

.filter-chip {
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    background: white;
    color: #1e293b;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s;
    box-shadow: var(--shadow-sm);
    border: 1px solid #e2e8f0;
}

.filter-chip:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.filter-chip.active {
    background: var(--gradient);
    color: white;
    border: none;
}

/* ============================================
   HOTEL CARDS
   ============================================ */

.hotel-card-modern {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    height: 100%;
}

.hotel-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.hotel-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.hotel-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.hotel-card-modern:hover .hotel-image img {
    transform: scale(1.08);
}

.hotel-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--success);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    color: white;
    font-weight: 600;
    font-size: 0.7rem;
    z-index: 2;
}

.hotel-price-badge {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    color: white;
    font-weight: 700;
    font-size: 0.8rem;
    z-index: 2;
}

.hotel-content {
    padding: 1.25rem;
}

.hotel-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.hotel-location {
    color: #64748b;
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.rating {
    display: flex;
    gap: 0.15rem;
    margin-bottom: 0.5rem;
}

.rating .star {
    color: #fbbf24;
    font-size: 0.7rem;
}

.price {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--primary);
    margin: 0.5rem 0;
}

.price small {
    font-size: 0.65rem;
    font-weight: normal;
    color: #64748b;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn-modern {
    background: var(--gradient);
    color: white;
    border: none;
    padding: 0.6rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    width: 100%;
    transition: all 0.3s;
    cursor: pointer;
    display: inline-block;
    text-align: center;
    text-decoration: none;
    font-size: 0.85rem;
}

.btn-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(14,165,233,0.3);
    color: white;
}

.btn-gradient {
    background: var(--gradient);
    color: white;
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(14,165,233,0.3);
}

.btn-outline-gradient {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-outline-gradient:hover {
    background: var(--gradient);
    color: white;
    border-color: transparent;
}

/* ============================================
   SECTION HEADERS
   ============================================ */

.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-header p {
    color: #64748b;
    font-size: 1rem;
}

/* ============================================
   TRENDING DESTINATIONS
   ============================================ */

.trending-card {
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    padding: 0.5rem;
}

.trending-card:hover {
    transform: translateY(-5px);
}

.trending-card img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: var(--shadow-md);
    transition: all 0.3s;
}

.trending-card:hover img {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.trending-card span {
    display: block;
    margin-top: 0.5rem;
    font-weight: 600;
    font-size: 0.85rem;
}

/* ============================================
   FEATURE CARDS
   ============================================ */

.feature-card {
    text-align: center;
    padding: 1.5rem;
    background: white;
    border-radius: 20px;
    transition: all 0.3s;
    height: 100%;
    box-shadow: var(--shadow-sm);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto;
    background: linear-gradient(135deg, rgba(14,165,233,0.1), rgba(139,92,246,0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============================================
   STATS SECTION
   ============================================ */

.stats-section {
    background: var(--gradient);
    color: white;
    padding: 2.5rem 0;
    margin: 2rem 0;
    border-radius: 48px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
}

/* ============================================
   MODERN CARDS (Admin/Hotel Manager)
   ============================================ */

.modern-card {
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 1.5rem;
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: var(--shadow-lg);
    margin-bottom: 1.5rem;
}

.card-header-custom {
    background: rgba(0,0,0,0.02);
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header-custom h5 {
    margin: 0;
    font-weight: 700;
    color: #1e293b;
}

/* ============================================
   TABLES
   ============================================ */

.table-modern {
    margin: 0;
}

.table-modern thead th {
    background: rgba(0,0,0,0.02);
    padding: 0.8rem 1rem;
    font-weight: 600;
    color: #475569;
    font-size: 0.85rem;
    border-bottom: 2px solid rgba(0,0,0,0.05);
}

.table-modern tbody td {
    padding: 0.8rem 1rem;
    vertical-align: middle;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(0,0,0,0.03);
}

/* ============================================
   STATUS BADGES
   ============================================ */

.badge-confirmed {
    background: var(--gradient-success);
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 600;
}

.badge-pending {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 600;
}

.badge-cancelled {
    background: var(--gradient-danger);
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 600;
}

.badge-checked_in {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 600;
}

/* ============================================
   FORMS
   ============================================ */

.form-label {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.form-control, .form-select {
    border-radius: 12px;
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    transition: all 0.3s;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(14,165,233,0.1);
}

/* ============================================
   FOOTER
   ============================================ */

footer {
    background: #0f172a;
    color: #94a3b8;
    margin-top: 3rem;
    padding: 3rem 0;
}

footer h4, footer h5 {
    color: white;
    margin-bottom: 1rem;
}

footer a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s;
}

footer a:hover {
    color: var(--primary);
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.loading {
    animation: pulse 1.5s ease-in-out infinite;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablet (768px - 1024px) */
@media (max-width: 992px) {
    .hero-slideshow {
        height: auto;
        min-height: 500px;
        padding: 3rem 0;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .search-box-modern {
        border-radius: 24px;
    }
    
    .search-field {
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
        padding: 0.5rem 1rem;
    }
    
    .search-box-modern button {
        min-height: 50px;
        margin-top: 0.5rem;
    }
    
    .hotel-card-modern {
        margin-bottom: 1.5rem;
    }
}

/* Mobile (up to 768px) */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .hero-content p {
        font-size: 0.9rem;
    }
    
    .search-field .form-control,
    .search-field .form-select {
        font-size: 0.85rem;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .trust-badge {
        padding: 0.5rem;
    }
    
    .trust-badge i {
        font-size: 1.5rem;
    }
    
    .trust-badge h6 {
        font-size: 0.75rem;
    }
    
    .trust-badge small {
        font-size: 0.6rem;
    }
    
    .hotel-image {
        height: 180px;
    }
    
    .filter-chip {
        padding: 0.4rem 1rem;
        font-size: 0.7rem;
    }
    
    .modern-card {
        padding: 1rem;
        border-radius: 16px;
    }
    
    .table-modern {
        font-size: 0.75rem;
    }
    
    .stats-section {
        margin: 1rem;
        border-radius: 30px;
        padding: 2rem 1rem;
    }
    
    footer {
        text-align: center;
    }
    
    footer .col-md-4,
    footer .col-md-2,
    footer .col-md-3 {
        margin-bottom: 1.5rem;
    }
}

/* Small Mobile (up to 480px) */
@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.5rem;
    }
    
    .hero-content p {
        font-size: 0.8rem;
    }
    
    .hero-content {
        padding: 1rem;
    }
    
    .hotel-title {
        font-size: 1rem;
    }
    
    .price {
        font-size: 1rem;
    }
    
    .stat-number {
        font-size: 1.2rem;
    }
    
    .trending-card img {
        width: 60px;
        height: 60px;
    }
    
    .trending-card span {
        font-size: 0.7rem;
    }
    
    .feature-card {
        padding: 1rem;
    }
    
    .feature-icon {
        width: 50px;
        height: 50px;
    }
    
    .feature-icon i {
        font-size: 1.5rem;
    }
    
    .feature-card h6 {
        font-size: 0.8rem;
    }
    
    .feature-card small {
        font-size: 0.65rem;
    }
}

/* Landscape Mode */
@media (max-width: 768px) and (orientation: landscape) {
    .hero-slideshow {
        min-height: 100vh;
    }
    
    .hero-content h1 {
        font-size: 1.5rem;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .nav-link,
    .btn-modern,
    button,
    .filter-chip,
    a {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    .hotel-card-modern:hover {
        transform: none;
    }
    
    .stat-card:hover {
        transform: none;
    }
}

/* Print Styles */
@media print {
    .hero-slideshow,
    .sidebar,
    .no-print,
    button,
    .btn,
    nav,
    footer,
    .filter-chips,
    .stats-section {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .main-content {
        margin: 0;
        padding: 0;
    }
    
    .modern-card {
        box-shadow: none;
        border: 1px solid #ddd;
        background: white;
    }
}