@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700&family=Playfair+Display:wght@500;600;700&display=swap");

:root {
    --brand: #ff6a00;
    --bg: #ffffff;
    --surface: #f8fafc;
    --text: #0f172a;
    --muted: #64748b;
    --border: rgba(15, 23, 42, 0.08);
    --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    --radius-lg: 16px;
    --radius-md: 12px;
    --radius-sm: 10px;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    color: var(--text);
    background: var(--bg);
    font-family: "Manrope", "Segoe UI", sans-serif;
    max-width: 100%;
    overflow-x: hidden;
}

h1, h2, h3, h4, .ui-display {
    font-family: "Playfair Display", "Manrope", "Segoe UI", serif;
    letter-spacing: -0.01em;
}

a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
    color: var(--brand);
}

.text-muted {
    color: var(--muted) !important;
}

.text-primary {
    color: var(--brand) !important;
}

.bg-light {
    background-color: var(--surface) !important;
}

/* Calm down large colored blocks */
section.bg-primary,
section.bg-secondary,
section.bg-warning,
.card.bg-primary,
.card.bg-secondary,
.card.bg-warning,
.card-header.bg-primary,
.card-header.bg-secondary,
.card-header.bg-warning,
.card-header.bg-dark {
    background-color: var(--surface) !important;
    color: var(--text) !important;
    border-color: var(--border) !important;
}

section.bg-primary *,
section.bg-secondary *,
section.bg-warning *,
.card.bg-primary.text-white,
.card.bg-secondary.text-white,
.card.bg-warning.text-white,
.card-header.bg-primary.text-white,
.card-header.bg-secondary.text-white,
.card-header.bg-warning.text-white,
.card-header.bg-dark.text-white {
    color: var(--text) !important;
}

.card {
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    background: var(--bg);
}

.card-header {
    border-bottom: 1px solid var(--border);
    background: var(--surface);
}

.card-footer {
    border-top: 1px solid var(--border);
    background: var(--surface);
}

.badge {
    border-radius: 999px;
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 0.4rem 0.7rem;
    border: 1px solid var(--border);
}

.badge.bg-primary,
.badge.text-white.bg-primary {
    background: rgba(255, 106, 0, 0.12) !important;
    color: var(--brand) !important;
}

.badge-success {
    background: rgba(16, 185, 129, 0.18) !important;
    color: #047857 !important;
    border-color: rgba(16, 185, 129, 0.35) !important;
}

.badge-danger {
    background: rgba(239, 68, 68, 0.18) !important;
    color: #b91c1c !important;
    border-color: rgba(239, 68, 68, 0.35) !important;
}

.badge-warning {
    background: rgba(245, 158, 11, 0.18) !important;
    color: #b45309 !important;
    border-color: rgba(245, 158, 11, 0.35) !important;
}

.badge-info {
    background: rgba(14, 165, 233, 0.18) !important;
    color: #0369a1 !important;
    border-color: rgba(14, 165, 233, 0.35) !important;
}

.badge-secondary {
    background: rgba(148, 163, 184, 0.2) !important;
    color: #475569 !important;
    border-color: rgba(148, 163, 184, 0.35) !important;
}

.badge-dark {
    background: rgba(15, 23, 42, 0.75) !important;
    color: #ffffff !important;
    border-color: rgba(15, 23, 42, 0.6) !important;
}

.btn {
    border-radius: var(--radius-md);
    font-weight: 600;
    padding: 0.55rem 1rem;
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.btn-primary,
.btn-outline-primary {
    color: var(--brand) !important;
    border-color: rgba(255, 106, 0, 0.35) !important;
    background: transparent !important;
}

.btn-primary:hover,
.btn-outline-primary:hover {
    color: var(--brand) !important;
    background: rgba(255, 106, 0, 0.08) !important;
    border-color: rgba(255, 106, 0, 0.6) !important;
    box-shadow: 0 6px 16px rgba(255, 106, 0, 0.15);
}

.btn-primary:focus,
.btn-outline-primary:focus,
.btn-primary:focus-visible,
.btn-outline-primary:focus-visible {
    box-shadow: 0 0 0 0.2rem rgba(255, 106, 0, 0.25) !important;
}

.btn-secondary,
.btn-outline-secondary {
    background: var(--bg) !important;
    color: var(--text) !important;
    border-color: var(--border) !important;
}

.btn-secondary:hover,
.btn-outline-secondary:hover {
    background: var(--surface) !important;
    color: var(--text) !important;
    border-color: rgba(15, 23, 42, 0.18) !important;
}

.btn-success,
.btn-outline-success {
    color: #047857 !important;
    border-color: rgba(16, 185, 129, 0.35) !important;
    background: transparent !important;
}

.btn-success:hover,
.btn-outline-success:hover {
    color: #047857 !important;
    background: rgba(16, 185, 129, 0.08) !important;
    border-color: rgba(16, 185, 129, 0.6) !important;
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.15);
}

.btn-success:focus,
.btn-outline-success:focus,
.btn-success:focus-visible,
.btn-outline-success:focus-visible {
    box-shadow: 0 0 0 0.2rem rgba(16, 185, 129, 0.25) !important;
}

.btn-info,
.btn-outline-info {
    color: #0369a1 !important;
    border-color: rgba(14, 165, 233, 0.35) !important;
    background: transparent !important;
}

.btn-info:hover,
.btn-outline-info:hover {
    color: #0369a1 !important;
    background: rgba(14, 165, 233, 0.08) !important;
    border-color: rgba(14, 165, 233, 0.6) !important;
    box-shadow: 0 6px 16px rgba(14, 165, 233, 0.15);
}

.btn-info:focus,
.btn-outline-info:focus,
.btn-info:focus-visible,
.btn-outline-info:focus-visible {
    box-shadow: 0 0 0 0.2rem rgba(14, 165, 233, 0.25) !important;
}

.required-marker {
    color: var(--brand);
    font-weight: 700;
}

.required-field {
    position: relative;
}

.required-marker--side {
    position: absolute;
    right: -12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.05rem;
    line-height: 1;
    pointer-events: none;
}

.required-field--textarea .required-marker--side {
    top: 16px;
    transform: none;
}

label .text-danger,
.form-label .text-danger {
    color: var(--brand) !important;
    font-weight: 700;
}

body.ui-confirm-open {
    overflow: hidden;
}

.ui-confirm-modal[hidden] {
    display: none !important;
}

.ui-confirm-modal {
    position: fixed;
    inset: 0;
    z-index: 1080;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.ui-confirm-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(2px);
}

.ui-confirm-modal__panel {
    position: relative;
    width: min(520px, calc(100vw - 2rem));
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.22);
    padding: 1.25rem 1.25rem 1rem;
}

.ui-confirm-modal__title {
    margin: 0 0 0.45rem;
    color: var(--text);
    font-weight: 700;
}

.ui-confirm-modal__message {
    margin: 0 0 1rem;
    color: var(--muted);
    line-height: 1.5;
}

.ui-confirm-modal__actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.6rem;
}

.btn-warning,
.btn-outline-warning {
    color: #b45309 !important;
    border-color: rgba(245, 158, 11, 0.35) !important;
    background: transparent !important;
}

.btn-warning:hover,
.btn-outline-warning:hover {
    color: #b45309 !important;
    background: rgba(245, 158, 11, 0.08) !important;
    border-color: rgba(245, 158, 11, 0.6) !important;
    box-shadow: 0 6px 16px rgba(245, 158, 11, 0.15);
}

.btn-warning:focus,
.btn-outline-warning:focus,
.btn-warning:focus-visible,
.btn-outline-warning:focus-visible {
    box-shadow: 0 0 0 0.2rem rgba(245, 158, 11, 0.25) !important;
}

.btn-danger,
.btn-outline-danger {
    color: #b91c1c !important;
    border-color: rgba(239, 68, 68, 0.35) !important;
    background: transparent !important;
}

.btn-danger:hover,
.btn-outline-danger:hover {
    color: #b91c1c !important;
    background: rgba(239, 68, 68, 0.08) !important;
    border-color: rgba(239, 68, 68, 0.6) !important;
    box-shadow: 0 6px 16px rgba(239, 68, 68, 0.15);
}

.btn-danger:focus,
.btn-outline-danger:focus,
.btn-danger:focus-visible,
.btn-outline-danger:focus-visible {
    box-shadow: 0 0 0 0.2rem rgba(239, 68, 68, 0.25) !important;
}

.btn-dark {
    background: var(--text) !important;
    border-color: var(--text) !important;
}

.btn-dark:hover {
    background: #111827 !important;
    border-color: #111827 !important;
}

.form-control,
.form-select,
.customSelect {
    border-radius: var(--radius-md);
    border: 1px solid var(--border) !important;
    background: var(--bg);
    color: var(--text);
    box-shadow: none;
}

.form-control:focus,
.form-select:focus,
.customSelect:focus {
    border-color: rgba(255, 106, 0, 0.5) !important;
    box-shadow: 0 0 0 0.2rem rgba(255, 106, 0, 0.2) !important;
}

.input-group-text {
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--muted);
}

.table thead th,
.table thead td {
    background: var(--surface);
    border-color: var(--border);
}

.pagination .page-link {
    border-radius: 10px;
    border-color: var(--border);
    color: var(--text);
}

.pagination .page-link:hover {
    background: rgba(255, 106, 0, 0.08);
    color: var(--brand);
}

.pagination .page-item.active .page-link {
    background: rgba(255, 106, 0, 0.12);
    border-color: rgba(255, 106, 0, 0.45);
    color: var(--brand);
}

/* Hero overlays toned down */
#showcase .overlay {
    background: rgba(15, 23, 42, 0.45);
}

#services::before {
    background: rgba(15, 23, 42, 0.35);
}

#showcase-inner::before {
    background: rgba(15, 23, 42, 0.5);
}

/* Map embeds */
.map-embed {
    width: 100%;
    min-height: 320px;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.map-embed .map-iframe {
    width: 100%;
    height: 360px;
    border: 0;
    display: block;
}

/* Price / highlight pills should stay accent */
.ui-price-pill,
.listing-card .price-badge,
.bg-primary.text-white.px-4.py-2,
.bg-primary.text-white.rounded-pill {
    background: rgba(255, 106, 0, 0.16) !important;
    color: var(--brand) !important;
    border: 1px solid rgba(255, 106, 0, 0.35) !important;
}

/* General spacing helpers */
.ui-section {
    padding: 72px 0;
}

.ui-section--soft {
    background: var(--surface);
}

.ui-section-title {
    font-weight: 700;
    font-size: clamp(1.6rem, 2.4vw, 2.2rem);
    color: var(--text);
}

.ui-card {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    background: var(--bg);
}

.ui-hero-title {
    font-size: clamp(2.4rem, 3.6vw, 3.4rem);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.ui-hero-subtitle {
    font-size: 1.1rem;
    color: var(--muted);
}

.ui-cta {
    padding: 72px 0;
    background: var(--surface);
}

.ui-surface {
    background: var(--surface);
}

.ui-shadow {
    box-shadow: var(--shadow);
}

.ui-radius-lg {
    border-radius: var(--radius-lg);
}

.ui-radius-md {
    border-radius: var(--radius-md);
}
