/* ============================================
   KAPWASTAR CUSTOM DESIGN
   Complete visual overhaul — modern, clean, not bulky
   File: public/themes/basic/assets/css/custom.css
   ============================================ */

/* ============================================
   1. GLOBAL OVERRIDES
   ============================================ */
:root {
    --border_radius: 12px;
}

body {
    font-weight: 400;
    letter-spacing: -0.01em;
    -webkit-font-smoothing: antialiased;
}

a {
    transition: all 0.2s ease;
}

/* ============================================
   2. NAVBAR — Sleeker, lighter
   ============================================ */
.nav-bar {
    border: none;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
    background-color: #ffffff;
}

.nav-bar .nav-bar-container {
    height: 72px;
}

.nav-bar .link {
    font-size: 15px;
    font-weight: 500;
}

.nav-bar .btn {
    border-radius: 10px;
    font-size: 14px;
    padding: 8px 18px;
    font-weight: 500;
}

.nav-bar .btn.btn-business {
    border-radius: 10px;
}

/* ============================================
   3. HERO / HEADER — More breathing room
   ============================================ */
.header-inner {
    padding-top: 60px;
    padding-bottom: 60px;
}

.header-title {
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

@media (min-width: 1200px) {
    .header-title {
        font-size: 48px;
        line-height: 1.2;
    }
}

.header-text {
    margin-bottom: 32px;
    font-weight: 400;
    opacity: 0.85;
}

.header-search .search-input input {
    border-radius: 16px;
    min-height: 62px;
    font-size: 15px;
    padding-left: 26px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.header-search .search-input input:focus {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
    border-color: rgba(var(--primary_color), 0.3);
}

.header-search .search-input .icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    right: 7px;
}

.header-search .search-input .icon i {
    font-size: 18px;
}

.header-search .search-results {
    border-radius: 0 0 16px 16px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-top: none;
    overflow: hidden;
}

.header-search.show .search-input input {
    border-top-right-radius: 16px;
    border-top-left-radius: 16px;
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
}

/* ============================================
   4. BOXES / CARDS — Lighter, airier
   ============================================ */
.box {
    border-radius: 14px;
    padding: 28px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.box:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.item.h-100.p-0 {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.25s ease;
}

.item.h-100.p-0:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
    border-color: rgba(var(--primary_color), 0.15);
}

.item-body {
    padding: 22px;
}

.item-img img {
    border-radius: 10px;
}

.item-lg .item-img img {
    border-radius: 14px;
}

.item-text {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 14px;
    margin-top: 14px;
}

.item-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding: 14px 22px;
    margin-top: 0;
    background-color: rgba(0, 0, 0, 0.015);
}

.item-box {
    border-radius: 14px;
    padding: 24px;
}

.item-box .item-box-header {
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.item-box-title {
    font-size: 1.15em;
    font-weight: 600;
}

/* ============================================
   5. BUTTONS — Rounder, modern
   ============================================ */
.btn {
    border-radius: 10px;
    font-weight: 500;
    transition: all 0.2s ease;
    letter-spacing: -0.01em;
}

.btn-md {
    border-radius: 10px;
}

.btn.btn-primary {
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(var(--primary_color), 0.25);
}

.btn.btn-primary:hover {
    box-shadow: 0 4px 14px rgba(var(--primary_color), 0.35);
    transform: translateY(-1px);
}

.btn.btn-outline-primary {
    border-radius: 10px;
    border-width: 1.5px;
}

.btn.btn-outline-primary:hover {
    transform: translateY(-1px);
}

.btn.btn-secondary {
    border-radius: 10px;
}

.btn.btn-business {
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(var(--business_button_color), 0.2);
}

.btn.btn-light {
    border-radius: 10px;
    border-color: rgba(0, 0, 0, 0.08);
}

/* ============================================
   6. SECTIONS — Better spacing and typography
   ============================================ */
.section {
    padding-top: 50px;
    padding-bottom: 50px;
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.section-text {
    font-size: 0.95em;
    line-height: 1.7;
}

.section-header {
    margin-bottom: 28px;
}

/* ============================================
   7. FORMS — Softer inputs
   ============================================ */
.form-control {
    border-radius: 10px;
    border: 1.5px solid rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.form-control:focus {
    border-color: rgba(var(--primary_color), 0.4);
    box-shadow: 0 0 0 3px rgba(var(--primary_color), 0.08);
}

.form-check-input {
    border-radius: 4px;
}

.bootstrap-select .dropdown-toggle {
    border-radius: 10px !important;
}

/* ============================================
   8. REVIEWS — Cleaner cards
   ============================================ */
.review {
    border-radius: 14px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.2s ease;
}

.review:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.item-review .box {
    border-radius: 14px;
}

.item-review-img,
.item-review-img img {
    border-radius: 10px;
}

.rating-box {
    gap: 24px;
}

.ratings-row .progress {
    border-radius: 6px;
    height: 8px;
}

.ratings-row .progress-bar {
    border-radius: 6px;
}

/* ============================================
   9. BUSINESS PAGE — Refined
   ============================================ */
.tooltip-badge .tooltip-content {
    border-radius: 14px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.dropdown-menu {
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    padding: 8px;
    overflow: hidden;
}

.dropdown-item {
    border-radius: 8px;
    padding: 8px 14px;
}

/* ============================================
   10. BLOG — Cleaner
   ============================================ */
.blog-post {
    border-radius: 14px;
    overflow: hidden;
}

/* ============================================
   11. FOOTER — Refined
   ============================================ */
.footer {
    border-top: none;
}

.footer .footer-upper {
    padding-block: 60px;
}

.footer .socials .social-btn {
    border-radius: 10px;
    transition: all 0.2s ease;
}

.footer .socials .social-btn:hover {
    transform: translateY(-2px);
}

.footer .footer-subscribe .form-control {
    border-radius: 10px;
}

.footer .footer-subscribe .btn {
    border-radius: 10px;
}

/* ============================================
   12. PAGINATION — Rounded
   ============================================ */
.pagination .page-link {
    border-radius: 8px !important;
    margin: 0 3px;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.pagination .page-item.active .page-link {
    border-radius: 8px !important;
}

/* ============================================
   13. MODALS & DROPDOWNS — Softer
   ============================================ */
.modal-content {
    border-radius: 16px;
    border: none;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.modal-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.modal-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.offcanvas {
    border: none;
    box-shadow: 10px 0 40px rgba(0, 0, 0, 0.1);
}

/* ============================================
   14. MISC POLISH
   ============================================ */
.breadcrumb {
    font-size: 13px;
}

.alert {
    border-radius: 12px;
}

.socials .social-btn {
    border-radius: 10px;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c0c0c0;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #999;
}

.badge {
    border-radius: 6px;
    font-weight: 500;
}

.rounded-5 {
    border-radius: 18px !important;
}

.accordion-item {
    border-radius: 12px !important;
    margin-bottom: 8px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.accordion-button {
    border-radius: 12px !important;
}

.drop-down .drop-down-menu {
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.user-img {
    border-radius: 10px;
}

.img-fluid.rounded {
    border-radius: 12px !important;
}

/* ============================================
   NEAR ME FEATURE STYLES
   ============================================ */
.btn-near-me {
    background: linear-gradient(135deg, #C62828, #8B1A1A);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 10px 20px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    justify-content: center;
}

.btn-near-me:hover {
    background: linear-gradient(135deg, #D32F2F, #9C2020);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(198, 40, 40, 0.3);
}

.btn-near-me:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.spinning {
    animation: spin 1s linear infinite;
}

.near-me-active {
    background-color: #E8F5E9;
    border: 1px solid #4CAF50;
    border-radius: 10px;
    padding: 10px 16px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.near-me-active-text {
    font-size: 13px;
    color: #2E7D32;
    font-weight: 500;
}

.near-me-active-clear {
    font-size: 12px;
    color: #C62828;
    text-decoration: none;
    font-weight: 500;
}

.near-me-active-clear:hover {
    text-decoration: underline;
    color: #8B1A1A;
}

.near-me-radius {
    font-size: 13px;
    color: #666;
    margin-top: 8px;
}

.near-me-radius select {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 4px 8px;
    font-size: 13px;
    background: #fff;
}

.business-distance {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #888;
    margin-top: 4px;
}

.business-distance i {
    font-size: 11px;
    color: #C62828;
}

.near-me-divider {
    border-top: 1px solid #eee;
    margin: 12px 0;
    padding-top: 12px;
}

.btn-near-me-hero {
    background: #C62828;
    color: #fff;
    border: none;
    border-radius: 14px;
    padding: 14px 32px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 14px rgba(198, 40, 40, 0.25);
}

.btn-near-me-hero:hover {
    background: #D32F2F;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(198, 40, 40, 0.35);
}

.btn-near-me-hero:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* ============================================
   MOBILE RESPONSIVE
   ============================================ */
@media (max-width: 991px) {
    .box {
        padding: 22px;
    }

    .section-title {
        font-size: 24px;
    }

    .header-title {
        font-size: 30px;
    }
}

@media (max-width: 767px) {
    .btn-near-me-hero {
        padding: 12px 24px;
        font-size: 14px;
        gap: 8px;
        border-radius: 12px;
    }

    .box {
        padding: 20px;
    }

    .item-box {
        padding: 18px;
    }

    .section-title {
        font-size: 22px;
    }

    .header-title {
        font-size: 26px;
        line-height: 1.3;
    }

    .header-text {
        font-size: 15px;
    }
}

@media (max-width: 479px) {
    .btn-near-me-hero {
        padding: 11px 20px;
        font-size: 13px;
        gap: 6px;
        border-radius: 10px;
        width: 100%;
        justify-content: center;
    }

    .btn-near-me-hero i {
        font-size: 14px;
    }

    .btn-near-me {
        padding: 9px 16px;
        font-size: 13px;
        gap: 6px;
    }

    .near-me-active {
        padding: 8px 12px;
        flex-wrap: wrap;
    }

    .near-me-active-text {
        font-size: 12px;
    }

    .box {
        padding: 16px;
        border-radius: 12px;
    }

    .item.h-100.p-0 {
        border-radius: 12px;
    }

    .item-body {
        padding: 16px;
    }

    .header-title {
        font-size: 22px;
    }

    .header-search .search-input input {
        min-height: 54px;
        font-size: 14px;
        border-radius: 12px;
        padding-left: 18px !important;
    }

    .header-search .search-input .icon {
        width: 40px;
        height: 40px;
        border-radius: 10px;
    }
}

@media (max-width: 359px) {
    .btn-near-me-hero {
        padding: 10px 16px;
        font-size: 12px;
        gap: 5px;
    }

    .btn-near-me {
        padding: 8px 12px;
        font-size: 12px;
    }
}