/* CanaryInsider.com — Main Stylesheet */
:root {
    --primary: #0d6efd;
    --success: #198754;
    --info: #0dcaf0;
    --warning: #ffc107;
    --bs-body-font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #f8f9fa;
}

.main-content {
    flex: 1;
}

/* Section Tabs */
.nav-tabs {
    border-bottom: 2px solid var(--primary);
}

.nav-tabs .nav-link {
    border: none;
    color: #6c757d;
    white-space: nowrap;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.nav-tabs .nav-link:hover {
    color: var(--primary);
    border: none;
}

.nav-tabs .nav-link.active {
    color: var(--primary);
    background: transparent;
    border: none;
    border-bottom: 3px solid var(--primary);
    font-weight: 600;
}

/* Hero section */
.hero-section {
    background: linear-gradient(135deg, #0d6efd 0%, #0b5ed7 50%, #084298 100%);
}

/* Content rendering */
.content-rendered h2,
.content-rendered h3 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    color: #0d6efd;
}

.content-rendered p {
    line-height: 1.8;
    margin-bottom: 1rem;
}

.content-rendered ul,
.content-rendered ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.content-rendered img {
    max-width: 100%;
    border-radius: 8px;
    margin: 1rem 0;
}

/* Hover card */
.hover-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hover-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

/* Cards */
.card {
    border: none;
    transition: box-shadow 0.2s;
}

.card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
}

/* Footer */
.footer a:hover {
    color: #ffffff !important;
}

/* Swiper */
.swiper {
    border-radius: 8px;
    overflow: hidden;
}

.swiper-button-next,
.swiper-button-prev {
    color: #fff !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.swiper-pagination-bullet-active {
    background: #fff !important;
}

/* Map container */
.leaflet-container {
    border-radius: 8px;
    z-index: 0;
}

/* Badge */
.badge {
    font-weight: 500;
}

/* Breadcrumb */
.breadcrumb {
    background: transparent;
    padding: 0;
    font-size: 0.9rem;
}

/* Review stars */
.text-warning {
    color: #ffc107 !important;
}

/* Admin sidebar */
.admin-sidebar {
    min-height: calc(100vh - 56px);
    background: #212529;
}

/* Responsive images */
@media (max-width: 768px) {
    .display-4 {
        font-size: 2rem;
    }
    h1 {
        font-size: 1.75rem;
    }
    .hero-section {
        padding: 2rem 0 !important;
    }
}

/* Form styling */
.form-control:focus, .form-select:focus {
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
    border-color: #0d6efd;
}

/* Pagination */
.pagination {
    flex-wrap: wrap;
}

/* Stretched link helper */
.stretched-link::after {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    content: "";
}

/* Alert */
.alert {
    border: none;
    border-radius: 8px;
}

/* Auth pages */
.auth-container {
    max-width: 450px;
    margin: 0 auto;
}

/* Property card */
.property-card-img {
    height: 180px;
    object-fit: cover;
    background: #e9ecef;
}

/* Loading spinner */
.loading-spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid #dee2e6;
    border-top-color: #0d6efd;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ─── Hero Map ─────────────────────────────────────────── */
.hero-map-section {
    height: 500px;
    position: relative;
    background: #084298;
}

.hero-map-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-map-overlay {
    position: absolute;
    inset: 0;
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    background: linear-gradient(
        to bottom,
        rgba(8, 66, 152, 0.35) 0%,
        rgba(8, 66, 152, 0.15) 50%,
        rgba(8, 66, 152, 0.35) 100%
    );
}

.hero-map-overlay .btn,
.hero-map-overlay a {
    pointer-events: auto;
}

.hero-map-title {
    font-size: 2.75rem;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 2px 12px rgba(0,0,0,.5);
    letter-spacing: -0.5px;
}

.hero-map-subtitle {
    font-size: 1.15rem;
    color: rgba(255,255,255,.9);
    text-shadow: 0 1px 6px rgba(0,0,0,.4);
    max-width: 600px;
    margin: 0 auto;
}

.hero-map-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-island-links {
    justify-content: center;
}

.hero-island-link {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    background: rgba(255,255,255,.15);
    color: rgba(255,255,255,.85);
    font-size: 0.85rem;
    transition: background .2s, color .2s;
}

.hero-island-link:hover {
    background: rgba(255,255,255,.3);
    color: #fff;
}

/* Island marker dots */
.hero-island-marker {
    background: none !important;
    border: none !important;
    cursor: pointer;
}

.hero-marker-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #0d6efd;
    border: 3px solid #fff;
    box-shadow: 0 0 12px rgba(13,110,253,.6);
    margin: 0 auto 2px;
    transition: transform .2s, box-shadow .2s;
}

.hero-marker-label {
    display: block;
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 1px 4px rgba(0,0,0,.7);
    white-space: nowrap;
    letter-spacing: 0.3px;
}

.hero-marker-hover .hero-marker-dot {
    transform: scale(1.5);
    box-shadow: 0 0 20px rgba(13,110,253,.9);
    border-color: #ffc107;
}

/* Pulsing circle animation */
.hero-pulse-circle {
    animation: hero-pulse 2s ease-out infinite;
}

@keyframes hero-pulse {
    0% {
        r: 10;
        stroke-width: 0;
        stroke-opacity: 0.6;
    }
    100% {
        r: 35;
        stroke-width: 1;
        stroke-opacity: 0;
    }
}

/* Leaflet override for hero map */
#heroMap {
    z-index: 0;
}

#heroMap .leaflet-control-container {
    display: none;
}

/* Responsive hero */
@media (max-width: 768px) {
    .hero-map-section {
        height: 380px;
    }
    .hero-map-title {
        font-size: 1.8rem;
    }
    .hero-map-subtitle {
        font-size: .95rem;
    }
}

@media (max-width: 480px) {
    .hero-map-section {
        height: 320px;
    }
    .hero-map-title {
        font-size: 1.5rem;
    }
}
