/* ========== BASE & GLOBAL ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

/* ========== TYPOGRAPHY ========== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    letter-spacing: -0.02em;
}

/* ========== NAVBAR (modern) ========== */
.navbar {
    padding: 0.75rem 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    backdrop-filter: blur(10px);
}
.navbar-brand img {
    max-height: 40px;
    transition: transform 0.2s;
}
.navbar-brand img:hover {
    transform: scale(1.02);
}
.navbar-nav .nav-link {
    font-weight: 500;
    margin: 0 0.25rem;
    transition: all 0.2s;
}
.navbar-nav .nav-link:hover {
    opacity: 0.85;
    transform: translateY(-1px);
}

/* ========== BUTTONS (Fix hover + modern style) ========== */
.btn {
    border-radius: 40px;
    padding: 8px 24px;
    font-weight: 500;
    transition: all 0.25s ease;
    letter-spacing: 0.3px;
}
.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
}
.btn-primary:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46a0 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(102,126,234,0.3);
}
.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}
.btn-outline-primary:hover {
    background: var(--primary-color);
    color: white !important;          /* ← forces white text, no white‑on‑white */
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.08);
}
.btn-outline-secondary:hover {
    background: #6c757d;
    color: white;
    transform: translateY(-2px);
}
.btn-sm {
    padding: 6px 18px;
    font-size: 0.85rem;
}

/* ========== CARDS (Professional lift & shadow) ========== */
.card {
    border: none;
    border-radius: 1rem;
    background: #ffffff;
    transition: all 0.3s cubic-bezier(0.2, 0, 0, 1);
    box-shadow: 0 8px 20px -6px rgba(0,0,0,0.08);
}
.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 30px -12px rgba(0,0,0,0.15);
}
.card-img-top-wrapper {
    background: #f1f5f9;
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
    padding: 1rem;
    text-align: center;
}
.card-img-top-wrapper img {
    max-height: 150px;
    object-fit: contain;
    transition: transform 0.3s;
}
.card:hover .card-img-top-wrapper img {
    transform: scale(1.02);
}
.card-body {
    padding: 1.25rem;
}
.card-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}
.card-text {
    color: #475569;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* ========== BADGES ========== */
.badge {
    font-weight: 500;
    padding: 0.4rem 0.8rem;
    border-radius: 40px;
}
.badge.bg-primary {
    background: var(--primary-color) !important;
}
.badge.bg-warning {
    background: #f59e0b;
    color: #1e293b;
}
.badge.bg-info {
    background: #0ea5e9;
    color: white;
}

/* ========== HERO SECTION ========== */
.hero-section-fullwidth {
    width: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
    isolation: isolate;
}
.hero-section-fullwidth::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.4) 100%);
    z-index: 0;
}
.hero-section-fullwidth > .container {
    position: relative;
    z-index: 1;
}

/* ========== OFF CANVAS (mobile menu) ========== */
.offcanvas {
    max-width: 80%;
}
.offcanvas .btn-close-white {
    filter: brightness(0) invert(1);
}

/* ========== RATING STARS (reviews) ========== */
.rating-stars {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 4px;
}
.rating-stars input {
    display: none;
}
.rating-stars label {
    font-size: 24px;
    color: #cbd5e1;
    cursor: pointer;
    transition: color 0.1s;
}
.rating-stars input:checked ~ label,
.rating-stars label:hover,
.rating-stars label:hover ~ label {
    color: #fbbf24;
}

/* ========== PAGINATION ========== */
.pagination .page-link {
    border-radius: 30px;
    margin: 0 4px;
    color: var(--primary-color);
    border: 1px solid #e2e8f0;
}
.pagination .page-item.active .page-link {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}
.pagination .page-link:hover {
    background: var(--primary-color);
    color: white;
}

/* ========== FOOTER ========== */
footer {
    background: #1e293b;
    color: #cbd5e1;
    padding: 2rem;
    text-align: center;
    margin-top: auto;
    width: 100%;
}
footer a {
    color: white;
    text-decoration: none;
}
footer a:hover {
    text-decoration: underline;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .navbar {
        padding: 0.5rem 1rem;
    }
    .card-title {
        font-size: 1rem;
    }
    .hero-section-fullwidth {
        min-height: 400px;
    }
    .btn {
        padding: 6px 16px;
    }
}