/* Modern Index Styles - v1.0 */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* Global Reset & Typography */
body {
    font-family: 'Poppins', sans-serif !important;
    background-color: #f4f7f6 !important;
    color: #444 !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Poppins', sans-serif !important;
}

/* ---------------- Hero Section ---------------- */
.modern-hero {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* Background Image is set inline in HTML now */
    padding: 160px 0 100px;
    margin-bottom: 60px;
    border-bottom-left-radius: 50px;
    border-bottom-right-radius: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.modern-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Dark overlay to make text visible */
    background: radial-gradient(circle at center, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.8) 100%);
    border-bottom-left-radius: 50px;
    border-bottom-right-radius: 50px;
    z-index: 1;
}

.modern-hero .container {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 15px;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
}

/* Search Bar */
.modern-search-wrap {
    background: #fff;
    padding: 8px;
    border-radius: 100px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    max-width: 700px;
    margin: 0 auto;
    transition: transform 0.3s;
}

.modern-search-wrap:hover {
    transform: translateY(-2px);
}

.modern-search-input {
    border: none;
    background: transparent;
    padding: 15px 25px;
    font-size: 1.1rem;
    flex-grow: 1;
    border-radius: 100px;
    outline: none;
}

.modern-search-btn {
    background: linear-gradient(45deg, #ff6b6b, #ee5253);
    color: #fff;
    border: none;
    padding: 15px 35px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(238, 82, 83, 0.4);
    transition: all 0.3s;
}

.modern-search-btn:hover {
    box-shadow: 0 8px 25px rgba(238, 82, 83, 0.6);
    transform: scale(1.05);
}

/* ---------------- Section Titles ---------------- */
.section-header {
    margin-bottom: 50px;
    position: relative;
    text-align: center;
}

.section-header h3 {
    font-size: 2rem;
    font-weight: 700;
    color: #2d3436;
    display: inline-block;
    padding-bottom: 15px;
    position: relative;
}

.section-header h3::after {
    content: '';
    display: block;
    width: 60px;
    height: 5px;
    background: #ff6b6b;
    border-radius: 10px;
    margin: 10px auto 0;
}

/* ---------------- Cards (Restaurants/Cities/Cuisines) ---------------- */
.modern-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 30px;
    text-decoration: none !important;
    display: block;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.02);
    height: 100%;
}

.modern-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 100, 200, 0.1);
}

.card-img-wrap {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.modern-card:hover .card-img-wrap img {
    transform: scale(1.08);
}

.card-body-modern {
    padding: 20px;
}

.card-title-modern {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2d3436;
    margin-bottom: 10px;
    text-align: center;
}

.card-meta {
    font-size: 0.9rem;
    color: #636e72;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.rating-pill {
    background: #32CD32;
    color: #fff;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.status-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #fff;
    z-index: 10;
}

.status-open {
    background: #32CD32;
}

.status-closed {
    background: #d63031;
}

.modern-btn-outline {
    border: 2px solid #ff6b6b;
    color: #ff6b6b;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-block;
}

.modern-btn-outline:hover {
    background: #ff6b6b;
    color: #fff;
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3);
}

/* Text Blocks */
.info-card {
    background: #fff;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
    border: 1px solid #f1f1f1;
    height: 100%;
    transition: transform 0.3s;
}

.info-card:hover {
    transform: translateY(-5px);
    border-color: #ff6b6b;
}

.info-card h5,
.info-card h6 {
    color: #2d3436;
    font-weight: 700;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 10px;
}

.info-card h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    width: 40px;
    height: 3px;
    background: #ff6b6b;
}

/* Add Listing Banner */
.add-listing-section {
    background: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 100%);
    padding: 80px 0;
    border-radius: 30px;
    margin: 50px 0;
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.add-listing-section::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.add-listing-section h2 {
    font-weight: 800;
    margin-bottom: 20px;
    color: #fff;
}

.btn-white {
    background: #fff !important;
    color: #6c5ce7 !important;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-white:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    color: #6c5ce7 !important;
}

/* Navbar & Button Fixes */
.nav-menu {
    z-index: 1050 !important;
    /* Ensure navbar is above hero */
}

/* Ensure the button is visible on the dark hero */
a.btn.top-btn,
.top-btn {
    background: #ff6b6b !important;
    background-color: #ff6b6b !important;
    color: #fff !important;
    border: 1px solid #ff6b6b !important;
    font-weight: 700;
    padding: 8px 20px;
    border-radius: 5px;
    opacity: 1 !important;
    visibility: visible !important;
}

a.btn.top-btn:hover,
.top-btn:hover {
    background: #ee5253 !important;
    background-color: #ee5253 !important;
    color: #fff !important;
    border-color: #ee5253 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(238, 82, 83, 0.4);
}

/* RTL Specific Overrides */
[dir="rtl"] .hero-title,
[dir="rtl"] .hero-subtitle,
[dir="rtl"] .section-header {
    text-align: right;
}

[dir="rtl"] .info-card h5::after {
    right: 0;
}

[dir="ltr"] .info-card h5::after {
    left: 0;
}

[dir="rtl"] .status-badge {
    right: auto;
    left: 15px;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .modern-search-wrap {
        flex-direction: column;
        background: transparent;
        box-shadow: none;
    }

    .modern-search-input {
        width: 100%;
        margin-bottom: 15px;
        background: #fff;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        text-align: center;
    }

    .modern-search-btn {
        width: 100%;
    }
}