/* ==========================================
   CAR RENTAL CATEGORIES STYLES (Compose Colors)
   ========================================== */

:root {
    --color-green-dark: #1E4E44;
    --color-yellow-accent: #FFF176;
    --color-bg-gray: #f4f7f6;
    --color-text-main: #2c3e50;
    --color-white: #ffffff;
}

html {
    height: 100%;
    overflow-y: scroll; 
    overflow-x: hidden;
}

body {
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100%;
    min-height: 100%; 
    overflow: visible !important; 
}

body.theme-rental {
    font-family: Arial, sans-serif;
    background: url('../img/bg/bg.webp') center center / cover no-repeat fixed;
    position: relative;
    color: var(--color-text-main);
}

body.theme-rental::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(12, 35, 30, 0.25);
    z-index: -1;
}

/* ==========================================
   HEADER
   ========================================== */

.rental-header {
    width: 100%;
    display: flex;
    align-items: center;
    background: rgba(42, 102, 89, 0.45);
    position: sticky;
    top: 0;
    left: 0;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    min-height: 80px;
    padding: 24px 24px;
    z-index: 100;
    box-sizing: border-box;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.logo-back-link {
    text-decoration: none;
    transition: transform 0.2s ease;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    z-index: 2;
}

.logo-frame {
    background-color: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display:
        flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.header-logo {
    height: 30px;
    width: 30px;
    object-fit: contain;
}

.nav-center-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    padding-left: 0;
    padding-right: 0;
}

.back-btn {
    color: #FFF176;
    text-decoration: none;
    font-weight: 800;
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 0;
    margin-right: 0;
    transition: transform 0.2s;
    line-height: 1;
}

.back-btn:hover {
    transform: translateX(-4px);
}

.rental-header h1 {
    margin: 0;
    font-size: 2.2rem;
    font-weight: 800;
    color: #FFF176;
    line-height: 1.1;
    padding-bottom: 0;
    white-space: nowrap;
}

/* Categories Container */
.categories-container {    
    position: relative;
    max-width: 600px;
    margin: 10px auto;
    padding: 20px 18px 100px 18px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    z-index: 10;
     box-sizing: border-box;
}

/* Category Card Styling with Premium Glassmorphism */
.category-card {
    background-color: rgba(30, 78, 68, 0.15);
    border-radius: 16px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s;
}

.category-card:hover {
    transform: translateY(-3px);
    background-color: rgba(30, 78, 68, 0.55);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

/* Top placeholder area inside the glass card */
.card-image-placeholder {
    /* Slightly lighter transparent green tint for the icon header */
    background: rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    height: 60px;
    display: flex;
    align-items: center;
    padding-left: 20px;
    color: #FFF176;
    /* Accent yellow for icons */
    font-size: 1.8rem;
}

/* Card Content Area */
.card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.category-card h2 {
    margin: 5px 0 10px 0;
    color: #FFF176;
    font-size: 1.4rem;
    font-weight: 800;
}

.category-card p {
    margin: 0 0 20px 0;
    font-size: 0.95rem;
    line-height: 1.45;
    /*color: rgba(255, 255, 255, 0.85);*/
    color: #ffffff;
    font-weight: 500;
}

/* Badges positioned on top of the glass layout */
.badge {
    position: absolute;
    top: 0;
    right: 0;
    padding: 6px 14px;
    font-size: 0.75rem;
    font-weight: bold;
    border-radius: 0 16px 0 12px;
    color: #1E4E44;
}

.badge-best {
    background-color: #FFF176;
}

.badge-flex {
    background-color: #a3e6de;
}

/* Explore Link styled as an action button or clean glowing text */
.explore-link {
    align-self: flex-end;
    color: #FFF176;
    /* Matches the secondary brand action color */
    text-decoration: none;
    font-weight: 800;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    transition: color 0.2s, transform 0.2s;
}

.explore-link:hover {
    color: #ffffff;
}

/* Brand layout styles */
.brand-wrapper {
    display: flex;
    align-items: flex-end;
    padding-bottom: 4px;
}

/* Layout alignment inside the card content */
.card-actions-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 10px;
    gap: 25px;
}

.card-actions-row:has(:only-child) {
    justify-content: flex-end;
}

/* Subtle link-styled button for insurance info */
.insurance-info-btn {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    text-decoration: none;
}

.insurance-info-btn i {
    color: #FFF176;
    font-size: 0.85rem;
}

.insurance-info-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: #FFF176;
    color: #FFF176;
}

/* Modal Overlay Styling */
.insurance-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    z-index: 2000;
    transition: opacity 0.3s ease;
}

/* Active modal state toggled via JavaScript */
.insurance-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* Premium Glassmorphic Modal Content Window */
.insurance-modal-content {
    background: rgba(30, 78, 68, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 90%;
    max-width: 500px;
    border-radius: 20px;
    padding: 28px 24px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.4);
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.insurance-modal-overlay.active .insurance-modal-content {
    transform: translateY(0);
}

/* Typography styles inside modal */
.insurance-modal-content h3 {
    margin: 0 0 16px 0;
    color: #FFF176;
    font-size: 1.35rem;
    font-weight: 800;
}

.modal-scroll-body {
    max-height: 350px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-right: 4px;
}

.modal-scroll-body p {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.45;
    /*color: rgba(255, 255, 255, 0.9);*/
    color: #ffffff;
}

.modal-scroll-body strong {
    color: #FFF176;
}

/* Close Window Button */
.modal-close-btn {
    position: absolute;
    top: 14px;
    right: 18px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease;
}

.modal-close-btn:hover {
    color: #ffffff;
}

