#title {
    margin-top: 1px;
    background-color: #fff;
    color: #000;
}

.navbar.navbar-inverse {
    background-color: #000 !important;
    background-image: none !important;
}
.navbar .navbar-collapse { text-align: center; }
.navbar .navbar-nav { float: none; display: inline-block; }

.top {
    width: 100vw;
    height: 3vh;
    background: linear-gradient(90deg, #8b0000, #ff0000);
}

body {
    font-family: "Baloo 2", Helvetica, Arial, sans-serif;
    font-weight: 700;
}

#home-title strong {
    font-family: "Baloo 2", Helvetica, Arial, sans-serif;
    font-weight: 700;
    color: #ffffff;
}

.navbar-inverse .navbar-brand:hover,
.navbar-inverse .navbar-nav > li > a:hover {
    color: red !important;
    background-color: transparent;
}

.navbar-form .form label {
    color: #c81515;
    font-weight: bold;
    margin-right: 5px;
}

button[name="loginbutton"] {
    background-color: #c81515;
    color: white;
    border-style: groove;
    border-radius: 1px;
    border-color: white;
    padding: 6px 14px;
    margin-left: 3px;
}

.page-title {
    font-size: 20px;
    color: #ffffff;
    text-align: center;
    font-weight: bold;
    background: linear-gradient(to bottom, #df2323, #630707);
    margin-top: 20px;
    text-transform: uppercase;
}

#menu a {
    background-color: #f00;
    color: #fff;
    text-decoration: none;
    display: block;
}
#menu a:hover {
    background-color: #f00;
    color: #ddd;
    text-decoration: underline;
    display: block;
}

.action-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
    padding-top: 5%;
}

.home-container {
    width: 100%;
    margin: 0;
    padding: 0;
}

.hero.hero--banner {
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    width: 98vw;
    height: 88vh;
    border-radius: 14px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.3);
}

.hero-video-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-tint {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(rgba(139, 0, 0, 0.35), rgba(0, 0, 0, 0.4));
    pointer-events: none;
}

.hero-tint .hero-info-layer {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
}

.info-box {
    position: absolute;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid #fff;
    border-radius: 12px;
    padding: 14px 20px;
    color: #fff;
    font-weight: 600;
    max-width: 220px;
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
    pointer-events: auto;
}

.info-top-left { top: 28px; left: 28px; }
.info-bottom-right { bottom: 28px; right: 28px; }

.hero-overlay-content {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.hero-logo-box {
    background: transparent;
    padding: 18px 24px;
    border-radius: 14px;
    border: 2px solid #000;
    box-shadow: 0 4px 12px rgba(0,0,0,.45);
    pointer-events: auto;
}

.hero-logo {
    width: 220px;
    max-width: 40vw;
    filter: drop-shadow(0 0 8px rgba(0, 0, 0, 0.6));
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
}

.feature-card p {
    font-size: 1rem;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .hero.hero--banner {
        width: 100vw;
        height: 65vh;
        margin: 0 0 20px 0;
        border-radius: 0;
    }
    .hero-logo { width: 160px; }
    .info-box { padding: 10px 14px; font-size: 0.9rem; }
    .info-top-left { top: 14px; left: 14px; }
    .info-bottom-right { bottom: 14px; right: 14px; }
    .home-intro h1 { font-size: 2rem; }
    .home-intro p { font-size: 1rem; }
}

.ButtonInit {
    display: inline-block;
    color: red;
    font-weight: 700;
    background: white;
    padding: 10px 28px;
    border-radius: 1000px;
    border: 2px solid #d0d0d0;
}
.ButtonInit:hover {
    color: white;
    background: green;
}

#footer {
    margin-top: 20px;
    text-align: center;
    background-color: #000;
    color: #fff;
}
#footer span { color: red; }

.btn.btn-link.btn-xs.navbar-btn {
    background: linear-gradient(to right, #07550a, #054708);
    color: white;
    transition: transform 0.2s ease;
}
.btn.btn-link.btn-xs.navbar-btn:hover {
    background: linear-gradient(to right, #8b0000, #ff0000);
    transform: translateY(-2px);
}

.user-status-box strong { color: green; }

.sightings-container {
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.sighting-image {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 180px; /* was 160px */
    overflow: hidden;
    background: #ffffff;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    padding: 5px;
    box-sizing: border-box;
}

.sighting-logo {
    max-height: 100%;
    width: auto;
    max-width: 45%; /* was 40% */
    padding: 8px;
    background: #ffffff;
}

.sighting-thumb {
    width: 55%; /* was 60% */
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    margin-left: 0.5%;
}

.sighting-card {
    background: linear-gradient(rgba(221, 19, 19, 0.85), rgba(0, 0, 0, 0.78));
    color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin: 4%;
    width: 100%;
    height: 100%;
}

.sighting-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    background: linear-gradient(rgba(21, 112, 11, 0.95), rgba(0, 0, 0, 0.78));
}

.sighting-card .card-body { padding: 15px 20px; }

.sighting-card .card-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 5px;
}

.sighting-card p {
    margin: 5px 0;
    font-size: 1.7rem;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}
.sighting-card p strong { color: #fafafa; }

.card-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 8px 12px;
}

.card-actions i {
    font-size: 1.8rem;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
}
.card-actions i:hover {
    color: #c81515;
    transform: scale(1.2);
}

.search-bar {
    border-radius: 12px;
    padding: 5px 5px;
    margin-bottom: 25px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}
.search-bar input.form-control,
.search-bar select.form-control,
.search-bar select.form-select {
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 0.95rem;
}
.search-bar button.btn {
    border-radius: 8px;
    font-weight: 600;
}
.search-bar .btn-primary {
    background-color: #007bff;
    border-color: #007bff;
}
.search-bar .btn-primary:hover {
    background-color: #0056b3;
}
.search-bar .btn-outline-secondary {
    border-radius: 8px;
    padding: 6px 12px;
}

@media (max-width: 768px) {
    .search-bar { padding: 10px; }
    .search-bar .form-control,
    .search-bar .form-select { margin-bottom: 10px; }
}

.sightings-grid {
    margin-left: -15px !important;
    margin-right: -15px !important;
    padding-left: 0;
    display: flex;
    flex-wrap: wrap;
}

.sightings-grid > [class*="col-"] {
    float: none;
    display: flex;
}

.add-card {
    min-height: 220px;
    height: auto;
}

.sightings-container,
.hero-tint,
.hero-overlay-content {
    z-index: 1 !important;
}

.card-footer .btn {
    border: none;
    background: transparent;
    padding: 6px 10px;
    font-size: 3.1rem;
    transition: all 0.2s ease;
}

/* ✅ fixed hover selector */
.card-footer .btn:hover {
    color: red;
    font-size: 3.5rem;
}

.page-sightings {
    background-image: url("/images/PetWatch2.jpg");
    background-size: cover;
    background-position: center;
    width: 100%;
    max-width: 100%;
    background-repeat: no-repeat;
    border-radius: 12px;
    padding: 16px;
    margin: 16px auto;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.container {
    max-width: 1170px !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding-left: 15px;
    padding-right: 15px;
}

/* === Larger top logo in panel headers === */
.panel.sighting-card .panel-heading {
    padding: 10px 0;
    background: transparent;
    border-bottom: 0;
}
.panel.sighting-card .panel-heading img {
    height: 56px !important;
    width: auto;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,.35));
}
@media (max-width: 768px) {
    .panel.sighting-card .panel-heading img {
        height: 46px !important;
    }
}

.panel.panel-default.sighting-card,
a.sighting-card.panel.panel-default.add-card {
    height: 100%;
    width: 100%;
    margin: 0 0 30px 0;
}

.modal-target{position:fixed;inset:0;display:none;align-items:center;justify-content:center;background:rgba(0,0,0,.5);z-index:9999}
.modal-target:target{display:flex}
.modal-box{background:#fff;max-width:520px;width:92%;padding:16px;border-radius:8px;box-shadow:0 10px 30px rgba(0,0,0,.3)}
.modal-close{float:right;text-decoration:none;font-size:28px;line-height:1}

/* ===== Sightings Map ===== */
.map-section {
    margin: 20px 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
    border: 2px solid rgba(200,21,21,0.4);
}

#sightingsMap {
    width: 100%;
    height: 480px;
    background: #1a1a1a;
    display: block;
}

@media (max-width: 768px) {
    #sightingsMap { height: 320px; }
}

/* Cluster marker */
.pw-cluster {
    background: radial-gradient(circle at 35% 35%, #e03030, #8b0000);
    color: #fff;
    font-weight: 700;
    font-size: 0.78rem;
    font-family: "Baloo 2", Helvetica, Arial, sans-serif;
    border-radius: 50%;
    text-align: center;
    border: 2px solid rgba(255,255,255,0.7);
    box-shadow: 0 2px 8px rgba(0,0,0,0.45);
    cursor: pointer;
    transition: transform 0.15s ease;
}

.pw-cluster:hover {
    transform: scale(1.15);
}

/* Single sighting dot */
.pw-single {
    width: 14px;
    height: 14px;
    background: #c81515;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.5);
    cursor: pointer;
}

.pw-popup-card {
    min-width: 180px;
    max-width: 200px;
    text-align: left;
    font-family: "Baloo 2", Helvetica, Arial, sans-serif;
    color: #fff;
    background: linear-gradient(rgba(221, 19, 19, 0.95), rgba(0, 0, 0, 0.85));
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.pw-popup-image-wrap {
    text-align: center;
    margin-bottom: 6px;
}

.pw-popup-image {
    max-width: 90px;
    max-height: 70px;
    border-radius: 6px;
    object-fit: cover;
    box-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

.pw-popup-name {
    text-align: center;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 6px;
    color: #fff;
}

.pw-popup-row {
    font-size: 11px;
    line-height: 1.3;
    margin-bottom: 2px;
    color: #fff;
}

.pw-popup-row strong {
    color: #fff;
}

.leaflet-popup-content-wrapper {
    background: transparent;
    box-shadow: none;
}

.leaflet-popup-tip {
    background: rgba(0, 0, 0, 0.85);
}


/* geo lcoation styler */
.pw-popup-card-blue {
    min-width: 140px;
    max-width: 160px;
    text-align: left;
    font-family: "Baloo 2", Helvetica, Arial, sans-serif;
    color: #fff;
    background: linear-gradient(rgba(37, 99, 235, 0.95), rgba(15, 23, 42, 0.9));
    border-radius: 8px;
    padding: 8px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.3);
}

.pw-popup-name-blue {
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 4px;
    color: #fff;
}

.pw-popup-row-blue {
    font-size: 10px;
    line-height: 1.2;
    margin-bottom: 2px;
    color: #e0e7ff;
}