/* Shelter Finder Styles */

.shelter-finder-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Intro Section */
.finder-intro {
    text-align: center;
    margin-bottom: 40px;
}

.finder-intro h2 {
    color: #667eea;
    font-size: 2.5em;
    margin-bottom: 15px;
}

.finder-intro p {
    font-size: 1.2em;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

/* Town Selector Card */
.town-selector-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.town-selector-card label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-size: 1.3em;
    font-weight: bold;
    margin-bottom: 15px;
}

.label-icon {
    font-size: 1.5em;
}

.town-selector-card select {
    width: 100%;
    padding: 15px;
    font-size: 1.1em;
    border: none;
    border-radius: 10px;
    background: white;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.town-selector-card select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.select-hint {
    color: rgba(255, 255, 255, 0.9);
    margin-top: 10px;
    font-size: 0.9em;
}

/* Loading Indicator */
.loading-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    gap: 20px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-indicator p {
    color: #667eea;
    font-size: 1.2em;
    font-weight: 600;
}

/* Selected Town Info */
.selected-town-info {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 10px;
}

.selected-town-info h3 {
    color: #667eea;
    font-size: 2em;
    margin-bottom: 10px;
}

.selected-town-info p {
    color: #666;
    font-size: 1.1em;
}

/* Shelters Grid */
.shelters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

/* Shelter Card */
.shelter-card {
    position: relative;
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    border: 2px solid transparent;
}

.shelter-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2);
    border-color: #667eea;
}

/* Rank Badge */
.rank-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1em;
    box-shadow: 0 4px 10px rgba(102, 126, 234, 0.4);
}

/* Distance Badge */
.distance-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #28a745;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 600;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Shelter Card Content */
.shelter-name {
    color: #333;
    font-size: 1.4em;
    margin: 50px 0 15px 0;
    font-weight: bold;
}

.shelter-location {
    color: #667eea;
    font-weight: 600;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.shelter-address {
    color: #666;
    margin-bottom: 5px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.5;
}

.shelter-postcode {
    color: #888;
    font-size: 0.95em;
    margin-bottom: 15px;
}

.shelter-contacts {
    border-top: 1px solid #eee;
    padding-top: 15px;
    margin-top: 15px;
}

.shelter-contact {
    color: #666;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.shelter-contact a {
    color: #667eea;
    text-decoration: none;
}

.shelter-contact a:hover {
    text-decoration: underline;
}

.shelter-card .icon {
    font-size: 1.1em;
}

/* Shelter Actions */
.shelter-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.shelter-website-btn,
.shelter-maps-btn {
    flex: 1;
    min-width: 140px;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    text-align: center;
    font-weight: 600;
    transition: all 0.3s;
    cursor: pointer;
    display: block;
}

.shelter-website-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.shelter-website-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.shelter-maps-btn {
    background: #28a745;
    color: white;
}

.shelter-maps-btn:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.4);
}

/* No Results */
.no-results {
    text-align: center;
    padding: 60px 20px;
    color: #666;
    font-size: 1.2em;
}

.no-results p {
    font-size: 1.3em;
}

/* Error Message */
.error-message {
    background: #fee;
    border: 2px solid #fcc;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    color: #c33;
}

/* Adoption Tips Section */
.adoption-tips {
    margin: 60px 0 40px 0;
    padding: 40px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 15px;
}

.adoption-tips h3 {
    text-align: center;
    color: #667eea;
    font-size: 2em;
    margin-bottom: 30px;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.tip-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.tip-card:hover {
    transform: translateY(-5px);
}

.tip-icon {
    font-size: 3em;
    display: block;
    margin-bottom: 15px;
}

.tip-card h4 {
    color: #333;
    font-size: 1.3em;
    margin-bottom: 10px;
}

.tip-card p {
    color: #666;
    line-height: 1.6;
}

/* Additional Resources */
.additional-resources {
    margin: 40px 0;
    text-align: center;
}

.additional-resources h3 {
    color: #667eea;
    font-size: 1.8em;
    margin-bottom: 20px;
}

.resource-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.resource-links a {
    background: white;
    color: #667eea;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    border: 2px solid #667eea;
    transition: all 0.3s;
}

.resource-links a:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(102, 126, 234, 0.3);
}

/* Breeder Alternative Link */
.breeder-alternative {
    background: linear-gradient(135deg, #fff5e6 0%, #ffe4cc 100%);
    color: #333;
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    margin: 50px 0;
}

.breeder-alternative h3 {
    color: #e67e22;
    font-size: 2em;
    margin-bottom: 15px;
}

.breeder-alternative p {
    font-size: 1.1em;
    margin-bottom: 25px;
    line-height: 1.6;
    color: #666;
}

.breeder-link {
    display: inline-block;
    background: linear-gradient(135deg, #e67e22 0%, #d35400 100%);
    color: white;
    padding: 15px 40px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1em;
    transition: all 0.3s;
}

.breeder-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(230, 126, 34, 0.4);
}

/* Footer */
footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 30px 20px;
    margin-top: 60px;
}

/* Breeder Finder Section */
.breeder-finder-section {
    margin: 60px 0 40px 0;
    padding: 40px;
    background: linear-gradient(135deg, #fff5e6 0%, #ffe4cc 100%);
    border-radius: 15px;
}

.breeder-finder-section h3 {
    text-align: center;
    color: #e67e22;
    font-size: 2em;
    margin-bottom: 20px;
}

.breeder-intro {
    text-align: center;
    color: #666;
    font-size: 1.1em;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.breeder-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(230, 126, 34, 0.2);
    margin-bottom: 30px;
}

.breeder-card h4 {
    color: #e67e22;
    font-size: 1.5em;
    margin-bottom: 15px;
}

.breeder-card > p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.breeder-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #333;
}

.benefit-icon {
    font-size: 1.3em;
    color: #27ae60;
}

.breeder-actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.breeder-search-btn,
.breeder-guide-btn {
    flex: 1;
    min-width: 200px;
    padding: 15px 25px;
    border-radius: 8px;
    text-decoration: none;
    text-align: center;
    font-weight: 600;
    transition: all 0.3s;
    display: block;
}

.breeder-search-btn {
    background: linear-gradient(135deg, #e67e22 0%, #d35400 100%);
    color: white;
}

.breeder-search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(230, 126, 34, 0.4);
}

.breeder-guide-btn {
    background: white;
    color: #e67e22;
    border: 2px solid #e67e22;
}

.breeder-guide-btn:hover {
    background: #e67e22;
    color: white;
    transform: translateY(-2px);
}

.breeder-warning {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.breeder-warning h4 {
    color: #856404;
    font-size: 1.3em;
    margin-bottom: 15px;
}

.breeder-warning ul {
    margin: 15px 0;
    padding-left: 25px;
}

.breeder-warning li {
    color: #333;
    margin-bottom: 10px;
    line-height: 1.6;
}

.breeder-warning strong {
    color: #856404;
}

.warning-note {
    margin-top: 15px;
    padding: 15px;
    background: rgba(255, 193, 7, 0.2);
    border-radius: 5px;
    color: #856404;
}

.region-breeder-info {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(230, 126, 34, 0.2);
}

.region-breeder-info h4 {
    color: #e67e22;
    font-size: 1.3em;
    margin-bottom: 20px;
    text-align: center;
}

.region-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.region-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 20px;
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
}

.region-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(230, 126, 34, 0.3);
}

.region-link span:first-child {
    font-size: 1.5em;
}

/* Responsive Design */
@media (max-width: 768px) {
    .shelters-grid {
        grid-template-columns: 1fr;
    }
    
    .tips-grid {
        grid-template-columns: 1fr;
    }
    
    .town-selector-card {
        padding: 20px;
    }
    
    .shelter-actions {
        flex-direction: column;
    }
    
    .shelter-website-btn,
    .shelter-maps-btn {
        width: 100%;
    }
    
    .resource-links {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 480px) {
    .finder-intro h2 {
        font-size: 1.8em;
    }
    
    .finder-intro p {
        font-size: 1em;
    }
    
    .shelter-name {
        font-size: 1.2em;
    }
    
    .rank-badge {
        width: 35px;
        height: 35px;
        font-size: 1em;
    }
}
