/* =============================================
   LOST PETS PAGE STYLES
   ============================================= */

/* Main Content Area */
.lost-pets-content {
    min-height: 100vh;
    padding: 100px 0 60px;
}

/* Hero Section */
.lost-pets-hero {
    text-align: center;
    margin-bottom: 2rem;
    animation: fadeInDown 0.6s ease;
}

.hero-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--light);
    box-shadow: 0 10px 40px rgba(129, 112, 207, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.page-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto;
}

/* Location Permission Card */
.location-permission-card {
    background: var(--dark-card);
    border-radius: var(--radius-xl);
    padding: 3rem 2rem;
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(129, 112, 207, 0.2);
    animation: fadeInUp 0.6s ease;
}

body.light-mode .location-permission-card {
    background: var(--light);
    border-color: rgba(129, 112, 207, 0.15);
}

.permission-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, rgba(129, 112, 207, 0.2) 0%, rgba(100, 216, 203, 0.2) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2.5rem;
    color: var(--primary);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.location-permission-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.location-permission-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.btn-enable-location {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--light);
    border: none;
    padding: 1rem 2rem;
    border-radius: 100px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(129, 112, 207, 0.4);
}

.btn-enable-location:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(129, 112, 207, 0.5);
}

.btn-enable-location i {
    font-size: 1.125rem;
}

.permission-note {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 1.5rem;
    margin-bottom: 0;
}

/* Loading State */
.loading-state {
    text-align: center;
    padding: 4rem 2rem;
    animation: fadeIn 0.4s ease;
}

.loading-spinner {
    margin-bottom: 1.5rem;
}

.paw-loader {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.paw-loader i {
    font-size: 3rem;
    color: var(--primary);
    animation: pawSpin 1.5s ease infinite;
}

@keyframes pawSpin {
    0% { transform: rotate(0deg) scale(1); opacity: 1; }
    50% { transform: rotate(180deg) scale(1.2); opacity: 0.7; }
    100% { transform: rotate(360deg) scale(1); opacity: 1; }
}

.loading-state p {
    color: var(--text-secondary);
    font-size: 1.125rem;
}

/* Error State */
.error-state {
    text-align: center;
    padding: 4rem 2rem;
    max-width: 400px;
    margin: 0 auto;
    animation: fadeIn 0.4s ease;
}

.error-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 107, 138, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--danger);
}

.error-state h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.error-state p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.btn-retry {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 0.75rem 1.5rem;
    border-radius: 100px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.btn-retry:hover {
    background: var(--primary);
    color: var(--light);
}

/* Main Content Area */
.main-content-area {
    animation: fadeIn 0.6s ease;
}

/* ===========================================
   COMPACT TOOLBAR - SINGLE ROW
   =========================================== */
.compact-toolbar {
    background: var(--dark-card);
    border-radius: var(--radius-lg);
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.75rem;
    border: 1px solid rgba(129, 112, 207, 0.15);
}

body.light-mode .compact-toolbar {
    background: var(--light);
}

.toolbar-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: nowrap;
}

.toolbar-left {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-shrink: 0;
}

.location-badge {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--text-secondary);
    font-size: 0.8rem;
    white-space: nowrap;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.location-badge i {
    color: var(--primary);
    flex-shrink: 0;
}

.radius-select {
    background: rgba(129, 112, 207, 0.15);
    border: 1px solid rgba(129, 112, 207, 0.3);
    color: var(--text-primary);
    padding: 0.35rem 0.5rem;
    border-radius: var(--radius-md);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    flex-shrink: 0;
}

.radius-select:focus {
    outline: none;
    border-color: var(--primary);
}

body.light-mode .radius-select {
    background: var(--light-gray);
}

.toolbar-search {
    flex: 1;
    min-width: 100px;
    max-width: 200px;
    position: relative;
    display: flex;
    align-items: center;
}

.toolbar-search i.fa-search {
    position: absolute;
    left: 0.6rem;
    color: var(--text-muted);
    font-size: 0.75rem;
}

.toolbar-search input {
    width: 100%;
    background: rgba(129, 112, 207, 0.1);
    border: 1px solid rgba(129, 112, 207, 0.2);
    color: var(--text-primary);
    padding: 0.4rem 1.8rem 0.4rem 1.8rem;
    border-radius: var(--radius-md);
    font-size: 0.8rem;
}

.toolbar-search input:focus {
    outline: none;
    border-color: var(--primary);
}

.toolbar-search input::placeholder {
    color: var(--text-muted);
}

body.light-mode .toolbar-search input {
    background: var(--light-gray);
}

.toolbar-search .search-clear {
    position: absolute;
    right: 0.4rem;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.2rem;
    font-size: 0.75rem;
}

/* Filter Groups */
.filter-group {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-shrink: 0;
}

.filter-divider {
    width: 1px;
    height: 20px;
    background: rgba(129, 112, 207, 0.2);
    flex-shrink: 0;
}

.filter-btn {
    background: rgba(129, 112, 207, 0.1);
    border: 1px solid transparent;
    color: var(--text-secondary);
    padding: 0.3rem 0.5rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.2rem;
    transition: var(--transition);
    white-space: nowrap;
}

body.light-mode .filter-btn {
    background: var(--light-gray);
}

.filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--light);
}

.filter-btn[data-filter="lost"].active {
    background: var(--danger);
    border-color: var(--danger);
}

.filter-btn[data-filter="found"].active {
    background: var(--success);
    border-color: var(--success);
}

.results-count {
    font-size: 0.8rem;
    color: var(--text-muted);
    white-space: nowrap;
    flex-shrink: 0;
    margin-left: auto;
}

.results-count span:first-child {
    font-weight: 700;
    color: var(--primary);
}

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

/* Map Section */
.map-section {
    position: relative;
    margin-bottom: 2rem;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(129, 112, 207, 0.2);
}

.lost-pets-map {
    height: 500px;
    width: 100%;
    background: var(--dark-lighter);
    z-index: 1;
}

@media (min-width: 768px) {
    .lost-pets-map {
        height: 600px;
    }
}

@media (min-width: 1024px) {
    .lost-pets-map {
        height: 650px;
    }
}

body.light-mode .lost-pets-map {
    background: var(--light-gray);
}

/* Custom Map Styles */
.leaflet-popup-content-wrapper {
    background: var(--dark-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

body.light-mode .leaflet-popup-content-wrapper {
    background: var(--light);
}

.leaflet-popup-content {
    margin: 0.75rem;
    color: var(--text-primary);
}

body.light-mode .leaflet-popup-content {
    color: var(--text-dark);
}

.leaflet-popup-tip {
    background: var(--dark-card);
}

body.light-mode .leaflet-popup-tip {
    background: var(--light);
}

.map-legend {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    background: var(--dark-card);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    display: flex;
    gap: 1.5rem;
    z-index: 1000;
    box-shadow: var(--shadow-md);
}

body.light-mode .map-legend {
    background: var(--light);
}

/* Center on user button */
.btn-center-map {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    width: 44px;
    height: 44px;
    background: var(--primary);
    border: none;
    border-radius: 50%;
    color: var(--light);
    font-size: 1.1rem;
    cursor: pointer;
    z-index: 1000;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.btn-center-map:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

.btn-center-map:active {
    transform: scale(0.95);
}

/* Map Tooltip Styles */
.pet-tooltip {
    background: var(--dark-card) !important;
    border: 1px solid rgba(129, 112, 207, 0.2) !important;
    border-radius: var(--radius-md) !important;
    padding: 0 !important;
    box-shadow: var(--shadow-lg) !important;
}

.pet-tooltip .leaflet-tooltip-content {
    margin: 0;
}

body.light-mode .pet-tooltip {
    background: var(--light) !important;
}

.leaflet-tooltip-top:before,
.leaflet-tooltip-bottom:before,
.leaflet-tooltip-left:before,
.leaflet-tooltip-right:before {
    border-top-color: var(--dark-card) !important;
}

body.light-mode .leaflet-tooltip-top:before {
    border-top-color: var(--light) !important;
}

/* Tooltip pet name color */
.pet-tooltip .tooltip-pet-name {
    color: var(--text-primary);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.legend-marker {
    width: 14px;
    height: 14px;
    border-radius: 50%;
}

.legend-marker.user-marker {
    background: var(--primary);
    box-shadow: 0 0 0 3px rgba(129, 112, 207, 0.3);
}

.legend-marker.pet-marker.lost {
    background: var(--danger);
    box-shadow: 0 0 0 3px rgba(255, 107, 138, 0.3);
}

.legend-marker.pet-marker.found {
    background: var(--success);
    box-shadow: 0 0 0 3px rgba(100, 216, 203, 0.3);
}

/* Results Summary */
.results-summary {
    text-align: center;
    margin-bottom: 1.5rem;
}

.results-summary h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.results-summary h2 span:first-child {
    color: var(--primary);
    font-size: 2rem;
}

.results-note {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Filter Section */
.filter-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background: var(--dark-card);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(129, 112, 207, 0.1);
}

body.light-mode .filter-section {
    background: var(--light);
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.filter-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 60px;
}

.filter-btn {
    background: rgba(129, 112, 207, 0.1);
    border: 1px solid transparent;
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: var(--transition);
}

body.light-mode .filter-btn {
    background: var(--light-gray);
}

.filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--light);
}

.filter-btn[data-filter="lost"].active,
.filter-btn[data-filter="lost"]:hover {
    background: var(--danger);
    border-color: var(--danger);
    color: var(--light);
}

.filter-btn[data-filter="found"].active,
.filter-btn[data-filter="found"]:hover {
    background: var(--success);
    border-color: var(--success);
    color: var(--light);
}

/* Pets Grid */
.pets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
}

/* Pet Card - Compact */
.pet-card {
    background: var(--dark-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(129, 112, 207, 0.15);
    transition: var(--transition);
    cursor: pointer;
    animation: fadeInUp 0.5s ease;
}

body.light-mode .pet-card {
    background: var(--light);
}

.pet-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.pet-card-image {
    position: relative;
    height: 130px;
    overflow: hidden;
}

.pet-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.pet-card:hover .pet-card-image img {
    transform: scale(1.05);
}

.pet-card-image .no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(129, 112, 207, 0.2) 0%, rgba(100, 216, 203, 0.1) 100%);
}

.pet-card-image .no-image i {
    font-size: 2.5rem;
    color: var(--primary);
    opacity: 0.5;
}

/* Info Bar below image */
.pet-card-info-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0.6rem;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
}

body.light-mode .pet-card-info-bar {
    background: rgba(0, 0, 0, 0.08);
}

.pet-status-badge {
    padding: 0.2rem 0.5rem;
    border-radius: 100px;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--light);
}

.pet-status-badge.lost {
    background: var(--danger);
}

.pet-status-badge.found {
    background: var(--success);
}

.pet-distance-badge {
    color: var(--text-secondary);
    font-size: 0.65rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.pet-distance-badge i {
    color: var(--primary);
    font-size: 0.55rem;
}

.pet-card-content {
    padding: 0.6rem;
}

.pet-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.4rem;
}

.pet-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pet-species-icon {
    width: 24px;
    height: 24px;
    background: rgba(129, 112, 207, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 0.7rem;
    flex-shrink: 0;
}

.pet-card-details {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-bottom: 0.3rem;
}

.pet-detail-tag {
    background: rgba(129, 112, 207, 0.1);
    color: var(--text-secondary);
    padding: 0.15rem 0.4rem;
    border-radius: 100px;
    font-size: 0.65rem;
    display: flex;
    align-items: center;
    gap: 0.2rem;
}

.pet-detail-tag i {
    color: var(--primary);
    font-size: 0.55rem;
}

.pet-last-seen {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    margin-top: 0.3rem;
}

.pet-last-seen i {
    color: var(--warning);
    font-size: 0.6rem;
    flex-shrink: 0;
}

.pet-last-seen-info {
    flex: 1;
    min-width: 0;
}

.pet-last-seen-info p {
    margin: 0;
    font-size: 0.65rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pet-card-actions {
    display: none; /* Hide actions on compact cards - use modal instead */
}

.btn-view-details,
.btn-contact-owner {
    flex: 1;
    padding: 0.6rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.btn-view-details {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
}

.btn-view-details:hover {
    background: var(--primary);
    color: var(--light);
}

.btn-contact-owner {
    background: var(--primary);
    border: none;
    color: var(--light);
}

.btn-contact-owner:hover {
    background: var(--primary-dark);
}

/* No Results State */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
    animation: fadeIn 0.4s ease;
}

.no-results-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, rgba(100, 216, 203, 0.2) 0%, rgba(129, 112, 207, 0.2) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 3rem;
    color: var(--success);
}

.no-results h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.no-results p {
    color: var(--text-secondary);
}

/* Pet Modal */
.pet-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background: var(--dark-card);
    border-radius: var(--radius-xl);
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    animation: modalSlideIn 0.3s ease;
}

body.light-mode .modal-content {
    background: var(--light);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 32px;
    height: 32px;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    border-radius: 50%;
    color: var(--light);
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: var(--primary);
    transform: rotate(90deg);
}

.modal-body {
    display: flex;
    flex-direction: row;
}

@media (max-width: 768px) {
    .modal-body {
        flex-direction: column;
    }
    
    .modal-close {
        background: rgba(0, 0, 0, 0.7);
    }
}

.modal-pet-image-container {
    flex: 0 0 280px;
    min-height: 280px;
    position: relative;
    overflow: hidden;
}

@media (max-width: 768px) {
    .modal-pet-image-container {
        flex: 0 0 auto;
        height: 200px;
    }
}

.modal-pet-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-pet-info {
    flex: 1;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

@media (max-width: 768px) {
    .modal-pet-info {
        max-height: none;
    }
}

.modal-pet-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.modal-pet-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.modal-pet-status {
    padding: 0.3rem 0.75rem;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    white-space: nowrap;
}

.modal-pet-status.lost {
    background: var(--danger);
    color: var(--light);
}

.modal-pet-status.found {
    background: var(--success);
    color: var(--light);
}

.modal-sections-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

@media (max-width: 600px) {
    .modal-sections-grid {
        grid-template-columns: 1fr;
    }
}

.modal-section {
    background: rgba(129, 112, 207, 0.05);
    padding: 1rem;
    border-radius: var(--radius-md);
}

.modal-section-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-section-title i {
    color: var(--primary);
}

.modal-details-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.modal-detail-item {
    flex: 1;
    min-width: 80px;
}

.modal-detail-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.2rem;
}

.modal-detail-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}

.modal-last-seen {
    background: rgba(255, 184, 92, 0.1);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    border-left: 3px solid var(--warning);
}

.modal-last-seen p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.modal-last-seen p strong {
    color: var(--text-primary);
}

.modal-characteristics {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.characteristic-badge {
    background: rgba(100, 216, 203, 0.15);
    color: var(--accent);
    padding: 0.3rem 0.6rem;
    border-radius: 100px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.modal-contact-section {
    background: linear-gradient(135deg, rgba(129, 112, 207, 0.1) 0%, rgba(100, 216, 203, 0.1) 100%);
    padding: 1rem;
    border-radius: var(--radius-md);
    margin-top: auto;
}

.modal-reward {
    background: linear-gradient(135deg, rgba(255, 184, 92, 0.2) 0%, rgba(255, 107, 138, 0.15) 100%);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    color: var(--warning);
}

.modal-reward .reward-amount {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-reward .reward-notes {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-style: italic;
    padding-left: 1.5rem;
}

.modal-reward strong {
    color: var(--text-primary);
    font-size: 1.1rem;
}

.modal-contact-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-contact-title i {
    color: var(--primary);
}

.modal-contact-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.btn-modal-contact {
    flex: 1;
    min-width: 120px;
    padding: 0.6rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-modal-contact.phone {
    background: var(--success);
    border: none;
    color: var(--light);
}

.btn-modal-contact.phone:hover {
    background: var(--accent-dark);
}

.btn-modal-contact.email {
    background: var(--primary);
    border: none;
    color: var(--light);
}

.btn-modal-contact.email:hover {
    background: var(--primary-dark);
}

/* Search Radius Visualization */
.search-radius-info {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.75rem;
}

.radius-indicator {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.radius-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Custom Map Marker Styles */
.custom-user-marker {
    background: var(--primary);
    border: 3px solid var(--light);
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(129, 112, 207, 0.5);
}

.custom-pet-marker {
    background: var(--danger);
    border: 3px solid var(--light);
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(255, 107, 138, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light);
    font-size: 12px;
}

/* Map Popup Custom Styles */
.map-popup {
    text-align: center;
    padding: 0.5rem;
}

.map-popup-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 0.5rem;
    border: 3px solid var(--primary);
}

.map-popup-name {
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.map-popup-info {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .lost-pets-content {
        padding: 90px 0 40px;
    }

    .page-title {
        font-size: 2rem;
    }

    .page-subtitle {
        font-size: 1rem;
    }

    .location-permission-card {
        padding: 2rem 1.5rem;
    }

    .permission-icon {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }

    .lost-pets-map {
        height: 400px;
    }

    .map-legend {
        bottom: 0.75rem;
        left: 0.75rem;
        padding: 0.5rem 0.75rem;
        gap: 1rem;
        font-size: 0.8rem;
    }

    .btn-center-map {
        bottom: 0.75rem;
        right: 0.75rem;
        width: 40px;
        height: 40px;
    }

    .toolbar-row {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .toolbar-left {
        order: 1;
    }
    
    .toolbar-search {
        order: 3;
        max-width: none;
        flex: 1 1 100%;
        margin-top: 0.25rem;
    }
    
    .filter-group {
        order: 2;
    }
    
    .filter-divider {
        order: 2;
    }
    
    .results-count {
        order: 2;
    }

    .pets-grid {
        grid-template-columns: 1fr;
    }

    .modal-content {
        max-height: 85vh;
    }

    .modal-pet-image {
        height: 220px;
    }

    .modal-details-grid {
        grid-template-columns: 1fr;
    }

    .modal-contact-buttons {
        flex-direction: column;
    }

    .btn-modal-contact {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .location-badge span {
        display: none;
    }
    
    .filter-label {
        display: none;
    }
    
    .filter-btn {
        padding: 0.3rem 0.5rem;
    }

    .btn-enable-location {
        width: 100%;
        justify-content: center;
    }

    .pet-card-image {
        height: 180px;
    }

    .pet-card-actions {
        flex-direction: column;
    }

    .btn-view-details,
    .btn-contact-owner {
        width: 100%;
    }
}

/* Print styles */
@media print {
    .lost-pets-content {
        padding: 0;
    }

    .map-section,
    .compact-toolbar,
    .btn-view-details,
    .btn-contact-owner {
        display: none;
    }

    .pet-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
}

/* ===========================================
   MARKER CLUSTER STYLES
   =========================================== */
.marker-cluster-wrapper {
    background: transparent !important;
}

.marker-cluster-custom {
    transition: transform 0.2s ease;
}

.marker-cluster-custom:hover {
    transform: scale(1.1);
}

/* Override default MarkerCluster styles */
.marker-cluster-small,
.marker-cluster-medium,
.marker-cluster-large {
    background: transparent !important;
}

.marker-cluster-small div,
.marker-cluster-medium div,
.marker-cluster-large div {
    background: transparent !important;
}

/* Cluster spider leg styles */
.leaflet-cluster-anim .leaflet-marker-icon,
.leaflet-cluster-anim .leaflet-marker-shadow {
    transition: transform 0.3s ease-out, opacity 0.3s ease-in;
}

/* Custom spider leg color */
.leaflet-cluster-spider-leg {
    stroke: #8170CF;
    stroke-opacity: 0.6;
}

/* =============================================
   COOKIE NOTICE
   ============================================= */
.cookie-notice {
    position: fixed;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    background: var(--dark-card);
    border: 1px solid var(--primary);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: none;
    z-index: 9998;
    animation: slideUpCookie 0.5s ease;
}

body.light-mode .cookie-notice {
    background: var(--light);
    box-shadow: var(--shadow-lg);
}

.cookie-notice.show {
    display: block;
}

@keyframes slideUpCookie {
    from {
        transform: translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: center;
}

.cookie-content p {
    margin: 0;
    color: var(--text-secondary);
}

.cookie-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn-cookie-accept,
.btn-cookie-reject {
    padding: 0.5rem 1.5rem;
    border-radius: 100px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-cookie-accept {
    background: var(--primary);
    color: var(--light);
}

.btn-cookie-accept:hover {
    background: var(--accent);
}

.btn-cookie-reject {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--text-secondary);
}

.btn-cookie-reject:hover {
    background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 480px) {
    .cookie-notice {
        left: 0.5rem;
        right: 0.5rem;
        padding: 1rem;
    }
    
    .cookie-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .btn-cookie-accept,
    .btn-cookie-reject {
        width: 100%;
    }
}
