/* ==========================================
   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,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

body.theme-rental {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    min-height: 100vh;
    background: url('../img/bg/bg.webp') center center / cover no-repeat fixed;
    background-attachment: fixed;
    position: relative;
    color: var(--color-text-main);
}

body.theme-rental::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    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: center; /* Центрируем содержимое */
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.logo-back-link,
.logo-frame {
    display: none !important;
}


.back-to-category-btn {
    position: static !important; 
    margin-right: 120px;          
    font-size: 2rem;            
    color: #FFF176;
    text-decoration: none;
    line-height: 1;
    display: flex;
    align-items: center;
    transition: transform 0.2s ease;
}

.back-to-category-btn:hover {
    transform: translateX(-3px);
}

.nav-center-group {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 0 !important;
    padding-right: 0 !important;
    width: auto !important;
}

.rental-header h1 {
    margin: 0;
    font-size: 2.2rem;
    font-weight: 800;
    color: #FFF176;
    line-height: 1;
    padding-bottom: 0;
    white-space: nowrap;
}

/* Categories Container */
.categories-container {
    max-width: 600px;
    margin: 40px auto;
    padding: 20px 18px 100px 18px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    z-index: 10;
    box-sizing: border-box;
}

/* Back Button Native Sizing & Color */
.back-to-category-btn {
    position: absolute;
    left: 48px;
    bottom: 20px;
    font-size: 2rem;
    color: #FFF176;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.back-to-category-btn:hover {
    transform: scale(1.1);
}

/* Company Cards */
.category-card {
    position: relative;
    width: 100%;
    background-color: rgba(30, 78, 68, 0.25) !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px !important;
    overflow: hidden;
    transition: transform 0.2s ease, background-color 0.2s ease;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.category-card:hover {
    transform: translateY(-2px);
    background-color: rgba(30, 78, 68, 0.55) !important;
}

.card-content {
    padding: 18px !important;
    display: flex;
    flex-direction: column;
    width: 100%;
    box-sizing: border-box;
}

.category-card.has-badge .card-content {
    padding-top: 32px !important;
}

.card-icon-container {
    width: 60px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 241, 118, 0.4);
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    margin-right: 12px;
    padding: 0 5px;
}

.company-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.personal-note-box {
    margin: 10px 0;
    padding: 10px;
    background: rgba(255, 255, 255, 0.08);
    border-left: 3px solid #f39c12;
    border-radius: 4px;
    font-size: 0.9em;
    color: #fff;
}

/* Header inside card layout */
.card-header-row {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    width: 100%;
}

.card-icon {
    font-size: 32px !important;
    margin-right: 12px;
    line-height: 1;
}

.card-title-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 12px;
}

.card-title-group h2 {
    margin: 0 !important;
    font-size: 20px !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    line-height: 1.2;
    padding-top: 20px;
}

.card-title-group .tagline {
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #FFF176 !important;
    margin-top: 2px !important;
}

/* Dark inner contrast container */
.description-contrast-box {
    background-color: rgba(0, 0, 0, 0.15) !important;
    border-radius: 10px !important;
    padding: 14px !important;
    margin-bottom: 14px !important;
    width: 100%;
    box-sizing: border-box;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.description-contrast-box p {
    margin: 0 0 10px 0 !important;
    font-size: 14px !important;
    color: #ffffff !important;
    line-height: 1.4 !important;
}

/* Transparent inline tags layout */
.inline-features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.inline-features span {
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #FFF176 !important;
}

.explore-action-text {
    font-size: 15px !important;
    font-weight: 900 !important;
    color: #00E5FF !important;
    text-decoration: none !important;
    text-align: right !important;
    align-self: flex-end !important;
    margin-top: auto;
    padding-right: 4px;
    padding-bottom: 2px;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.explore-action-text:hover {
    opacity: 0.8;
}

/* Custom indicator badge alignment rules */
.card-badge {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    background-color: #FFF176 !important;
    border-radius: 0 18px 0 12px !important;
    padding: 6px 14px !important;
    z-index: 2;
}

.card-badge span {
    font-size: 11px !important;
    font-weight: 900 !important;
    color: #1E4E44 !important;
}

.card-content a.explore-action-text {
    display: block !important;
    width: 100%;
    box-sizing: border-box;
    background-color: rgba(0, 0, 0, 0.15) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px !important;
    padding: 12px 16px !important;
    margin-bottom: 8px !important;
    text-align: center !important;
    align-self: unset !important;
    transition: background-color 0.2s ease;
}

.card-content a.explore-action-text:last-child {
    margin-bottom: 0 !important;
}

.card-content a.explore-action-text:hover {
    background-color: rgba(0, 0, 0, 0.25) !important;
}

/* Localrent Widget Card */
.localrent-widget-card {
    width: 120%;
    margin: 0 auto 30px auto;
    padding: 16px;
    background-color: rgba(30, 78, 68, 0.25) !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 3px solid #FFF176;
    box-sizing: border-box;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    border-radius: 20px !important;
    overflow: hidden;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.localrent-widget-card:hover {
    transform: translateY(-2px);
    background-color: rgba(30, 78, 68, 0.55) !important;
}

.widget-title {
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 12px 0;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

/* Localrent & Discover Cars Widget Card */
.global-widget-card {
    width: 120%;
    margin: 0 auto 30px auto;
    padding: 8px;
    background-color: rgba(30, 78, 68, 0.25) !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 3px solid #FFF176;
    box-sizing: border-box;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    border-radius: 20px !important;
    overflow: hidden;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.global-widget-card:hover {
    transform: translateY(-2px);
    background-color: rgba(30, 78, 68, 0.55) !important;
}

