/**
 * Home Page Styles - OMFAI TRAVEL
 * Premium travel booking interface with Mister Aladin inspiration
 */

/* --- HERO CLEAN (Modern Card Style) --- */
.hero-clean {
    background: #f8fafc;
    padding: 80px 20px 100px;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.hero-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-greeting h2 {
    font-size: 38px;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 10px;
}

.hero-greeting p {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 50px;
}

/* Floating Card Tabs */
.hero-card-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.service-card-item {
    background: white;
    padding: 20px 25px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    min-width: 140px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

/* Muting Inactive Tabs */
.service-card-item:not(.active) {
    opacity: 0.6;
    filter: grayscale(0.4);
}

.service-card-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    opacity: 1;
    filter: grayscale(0);
}

.service-card-item.active {
    opacity: 1;
    filter: grayscale(0);
    border-color: transparent;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
}

/* Blue Indicator Bar at bottom (Mister Aladin style) */
.service-card-item::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: #4f46e5;
    transform: translateY(100%);
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card-item.active::after {
    transform: translateY(0);
}

.card-icon-circle {
    width: 60px;
    height: 60px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.service-card-item.active .card-icon-circle {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.card-label {
    font-weight: 800;
    font-size: 15px;
    color: var(--text-main);
    transition: 0.3s;
}

.service-card-item.active .card-label {
    color: #4f46e5;
}

/* Search Card Box */
.search-card-box {
    background: white;
    border-radius: 30px;
    padding: 40px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.08);
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
}

.service-form {
    display: none !important;
}
.service-form.active {
    display: block !important;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.multi-row-form .form-row {
    display: flex;
    gap: 25px;
    margin-bottom: 25px;
}

.multi-row-form .form-row.second-row {
    margin-bottom: 0;
    align-items: flex-end;
}

.form-col {
    flex: 1;
}
.form-col.wide {
    flex: 2;
}
.form-col.shrink {
    flex: 0 0 auto;
}
.form-col.full {
    flex: 1;
    width: 100%;
}

.form-col label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 10px;
    padding-left: 5px;
}

.form-input-group {
    position: relative;
    display: flex;
    align-items: center;
    background: #f1f5f9;
    border-radius: 16px;
    padding: 0 20px;
    height: 55px;
    border: 1px solid #e2e8f0;
    transition: 0.2s;
}

.form-input-group i {
    font-size: 18px;
    color: var(--primary);
    margin-right: 15px;
}

.form-input-group input,
.form-input-group select {
    width: 100%;
    border: none;
    background: transparent;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-main);
    outline: none;
}

.btn-search-hero {
    background: var(--primary);
    color: white;
    border: none;
    height: 55px;
    padding: 0 40px;
    border-radius: 16px;
    font-weight: 800;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: 0.3s;
    width: 100%;
}

.btn-search-hero.icon-only {
    width: 60px;
    padding: 0;
}

.btn-search-hero:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 107, 53, 0.3);
}

/* Abstract BG */
.hero-abstract-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.abs-el {
    position: absolute;
    border-radius: 50%;
}
.abs-el.p1 {
    width: 300px;
    height: 300px;
    background: rgba(255, 107, 53, 0.03);
    top: -50px;
    left: -100px;
}
.abs-el.p2 {
    width: 200px;
    height: 200px;
    background: rgba(1, 87, 155, 0.03);
    bottom: -30px;
    right: -50px;
}
.abs-el.plane {
    top: 15%;
    right: 10%;
    font-size: 40px;
    color: rgba(255, 107, 53, 0.1);
    transform: rotate(-15deg);
    animation: float 4s infinite ease-in-out;
}

@keyframes float {
    0%,
    100% {
        transform: translate(0, 0) rotate(-15deg);
    }
    50% {
        transform: translate(-15px, -15px) rotate(-10deg);
    }
}

/* --- PROMO SLIDER (Mister Aladin Style) --- */
.promo-slider-section {
    background: white;
    padding: 60px 20px;
}

.promo-container {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    gap: 40px;
    align-items: center;
}

.promo-header-side {
    width: 300px;
    flex-shrink: 0;
}

.promo-main-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 12px;
}

.promo-subtitle {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 25px;
}

.view-all-promo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #4f46e5;
    font-weight: 700;
    text-decoration: none;
    font-size: 14px;
    transition: 0.2s;
}

.view-all-promo:hover {
    gap: 12px;
}

.promo-slider-wrapper {
    position: relative;
    flex: 1;
    overflow: hidden;
}

.promo-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 10px 0 20px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.promo-track::-webkit-scrollbar {
    display: none;
}

.promo-slide-card {
    min-width: 420px;
    height: 200px;
    border-radius: 24px;
    overflow: hidden;
    scroll-snap-align: start;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.promo-slide-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
}

.promo-card-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
}

.promo-card-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary);
    color: white;
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 800;
    z-index: 2;
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    color: #4f46e5;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: 0.3s;
}

.slider-nav:hover {
    background: #f8fafc;
    transform: translateY(-50%) scale(1.1);
}
.slider-nav.prev {
    left: 10px;
}
.slider-nav.next {
    right: 10px;
}

/* --- REFINED SEARCH FORMS (Mister Aladin Style) --- */
.form-top-options {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-bottom: 5px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f2f2f2;
}

.form-title-main {
    font-size: 16px;
    font-weight: 800;
    color: var(--secondary);
}

.badge-included {
    font-size: 12px;
    font-weight: 700;
    color: #059669;
    background: #ecfdf5;
    padding: 6px 14px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #d1fae5;
    animation: fadeIn 0.3s ease;
}

.badge-included i {
    font-size: 14px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: #555;
    cursor: pointer;
}

.radio-option input {
    display: none;
}
.radio-custom {
    width: 18px;
    height: 18px;
    border: 2px solid #ddd;
    border-radius: 50%;
    display: inline-block;
    position: relative;
}

.radio-option input:checked + .radio-custom {
    border-color: var(--primary);
}
.radio-option input:checked + .radio-custom::after {
    content: "";
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--primary);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.minimal-label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #777;
    margin-bottom: 8px;
}

.minimal-input-group {
    display: flex;
    align-items: center;
    gap: 12px;
    transition: 0.3s;
}

.minimal-input-group.clean {
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.minimal-input-group.box {
    background: white;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 10px 15px;
    height: 48px;
}

.minimal-input-group input,
.minimal-input-group select {
    border: none;
    outline: none;
    background: transparent;
    font-size: 15px;
    font-weight: 700;
    color: #111;
    width: 100%;
}

.minimal-input-group i {
    color: #888;
    font-size: 14px;
}

.form-row-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr) auto;
    gap: 15px;
    align-items: flex-end;
}

.form-row-flex {
    display: flex;
    gap: 30px;
    align-items: flex-end;
}

.flex-item-group {
    flex: 1;
}
.flex-item-group.action {
    flex: 0 0 auto;
}

.inline-val {
    font-size: 15px;
    font-weight: 700;
    color: #111;
}

.btn-search-mister {
    border: none;
    border-radius: 12px;
    height: 48px;
    padding: 0 30px;
    color: white;
    font-weight: 800;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: 0.3s;
}

.btn-search-mister.car {
    background: #ff5a1f;
}
.btn-search-mister.hotel {
    background: #ffb800;
}

.btn-search-mister:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.clean-wide {
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}
.wide-search-input {
    font-size: 18px !important;
}

/* Design System: Minimalist & Premium (Existing) */

/* Content Generic */
.content-section {
    max-width: var(--max-width);
    margin: 80px auto;
    padding: 0 20px;
}
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
}
.section-header h3 {
    font-size: 28px;
    font-weight: 900;
    color: #111;
}
.text-muted-minimal {
    color: #888;
    font-size: 15px;
    margin-top: 5px;
    font-weight: 600;
}
.view-all-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 800;
    font-size: 14px;
    transition: 0.3s;
    vertical-align: middle;
}
.view-all-link i {
    font-size: 10px;
    margin-left: 4px;
    transition: 0.3s;
}
.view-all-link:hover i {
    transform: translateX(5px);
}

/* Minimalist Cards */
.card-grid-minimal {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}
.minimal-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #f2f2f2;
    transition: 0.3s;
    cursor: pointer;
}
.minimal-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
    border-color: #eee;
}
.minimal-img {
    height: 200px;
    position: relative;
    overflow: hidden;
    background: #f8f9fa;
}
.minimal-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}
.minimal-card:hover .minimal-img img {
    transform: scale(1.1);
}

.premium-label {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #ffd700;
    color: #000;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 900;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
.duration-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    color: white;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 800;
}
.rating-overlay {
    position: absolute;
    top: 12px;
    left: 12px;
    background: white;
    color: #111;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 900;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
.rating-overlay i {
    color: #ffb800;
    margin-right: 3px;
}

.minimal-body {
    padding: 20px;
}
.item-title {
    font-size: 17px;
    font-weight: 800;
    color: #111;
    margin-bottom: 10px;
    line-height: 1.3;
}
.item-meta {
    display: flex;
    gap: 15px;
    color: #888;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 15px;
}
.item-location-minimal {
    font-size: 13px;
    color: #777;
    font-weight: 600;
    margin-bottom: 15px;
}

.item-price-minimal {
    display: flex;
    align-items: baseline;
    gap: 4px;
}
.item-price-minimal small {
    font-size: 10px;
    font-weight: 800;
    color: #aaa;
    text-transform: uppercase;
}
.item-price-minimal strong {
    font-size: 18px;
    color: var(--primary-color);
    font-weight: 900;
}

/* Blog Minimalist */
.blog-grid-minimal {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}
.minimal-blog-card {
    display: flex;
    gap: 20px;
    border-radius: 20px;
    transition: 0.3s;
    cursor: pointer;
}
.minimal-blog-card:hover {
    transform: translateX(10px);
}
.blog-visual-minimal {
    width: 100px;
    height: 100px;
    border-radius: 18px;
    overflow: hidden;
    flex-shrink: 0;
}
.blog-visual-minimal img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.blog-content-minimal {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.blog-date-minimal {
    font-size: 11px;
    font-weight: 800;
    color: #aaa;
    margin-bottom: 5px;
}
.blog-title-minimal {
    font-size: 15px;
    font-weight: 800;
    color: #111;
    margin-bottom: 8px;
    line-height: 1.4;
}
.blog-link-minimal {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 800;
    font-size: 12px;
    position: relative;
}

/* Misc */
.bg-soft-gray {
    background: #fafafa;
    border-top: 1px solid #f2f2f2;
    border-bottom: 1px solid #f2f2f2;
}

/* Responsive Adjustments */
@media (max-width: 1100px) {
    .promo-container {
        flex-direction: column;
        align-items: flex-start;
    }
    .promo-header-side {
        width: 100%;
    }
    .promo-slide-card {
        min-width: 320px;
        height: 160px;
    }
    .form-row-grid,
    .form-row-flex {
        grid-template-columns: 1fr;
        flex-direction: column;
        gap: 20px;
    }
    .grid-item.action,
    .flex-item-group.action {
        width: 100%;
    }
    .btn-search-mister {
        width: 100%;
    }
}

@media (max-width: 900px) {
    .multi-row-form .form-row {
        flex-direction: column;
        gap: 15px;
    }
    .hero-greeting h2 {
        font-size: 30px;
    }
    .service-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .card-grid-minimal {
        grid-template-columns: repeat(2, 1fr);
    }
    .promo-card {
        flex-direction: column;
        padding: 30px;
    }
    .promo-content {
        max-width: 100%;
    }
    .promo-visual {
        display: none;
    }
}

@media (max-width: 768px) {
    .promo-title {
        font-size: 26px;
    }
    .card-grid-minimal {
        grid-template-columns: 1fr;
    }
    .blog-grid-minimal {
        grid-template-columns: 1fr;
    }
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}
