/* =============================================
   JAMNAGAR PROPERTIES - GLOBAL DESIGN SYSTEM
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600&display=swap');

/* ---- CSS Variables / Tokens ---- */
:root {
    --primary: #1a3c6e;
    --primary-dark: #0f2548;
    --primary-light: #2756a6;
    --accent: #f5a623;
    --accent-dark: #d4881a;
    --accent-light: #ffc055;
    --success: #28a745;
    --danger: #dc3545;
    --warning: #ffc107;
    --white: #ffffff;
    --off-white: #f8f9fc;
    --light-gray: #eef1f7;
    --mid-gray: #b0bec5;
    --text-dark: #1a2332;
    --text-body: #4a5568;
    --text-light: #718096;
    --border: #dde3ef;
    --shadow-sm: 0 2px 8px rgba(26, 60, 110, 0.08);
    --shadow-md: 0 4px 20px rgba(26, 60, 110, 0.12);
    --shadow-lg: 0 8px 40px rgba(26, 60, 110, 0.18);
    --shadow-xl: 0 20px 60px rgba(26, 60, 110, 0.22);
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    --font-head: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;
}

/* ---- Reset ---- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--text-body);
    background: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

ul,
ol {
    list-style: none;
}

button,
input,
select,
textarea {
    font-family: inherit;
}

input:focus,
select:focus,
textarea:focus,
button:focus {
    outline: none;
}

/* ---- Typography ---- */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-head);
    color: var(--text-dark);
    line-height: 1.2;
    font-weight: 700;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
}

h3 {
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
}

h4 {
    font-size: 1.15rem;
}

p {
    color: var(--text-body);
    line-height: 1.7;
}

.text-primary {
    color: var(--primary);
}

.text-accent {
    color: var(--accent);
}

.text-light {
    color: var(--text-light);
}

.text-center {
    text-align: center;
}

.font-bold {
    font-weight: 700;
}

.font-semibold {
    font-weight: 600;
}

/* ---- Layout ---- */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 80px 0;
}

.section-sm {
    padding: 50px 0;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.flex {
    display: flex;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.flex-col {
    flex-direction: column;
}

.gap-1 {
    gap: 8px;
}

.gap-2 {
    gap: 16px;
}

.gap-3 {
    gap: 24px;
}

.gap-4 {
    gap: 32px;
}

/* ---- Section Headers ---- */
.section-header {
    text-align: center;
    margin-bottom: 56px;
}

.section-header .badge {
    display: inline-block;
    background: rgba(245, 166, 35, 0.12);
    color: var(--accent-dark);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    margin-bottom: 12px;
    border: 1px solid rgba(245, 166, 35, 0.3);
}

.section-header h2 {
    margin-bottom: 12px;
}

.section-header p {
    color: var(--text-light);
    max-width: 560px;
    margin: 0 auto;
    font-size: 1.05rem;
}

.section-divider {
    width: 50px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: var(--radius-full);
    margin: 16px auto 0;
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius-full);
    font-family: var(--font-head);
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    box-shadow: 0 4px 15px rgba(26, 60, 110, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(26, 60, 110, 0.4);
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: var(--white);
    box-shadow: 0 4px 15px rgba(245, 166, 35, 0.35);
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 166, 35, 0.5);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-outline-white {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.6);
}

.btn-outline-white:hover {
    background: var(--white);
    color: var(--primary);
}

.btn-sm {
    padding: 8px 18px;
    font-size: 0.82rem;
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1rem;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.btn-icon {
    padding: 10px;
    border-radius: 50%;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ---- Cards ---- */
.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.card-body {
    padding: 24px;
}

/* ---- Property Card ---- */
.property-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: var(--transition);
    position: relative;
}

.property-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-6px);
}

.property-card .img-wrap {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.property-card .img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.property-card:hover .img-wrap img {
    transform: scale(1.06);
}

.property-card .badge-type {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--primary);
    color: var(--white);
    font-size: 0.72rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.property-card .badge-status {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
}

.badge-status.sale {
    background: #e8f5e9;
    color: #2e7d32;
}

.badge-status.rent {
    background: #e3f2fd;
    color: #1565c0;
}

.badge-status.sold {
    background: #fce4ec;
    color: #c62828;
}

.property-card .fav-btn {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.92);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
    font-size: 1rem;
    backdrop-filter: blur(4px);
}

.property-card .fav-btn:hover {
    background: var(--white);
    transform: scale(1.15);
}

.property-card .fav-btn.active {
    color: #e53e3e;
}

.property-card .card-body {
    padding: 20px;
}

.property-card .price {
    font-family: var(--font-head);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 4px;
}

.property-card .price span {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-light);
}

.property-card h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 6px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.property-card .location {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--text-light);
    font-size: 0.85rem;
    margin-bottom: 14px;
}

.property-card .meta {
    display: flex;
    gap: 0;
    border-top: 1px solid var(--border);
    padding-top: 14px;
}

.property-card .meta-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 0 8px;
    border-right: 1px solid var(--border);
}

.property-card .meta-item:last-child {
    border-right: none;
}

.property-card .meta-item .icon {
    font-size: 1rem;
    color: var(--primary);
}

.property-card .meta-item .val {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-dark);
}

.property-card .meta-item .lbl {
    font-size: 0.68rem;
    color: var(--text-light);
}

.property-card .card-actions {
    padding: 0 20px 18px;
    display: flex;
    gap: 8px;
}

/* ---- Forms ---- */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    background: var(--off-white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 0.92rem;
    color: var(--text-dark);
    transition: var(--transition-fast);
}

.form-control:focus {
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(26, 60, 110, 0.1);
}

.form-control::placeholder {
    color: var(--mid-gray);
}

select.form-control {
    cursor: pointer;
}

textarea.form-control {
    resize: vertical;
    min-height: 110px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* ---- Badge / Chip ---- */
.chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    background: rgba(26, 60, 110, 0.08);
    color: var(--primary);
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 600;
}

/* ---- Header / Navbar ---- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    padding: 20px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background: var(--white);
    box-shadow: var(--shadow-md);
    padding: 12px 0;
}

.navbar.solid {
    background: var(--white);
    box-shadow: var(--shadow-md);
    padding: 12px 0;
}

.navbar .nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-head);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--white);
    transition: var(--transition-fast);
}

.navbar.scrolled .logo,
.navbar.solid .logo {
    color: var(--primary);
}

.navbar .logo-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--white);
    flex-shrink: 0;
}

.logo-img {
    height: 48px;
    width: 48px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid var(--accent);
    background-color: var(--white);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    border-radius: var(--radius-full);
    transition: var(--transition-fast);
}

.navbar.scrolled .nav-link,
.navbar.solid .nav-link {
    color: var(--text-dark);
}

.nav-link:hover,
.nav-link.active {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
}

.navbar.scrolled .nav-link:hover,
.navbar.solid .nav-link:hover {
    background: var(--off-white);
    color: var(--primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    background: transparent;
    border: none;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2.5px;
    background: var(--white);
    border-radius: 2px;
    transition: var(--transition);
}

.navbar.scrolled .hamburger span,
.navbar.solid .hamburger span {
    background: var(--text-dark);
}

.mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--primary-dark);
    z-index: 999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

.mobile-menu.open {
    display: flex;
}

.mobile-menu .nav-link {
    font-size: 1.4rem;
    color: var(--white);
    padding: 12px 32px;
}

.mobile-menu .close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
}

/* ---- Footer ---- */
.footer {
    background: var(--primary-dark);
    color: rgba(255, 255, 255, 0.75);
    padding: 70px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .logo {
    color: var(--white);
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-link {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.social-link:hover {
    background: var(--accent);
    transform: translateY(-2px);
}

.footer-col h5 {
    color: var(--white);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--accent);
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col ul li a {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.65);
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-col ul li a:hover {
    color: var(--accent);
    padding-left: 4px;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.88rem;
    margin-bottom: 12px;
}

.footer-contact .icon {
    color: var(--accent);
    flex-shrink: 0;
    margin-top: 2px;
}

.footer-bottom {
    padding: 20px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.45);
}

.footer-bottom a {
    color: var(--accent);
}

/* ---- Toast ---- */
.toast-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 14px 20px;
    box-shadow: var(--shadow-xl);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    font-weight: 500;
    min-width: 280px;
    max-width: 350px;
    animation: slideIn 0.3s ease;
    border-left: 4px solid var(--primary);
}

.toast.success {
    border-color: var(--success);
}

.toast.error {
    border-color: var(--danger);
}

.toast.warning {
    border-color: var(--warning);
}

@keyframes slideIn {
    from {
        transform: translateX(120%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(120%);
        opacity: 0;
    }
}

.toast.removing {
    animation: slideOut 0.3s ease forwards;
}

/* ---- Loading Spinner ---- */
.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--light-gray);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.85);
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

/* ---- Breadcrumb ---- */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-light);
    padding: 12px 0;
}

.breadcrumb a {
    color: var(--primary);
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb .sep {
    color: var(--mid-gray);
}

/* ---- Page Hero (inner pages) ---- */
.page-hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, var(--primary-light) 100%);
    padding: 120px 0 60px;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 50%;
    top: -200px;
    right: -100px;
}

.page-hero h1 {
    color: var(--white);
    margin-bottom: 10px;
}

.page-hero p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 1.05rem;
}

/* ---- Amenity Icons ---- */
.amenity-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.amenity-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--off-white);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-dark);
    border: 1px solid var(--border);
}

.amenity-item .icon {
    color: var(--primary);
    font-size: 1rem;
}

/* ---- Stats ---- */
.stat-card {
    text-align: center;
    padding: 32px 20px;
}

.stat-card .number {
    font-family: var(--font-head);
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 4px;
}

.stat-card .number span {
    color: var(--accent);
}

.stat-card .label {
    font-size: 0.88rem;
    color: var(--text-light);
    font-weight: 500;
}

/* ---- Pagination ---- */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 48px;
}

.page-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--border);
    background: var(--white);
    color: var(--text-dark);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
}

.page-btn:hover,
.page-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

.page-btn.dots {
    cursor: default;
    border: none;
    background: transparent;
}

/* ---- Modal ---- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.modal {
    background: var(--white);
    border-radius: var(--radius-lg);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    transform: translateY(30px);
    transition: transform 0.3s ease;
}

.modal-overlay.open .modal {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 28px;
    border-bottom: 1px solid var(--border);
}

.modal-header h3 {
    font-size: 1.2rem;
}

.modal-close {
    background: transparent;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    color: var(--text-light);
    line-height: 1;
}

.modal-body {
    padding: 28px;
}

.modal-footer {
    padding: 20px 28px;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* ---- Tables ---- */
.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead tr {
    background: var(--off-white);
}

th {
    padding: 12px 16px;
    text-align: left;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border-bottom: 2px solid var(--border);
}

td {
    padding: 14px 16px;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

tbody tr:hover {
    background: var(--off-white);
}

.td-img {
    width: 50px;
    height: 36px;
    border-radius: var(--radius-sm);
    object-fit: cover;
}

.status-pill {
    display: inline-block;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
}

.status-pill.active {
    background: #e8f5e9;
    color: #2e7d32;
}

.status-pill.sold {
    background: #fce4ec;
    color: #c62828;
}

.status-pill.pending {
    background: #fff8e1;
    color: #f57f17;
}

/* ---- Range Slider ---- */
.range-wrap {
    position: relative;
}

input[type=range] {
    -webkit-appearance: none;
    width: 100%;
    height: 5px;
    background: var(--light-gray);
    border-radius: var(--radius-full);
    outline: none;
    cursor: pointer;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    background: var(--primary);
    border-radius: 50%;
    border: 3px solid var(--white);
    box-shadow: 0 0 0 1px var(--primary), var(--shadow-sm);
}

.range-vals {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 6px;
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar {
    width: 7px;
    height: 7px;
}

::-webkit-scrollbar-track {
    background: var(--off-white);
}

::-webkit-scrollbar-thumb {
    background: var(--mid-gray);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 56px 0;
    }

    .container {
        padding: 0 16px;
    }

    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }

    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .nav-links,
    .nav-actions {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .grid-4 {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 2rem;
    }

    .btn-lg {
        padding: 14px 28px;
    }
}

/* ---- Utilities ---- */
.mt-1 {
    margin-top: 8px;
}

.mt-2 {
    margin-top: 16px;
}

.mt-3 {
    margin-top: 24px;
}

.mt-4 {
    margin-top: 32px;
}

.mb-1 {
    margin-bottom: 8px;
}

.mb-2 {
    margin-bottom: 16px;
}

.mb-3 {
    margin-bottom: 24px;
}

.mb-4 {
    margin-bottom: 32px;
}

.p-0 {
    padding: 0;
}

.w-full {
    width: 100%;
}

.hidden {
    display: none !important;
}

.visible {
    display: block !important;
}

.opacity-0 {
    opacity: 0;
}

.overflow-hidden {
    overflow: hidden;
}

.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.z-1 {
    z-index: 1;
}

/* ---- Floating Contact Buttons (WhatsApp, Call, Instagram) ---- */
.float-contact-btns {
    position: fixed;
    bottom: 28px;
    right: 22px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.fcb {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    text-decoration: none;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.22);
    transition: var(--transition);
    position: relative;
}

.fcb:hover {
    transform: scale(1.12);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
}

.fcb::before {
    content: attr(title);
    position: absolute;
    right: 62px;
    background: rgba(30, 30, 30, 0.88);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
}

.fcb:hover::before {
    opacity: 1;
}

.fcb-wa {
    background: #25d366;
}

.fcb-call {
    background: var(--primary);
}

.fcb-ig {
    background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.fcb-icon {
    color: #fff;
    line-height: 1;
}

/* Also define standard appearance property for compatibility */
input[type=range] {
    appearance: none;
    -webkit-appearance: none;
}

/* ---- Image Upload Box ---- */
.img-upload-box {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 110px;
    border: 2px dashed var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    overflow: hidden;
    background: var(--off-white);
    transition: var(--transition-fast);
    position: relative;
}

.img-upload-box:hover {
    border-color: var(--primary);
    background: rgba(26, 60, 110, 0.04);
}

.img-upload-box.has-img {
    border-style: solid;
    border-color: var(--primary);
}

.img-preview-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    height: 100%;
}

.img-up-icon {
    font-size: 1.8rem;
}

.img-up-txt {
    font-size: 0.75rem;
    color: var(--text-light);
    font-weight: 500;
}

.img-preview-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
}

.img-remove-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    background: rgba(220, 53, 69, 0.85);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    font-size: 0.75rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}
/* ---- Media Services Section Table Color Fix ---- */
#media-services table, #media-services thead, #media-services tbody, #media-services tr, #media-services th, #media-services td { background: transparent !important; color: rgba(255,255,255,0.9) !important; border-color: rgba(255,255,255,0.1) !important; }
#media-services thead th { color: rgba(255,255,255,0.65) !important; background: rgba(0,0,0,0.2) !important; }
#media-services thead th:nth-child(2) { color: #f5a623 !important; }
#media-services thead th:nth-child(3) { background: rgba(245,166,35,0.18) !important; color: #fff !important; }
#media-services tbody td { color: rgba(255,255,255,0.88) !important; }
#media-services tbody td:nth-child(3) { background: rgba(245,166,35,0.07) !important; }
#media-services tbody tr:hover td { background: rgba(255,255,255,0.04) !important; }
