/* ============================================================
   Ottappalam.com - Main Stylesheet
   ============================================================ */

:root {
    --primary: #1a56db;
    --primary-dark: #1341b0;
    --orange: #f97316;
    --orange-light: #fff7ed;
    --green: #16a34a;
    --red: #dc2626;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-400: #9ca3af;
    --gray-600: #4b5563;
    --gray-800: #1f2937;
    --bg-dark: #0f172a;
    --card-radius: 16px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
    --shadow-md: 0 4px 20px rgba(0,0,0,.10);
    --shadow-lg: 0 10px 40px rgba(0,0,0,.14);
}

* { box-sizing: border-box; }

body {
    font-family: 'DM Sans', sans-serif;
    color: var(--gray-800);
    background: var(--gray-50);
    font-size: 15px;
}

h1,h2,h3,h4,h5,h6,
.fw-700, .fw-800 {
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.fw-600 { font-weight: 600 !important; }
.fw-700 { font-weight: 700 !important; }
.fw-800 { font-weight: 800 !important; }
.text-orange { color: var(--orange) !important; }
.bg-orange { background-color: var(--orange) !important; }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-200);
}

.brand-text {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.brand-dot { color: var(--orange); }

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 60%, #1a56db 100%);
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
}

.hero-subtitle { color: rgba(255,255,255,0.75); font-size: 1.05rem; }

/* Search Box */
.search-box {
    background: #fff;
    border-radius: 60px;
    padding: 8px 8px 8px 20px;
    display: flex;
    align-items: center;
    box-shadow: var(--shadow-lg);
    max-width: 640px;
}

.search-box input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1rem;
    font-family: 'DM Sans', sans-serif;
    background: transparent;
}

.search-box .search-btn {
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 10px 24px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: background .2s;
}

.search-box .search-btn:hover { background: var(--primary-dark); }

/* Autocomplete */
.autocomplete-results {
    position: absolute;
    top: calc(100% + 8px);
    left: 0; right: 0;
    background: #fff;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    overflow: hidden;
    border: 1px solid var(--gray-200);
}

.autocomplete-results .ac-item {
    padding: 12px 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background .15s;
}

.autocomplete-results .ac-item:hover { background: var(--gray-50); }
.autocomplete-results .ac-item .ac-icon { color: var(--gray-400); }
.autocomplete-results .ac-item .ac-name { font-weight: 600; font-size: .9rem; }
.autocomplete-results .ac-item .ac-sub { font-size: .78rem; color: var(--gray-400); }

/* ============================================================
   CATEGORY CHIPS
   ============================================================ */
.category-chips { display: flex; flex-wrap: wrap; gap: 8px; }

.cat-chip {
    background: rgba(255,255,255,.12);
    color: #fff;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 50px;
    padding: 6px 16px;
    font-size: .85rem;
    font-weight: 500;
    text-decoration: none;
    transition: all .2s;
}

.cat-chip:hover, .cat-chip.active {
    background: var(--orange);
    border-color: var(--orange);
    color: #fff;
}

/* ============================================================
   BUSINESS CARDS
   ============================================================ */
.business-card {
    background: #fff;
    border-radius: var(--card-radius);
    overflow: hidden;
    border: 1px solid var(--gray-200);
    transition: transform .2s, box-shadow .2s;
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.business-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    color: inherit;
}

.business-card .card-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: var(--gray-100);
}

.business-card .card-img-placeholder {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, var(--gray-100), var(--gray-200));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--gray-400);
}

.business-card .card-body { padding: 16px; }

.business-card .business-name {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 4px;
    color: var(--gray-800);
}

.business-card .category-tag {
    display: inline-block;
    background: var(--orange-light);
    color: var(--orange);
    font-size: .72rem;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 50px;
    margin-bottom: 8px;
}

.business-card .address-text {
    font-size: .82rem;
    color: var(--gray-600);
    margin-bottom: 0;
}

.verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #dcfce7;
    color: var(--green);
    font-size: .72rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 50px;
}

/* ============================================================
   BUSINESS PROFILE PAGE
   ============================================================ */
.profile-cover {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: var(--card-radius) var(--card-radius) 0 0;
    background: linear-gradient(135deg, #1e3a5f, #1a56db);
}

.profile-cover-placeholder {
    width: 100%; height: 280px;
    background: linear-gradient(135deg, #1e3a5f 0%, #1a56db 100%);
    border-radius: var(--card-radius) var(--card-radius) 0 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 4rem; color: rgba(255,255,255,0.3);
}

.profile-header {
    background: #fff;
    border-radius: var(--card-radius);
    overflow: hidden;
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-md);
}

.profile-info { padding: 24px; }

.business-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    font-size: clamp(1.4rem, 3vw, 2rem);
    color: var(--gray-800);
    margin-bottom: 8px;
}

/* Quick Action Buttons */
.quick-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 16px 0;
}

.action-btn {
    flex: 1;
    min-width: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 14px 10px;
    border-radius: 14px;
    border: none;
    cursor: pointer;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    font-size: .78rem;
    text-decoration: none;
    transition: transform .15s, box-shadow .15s;
}

.action-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.action-btn .btn-icon { font-size: 1.4rem; }

.action-btn.call     { background: #dcfce7; color: var(--green); }
.action-btn.whatsapp { background: #dcfce7; color: #16a34a; }
.action-btn.maps     { background: #dbeafe; color: #1d4ed8; }
.action-btn.share    { background: #f3e8ff; color: #7c3aed; }

/* Sticky Mobile CTA */
.sticky-cta {
    display: none;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: #fff;
    border-top: 1px solid var(--gray-200);
    padding: 10px 16px;
    z-index: 999;
    gap: 8px;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
    .sticky-cta { display: flex; }
    body { padding-bottom: 70px; }
}

.sticky-cta .sticky-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 8px;
    border-radius: 12px;
    border: none;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: .7rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.sticky-btn.call     { background: var(--green); color: #fff; }
.sticky-btn.whatsapp { background: #25D366; color: #fff; }
.sticky-btn.enquiry  { background: var(--primary); color: #fff; }
.sticky-btn i        { font-size: 1.1rem; }

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 8px;
}

.gallery-grid img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    transition: transform .2s;
}

.gallery-grid img:hover { transform: scale(1.03); }

/* Lightbox */
.lightbox {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0,0,0,.92);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.lightbox.active { display: flex; }

.lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 12px;
}

.lightbox-close {
    position: absolute; top: 20px; right: 20px;
    background: rgba(255,255,255,.15);
    color: #fff; border: none;
    width: 44px; height: 44px; border-radius: 50%;
    font-size: 1.2rem; cursor: pointer;
}

/* Share modal */
.share-options { display: flex; gap: 12px; flex-wrap: wrap; }

.share-option {
    flex: 1;
    min-width: 100px;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid var(--gray-200);
    background: #fff;
    cursor: pointer;
    text-align: center;
    font-size: .8rem;
    font-weight: 600;
    text-decoration: none;
    color: inherit;
    transition: all .2s;
}

.share-option:hover { border-color: var(--primary); background: #eff6ff; }
.share-option i { display: block; font-size: 1.4rem; margin-bottom: 4px; }

/* Card view mode */
.card-view-mode {
    min-height: 100vh;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
}

.visiting-card {
    background: #fff;
    border-radius: 24px;
    padding: 40px 32px;
    max-width: 380px;
    width: 100%;
    text-align: center;
    box-shadow: 0 25px 80px rgba(0,0,0,0.4);
}

/* Lead Form */
.lead-form-card {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: var(--card-radius);
    padding: 28px;
    color: #fff;
}

.lead-form-card h4 { font-weight: 700; margin-bottom: 4px; }
.lead-form-card p  { opacity: .8; font-size: .9rem; }

.lead-form-card .form-control {
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.25);
    color: #fff;
    border-radius: 10px;
}

.lead-form-card .form-control::placeholder { color: rgba(255,255,255,.5); }
.lead-form-card .form-control:focus {
    background: rgba(255,255,255,.18);
    border-color: rgba(255,255,255,.5);
    box-shadow: none;
    color: #fff;
}

.lead-form-card .btn-submit {
    background: var(--orange);
    border: none;
    color: #fff;
    border-radius: 10px;
    padding: 12px;
    font-weight: 700;
    font-family: 'Plus Jakarta Sans', sans-serif;
    width: 100%;
    font-size: 1rem;
}

/* Section cards */
.section-card {
    background: #fff;
    border-radius: var(--card-radius);
    border: 1px solid var(--gray-200);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.section-card h5 {
    font-weight: 700;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--gray-100);
}

/* ============================================================
   CATEGORY PAGE
   ============================================================ */
.category-hero {
    background: linear-gradient(135deg, #0f172a, #1e3a5f);
    padding: 50px 0 40px;
    color: #fff;
}

.category-hero h1 {
    font-weight: 800;
    margin-bottom: 8px;
}

.filter-bar {
    background: #fff;
    border-radius: var(--card-radius);
    padding: 16px 20px;
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
}

/* ============================================================
   ADMIN / DASHBOARD
   ============================================================ */
.admin-sidebar {
    width: 250px;
    min-height: 100vh;
    background: var(--bg-dark);
    position: fixed;
    left: 0; top: 0;
    padding: 0;
    z-index: 100;
    border-right: 1px solid rgba(255,255,255,.05);
}

.admin-sidebar .sidebar-brand {
    padding: 20px 24px 16px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.admin-sidebar .sidebar-brand .brand-text { font-size: 1.2rem; }

.admin-sidebar .nav-link {
    color: rgba(255,255,255,.65);
    padding: 11px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: .88rem;
    font-weight: 500;
    transition: all .15s;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    color: #fff;
    background: rgba(255,255,255,.06);
}

.admin-sidebar .nav-link .nav-icon { width: 16px; text-align: center; opacity: .7; }
.admin-sidebar .nav-section { padding: 16px 24px 4px; font-size: .7rem; text-transform: uppercase; letter-spacing: 1px; color: rgba(255,255,255,.3); font-weight: 600; }

.admin-content {
    margin-left: 250px;
    padding: 30px;
    min-height: 100vh;
    background: var(--gray-50);
}

.stat-card {
    background: #fff;
    border-radius: var(--card-radius);
    padding: 24px;
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
}

.stat-card .stat-value {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: var(--gray-800);
}

.stat-card .stat-label { font-size: .85rem; color: var(--gray-400); }

.stat-card .stat-icon {
    width: 48px; height: 48px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem;
}

/* ============================================================
   TABLES
   ============================================================ */
.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.data-table thead th {
    background: var(--gray-50);
    padding: 12px 16px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--gray-600);
    border-bottom: 2px solid var(--gray-200);
}

.data-table tbody td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--gray-100);
    font-size: .88rem;
}

.data-table tbody tr:hover { background: var(--gray-50); }

/* Badges */
.badge-verified   { background: #dcfce7; color: var(--green); }
.badge-unverified { background: var(--gray-100); color: var(--gray-600); }
.badge-hidden     { background: #fee2e2; color: var(--red); }
.badge-pending    { background: #fef9c3; color: #854d0e; }

.status-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 50px;
    font-size: .72rem;
    font-weight: 700;
}

/* ============================================================
   FOOTER — Fully redesigned, high contrast
   ============================================================ */
.site-footer {
    background: #0d1b2e;
    margin-top: 0;
}

/* Top section */
.footer-top {
    padding: 60px 0 40px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

/* Brand */
.footer-brand {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff;
    display: inline-block;
    margin-bottom: 14px;
}
.footer-brand span { color: #f97316; }

/* Description text */
.footer-desc {
    color: #94a3b8;
    font-size: .88rem;
    line-height: 1.7;
    margin-bottom: 20px;
    max-width: 320px;
}

/* Social buttons */
.footer-social { display: flex; gap: 10px; flex-wrap: wrap; }

.fsocial-btn {
    width: 40px; height: 40px;
    border-radius: 10px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: .95rem;
    text-decoration: none;
    transition: transform .2s, opacity .2s;
    color: #fff;
}
.fsocial-btn:hover { transform: translateY(-3px); opacity: .9; color: #fff; }
.fsocial-btn.facebook  { background: #1877f2; }
.fsocial-btn.instagram { background: linear-gradient(135deg,#f58529,#dd2a7b,#8134af); }
.fsocial-btn.whatsapp  { background: #25d366; }
.fsocial-btn.youtube   { background: #ff0000; }

/* Column headings */
.footer-heading {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #ffffff;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #f97316;
    display: inline-block;
}

/* Nav links */
.footer-nav {
    list-style: none;
    padding: 0; margin: 0;
}
.footer-nav li { margin-bottom: 10px; }
.footer-nav a {
    color: #94a3b8;
    text-decoration: none;
    font-size: .88rem;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color .15s, gap .15s;
}
.footer-nav a i {
    font-size: .55rem;
    color: #f97316;
    opacity: 0;
    transition: opacity .15s;
}
.footer-nav a:hover { color: #ffffff; gap: 10px; }
.footer-nav a:hover i { opacity: 1; }

/* Contact list */
.footer-contact {
    list-style: none;
    padding: 0; margin: 0 0 20px;
}
.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
    color: #94a3b8;
    font-size: .88rem;
    line-height: 1.5;
}
.footer-contact a {
    color: #94a3b8;
    text-decoration: none;
    transition: color .15s;
}
.footer-contact a:hover { color: #f97316; }

.fcontact-icon {
    width: 32px; height: 32px; min-width: 32px;
    background: rgba(249,115,22,.15);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    color: #f97316;
    font-size: .85rem;
}

/* Mini CTA button */
.footer-cta {
    display: inline-flex;
    align-items: center;
    background: #f97316;
    color: #fff;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 50px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: .82rem;
    font-weight: 700;
    transition: background .2s, transform .15s;
}
.footer-cta:hover { background: #ea6c0a; color: #fff; transform: translateY(-2px); }

/* Bottom bar */
.footer-bottom {
    padding: 18px 0;
    background: #080f1a;
}
.footer-copy {
    color: #64748b;
    font-size: .82rem;
}
.footer-copy strong { color: #94a3b8; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
    .admin-sidebar { transform: translateX(-100%); transition: transform .3s; }
    .admin-sidebar.open { transform: translateX(0); }
    .admin-content { margin-left: 0; padding: 16px; }
    .hero-section { padding: 50px 0 40px; }
    .profile-cover, .profile-cover-placeholder { height: 200px; }
    .quick-actions { gap: 8px; }
    .action-btn { padding: 10px 6px; font-size: .7rem; }
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.fade-in-up { animation: fadeInUp .4s ease forwards; }
