/**
 * Business Directory Pro - Complete Styles
 * Place this file at: /assets/styles.css
 */

/* ==========================================================================
   SEARCH FORM STYLES
   ========================================================================== */

.bdp-search-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 30px 20px;
    border-radius: 12px;
    margin-bottom: 40px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.bdp-search-form {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.bdp-dropdown {
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    min-width: 180px;
    font-size: 16px;
    background: white;
    color: #333;
    transition: all 0.3s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}

.bdp-dropdown:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
    transform: translateY(-1px);
}

.bdp-dropdown:disabled {
    background-color: #f5f5f5;
    color: #999;
    cursor: not-allowed;
}

.bdp-search-button {
    padding: 12px 25px;
    background: linear-gradient(135deg, #0073aa 0%, #005a87 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    min-width: 120px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}

.bdp-search-button:hover:not(:disabled) {
    background: linear-gradient(135deg, #005a87 0%, #004269 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 115, 170, 0.3);
}

.bdp-search-button:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ==========================================================================
   BUSINESS LISTINGS STYLES
   ========================================================================== */

.bdp-listings-container {
    max-width: 1200px;
    margin: 0 auto;
}

.bdp-business-list {
    list-style: none;
    padding: 0;
    margin: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.bdp-business-item {
    padding: 20px 25px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    transition: all 0.3s ease;
    min-height: 80px;
}

.bdp-business-item:hover {
    background-color: #f8f9fa;
    transform: translateX(5px);
}

.bdp-business-item:last-child {
    border-bottom: none;
}

.bdp-business-main {
    flex-grow: 1;
    min-width: 0;
}

.bdp-business-title {
    font-size: 1.3em;
    font-weight: 600;
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.bdp-business-title a {
    text-decoration: none;
    color: #0073aa;
    transition: color 0.3s ease;
}

.bdp-business-title a:hover {
    color: #005a87;
    text-decoration: underline;
}

.bdp-business-meta {
    font-size: 0.95em;
    color: #666;
    line-height: 1.6;
}

.bdp-business-meta div {
    margin: 4px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.bdp-business-meta a {
    color: #0073aa;
    text-decoration: none;
    transition: color 0.3s ease;
}

.bdp-business-meta a:hover {
    color: #005a87;
    text-decoration: underline;
}

.bdp-business-location {
    font-size: 0.9em;
    color: #888;
    font-style: italic;
    margin-left: 25px;
    white-space: nowrap;
    flex-shrink: 0;
    font-weight: 500;
}

/* ==========================================================================
   RELATED BUSINESSES STYLES
   ========================================================================== */

.bdp-related-businesses {
    margin-top: 50px;
    padding: 40px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.bdp-related-businesses h3 {
    margin: 0 0 30px 0;
    color: #333;
    font-size: 1.8em;
    font-weight: 700;
    border-bottom: 3px solid #0073aa;
    padding-bottom: 15px;
    text-align: center;
}

.bdp-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.bdp-related-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border-left: 4px solid #0073aa;
}

.bdp-related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.bdp-related-card h4 {
    margin: 0 0 12px 0;
    font-size: 1.2em;
    font-weight: 600;
}

.bdp-related-card h4 a {
    text-decoration: none;
    color: #0073aa;
    transition: color 0.3s ease;
}

.bdp-related-card h4 a:hover {
    color: #005a87;
}

.bdp-related-card p {
    margin: 8px 0;
    font-size: 0.9em;
    color: #666;
    line-height: 1.5;
}

/* ==========================================================================
   BROWSE GRID STYLES
   ========================================================================== */

.bdp-browse-container {
    max-width: 1200px;
    margin: 0 auto;
}

.bdp-browse-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.bdp-location-card {
    padding: 30px;
    border: 2px solid #e0e0e0;
    border-radius: 15px;
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.bdp-location-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    border-color: #0073aa;
}

.bdp-location-card h4 {
    margin: 0 0 15px 0;
    font-size: 1.4em;
    font-weight: 700;
}

.bdp-location-card h4 a {
    text-decoration: none;
    color: #0073aa;
    transition: color 0.3s ease;
}

.bdp-location-card h4 a:hover {
    color: #005a87;
}

.bdp-listing-count {
    color: #666;
    font-size: 1.1em;
    margin: 10px 0;
    font-weight: 600;
}

.bdp-location-description {
    color: #888;
    font-size: 0.95em;
    line-height: 1.5;
}

/* ==========================================================================
   HOME PAGE STYLES
   ========================================================================== */

.bdp-home-container {
    max-width: 1200px;
    margin: 0 auto;
}

.bdp-home-container .bdp-search-section {
    text-align: center;
    margin-bottom: 50px;
}

.bdp-home-container .bdp-search-section h3 {
    font-size: 2.2em;
    color: #333;
    margin-bottom: 30px;
    font-weight: 700;
}

.bdp-featured-section {
    margin-top: 40px;
}

.bdp-featured-section h3 {
    font-size: 1.8em;
    color: #333;
    margin-bottom: 25px;
    font-weight: 600;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 10px;
}

/* ==========================================================================
   MAP STYLES
   ========================================================================== */

.bdp-map-container {
    margin: 25px 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.bdp-business-map {
    width: 100%;
    height: 350px;
    border: none;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 768px) {
    .bdp-search-form {
        flex-direction: column;
        gap: 15px;
    }
    
    .bdp-dropdown {
        min-width: 100%;
        width: 100%;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .bdp-search-button {
        width: 100%;
        padding: 15px 25px;
    }
    
    .bdp-business-item {
        flex-direction: column;
        padding: 20px;
        gap: 10px;
    }
    
    .bdp-business-location {
        margin-left: 0;
        margin-top: 10px;
        white-space: normal;
    }
    
    .bdp-related-businesses {
        padding: 25px 20px;
        margin-top: 30px;
    }
    
    .bdp-related-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .bdp-browse-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .bdp-location-card {
        padding: 25px 20px;
    }
    
    .bdp-home-container .bdp-search-section h3 {
        font-size: 1.8em;
    }
}

@media (max-width: 480px) {
    .bdp-search-section {
        padding: 20px 15px;
    }
    
    .bdp-business-item {
        padding: 15px;
    }
    
    .bdp-business-title {
        font-size: 1.1em;
    }
    
    .bdp-related-businesses {
        padding: 20px 15px;
    }
    
    .bdp-location-card {
        padding: 20px 15px;
    }
    
    .bdp-home-container .bdp-search-section h3 {
        font-size: 1.5em;
    }
}

/* ==========================================================================
   UTILITY CLASSES
   ========================================================================== */

.bdp-text-center {
    text-align: center;
}

.bdp-mt-20 {
    margin-top: 20px;
}

.bdp-mb-20 {
    margin-bottom: 20px;
}

.bdp-hidden {
    display: none;
}

.bdp-loading {
    opacity: 0.6;
    pointer-events: none;
}

/* ==========================================================================
   ANIMATION KEYFRAMES
   ========================================================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.bdp-fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* ==========================================================================
   PRINT STYLES
   ========================================================================== */

@media print {
    .bdp-search-section,
    .bdp-search-button,
    .bdp-business-map {
        display: none;
    }
    
    .bdp-business-item {
        break-inside: avoid;
        page-break-inside: avoid;
    }
    
    .bdp-business-title a {
        color: #000 !important;
        text-decoration: none !important;
    }
}