/*
Theme Name: Business Directory Pro
Description: A comprehensive business directory theme where each business gets its own page with ratings, reviews, and detailed information.
Author: Business Directory Pro
Version: 1.0.0
License: GPL v2 or later
Text Domain: business-directory-pro
*/

/* ======================================
 * TABLE OF CONTENTS
 * ======================================
 * 1. Reset and Base Styles
 * 2. Layout and Grid
 * 3. Header
 * 4. Hero Section
 * 5. Search Form
 * 6. Stats Section
 * 7. Categories Showcase
 * 8. Featured Businesses
 * 9. Business Cards
 * 10. Buttons and UI Elements
 * 11. Footer
 * 12. Responsive Design
 * ====================================== */

/* ====================================== 
 * 1. Reset and Base Styles
 * ====================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* ====================================== 
 * 2. Layout and Grid
 * ====================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Special full-width container for business detail pages */
.page-fullwidth .container,
.business-detail .container {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 30px !important;
    box-sizing: border-box;
    margin: 0 auto;
}

/* ====================================== 
 * 3. Header
 * ====================================== */
.site-header {
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

/* Navigation - Center */
.main-navigation {
    display: flex;
    align-items: center;
    gap: 25px;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 25px;
    margin: 0;
    padding: 0;
}

.main-navigation a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

.main-navigation a:hover {
    color: #3498db;
}

.add-business-btn {
    background: #e74c3c;
    color: #fff;
    padding: 12px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s;
    white-space: nowrap;
}

.add-business-btn:hover {
    background: #c0392b;
}

/* Site Branding - Right Side */
.site-branding {
    text-align: right;
}

.site-title {
    font-size: 1.8rem;
    color: #2c3e50;
    text-decoration: none;
    font-weight: bold;
}

.site-tagline {
    font-size: 14px;
    color: #7f8c8d;
    margin-top: 5px;
}

/* ====================================== 
 * 4. Hero Section
 * ====================================== */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 80px 0;
    text-align: center;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

/* ====================================== 
 * 5. Search Form
 * ====================================== */
.hero-search-form {
    max-width: 600px;
    margin: 0 auto 50px;
    height: 60px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    display: flex;
    background: #fff;
    border-radius: 30px;
    overflow: hidden;
}

.hero-search-form .search-input {
    flex: 1;
    padding: 0 30px;
    border: none;
    outline: none;
    font-size: 18px;
    background: transparent;
}

.hero-search-form .search-button {
    background: #3498db;
    color: #fff;
    border: none;
    padding: 0 40px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
    font-size: 16px;
}

.hero-search-form .search-button:hover {
    background: #2980b9;
}

/* ====================================== 
 * 6. Stats Section
 * ====================================== */
.stats-section {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    display: block;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
}

/* ====================================== 
 * 7. Categories Showcase
 * ====================================== */
.main-content {
    background: transparent;
    padding: 0;
    min-height: auto;
}

.categories-showcase {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
    width: 100%;
    display: block;
}

.categories-showcase::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>') repeat;
    background-size: 50px 50px;
}

.categories-showcase .container {
    position: relative;
    z-index: 2;
}

.categories-showcase .section-header {
    text-align: center;
    margin-bottom: 60px;
}

.categories-showcase .section-title {
    font-size: 3rem;
    color: #fff;
    margin-bottom: 15px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.categories-showcase .section-subtitle {
    color: rgba(255,255,255,0.9);
    font-size: 1.2rem;
    font-weight: 300;
}

.categories-showcase .categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.categories-showcase .category-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: all 0.4s ease;
    text-decoration: none;
    color: inherit;
    border: 2px solid rgba(255,255,255,0.2);
}

.categories-showcase .category-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    background: rgba(255, 255, 255, 1);
    text-decoration: none;
    color: inherit;
}

.categories-showcase .category-icon {
    font-size: 4rem;
    color: #667eea;
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.categories-showcase .category-card:hover .category-icon {
    color: #764ba2;
    transform: scale(1.1);
}

.categories-showcase .category-name {
    font-size: 1.4rem;
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: 600;
}

.categories-showcase .category-count {
    color: #7f8c8d;
    font-size: 14px;
    font-weight: 500;
}

/* ====================================== 
 * 8. Featured Businesses
 * ====================================== */
.featured-businesses {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 50%, #fecfef 100%);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
    width: 100%;
    display: block;
}

.featured-businesses::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><polygon points="50,10 90,90 10,90" fill="rgba(255,255,255,0.05)"/></svg>') repeat;
    background-size: 80px 80px;
}

.featured-businesses .container {
    position: relative;
    z-index: 2;
}

.featured-businesses .section-header {
    text-align: center;
    margin-bottom: 70px;
}

.featured-businesses .section-title {
    font-size: 3rem;
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.featured-businesses .section-subtitle {
    color: #34495e;
    font-size: 1.2rem;
    font-weight: 400;
}

.featured-businesses .businesses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.featured-businesses .business-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    transition: all 0.4s ease;
    border: 2px solid rgba(255,255,255,0.3);
}

.featured-businesses .business-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0,0,0,0.25);
    background: rgba(255, 255, 255, 1);
}

/* ====================================== 
 * 9. Business Cards
 * ====================================== */
.business-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.business-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.business-image {
    height: 200px;
    background: #ddd;
    position: relative;
    overflow: hidden;
}

.business-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.business-status {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: bold;
}

.status-open {
    background: #27ae60;
    color: #fff;
}

.status-closed {
    background: #e74c3c;
    color: #fff;
}

.business-info {
    padding: 25px;
}

.business-title {
    font-size: 1.4rem;
    color: #2c3e50;
    margin-bottom: 10px;
    font-weight: 600;
}

.business-title a {
    color: inherit;
    text-decoration: none;
}

.business-title a:hover {
    color: #3498db;
}

.business-category {
    color: #3498db;
    font-size: 14px;
    margin-bottom: 15px;
    font-weight: 500;
}

.business-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.stars {
    color: #f39c12;
    font-size: 16px;
}

.rating-text {
    color: #7f8c8d;
    font-size: 14px;
}

.business-address {
    color: #7f8c8d;
    font-size: 14px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.business-phone {
    color: #2c3e50;
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.business-actions {
    display: flex;
    gap: 10px;
}

/* ====================================== 
 * 10. Buttons and UI Elements
 * ====================================== */
.btn-primary, .btn-secondary {
    padding: 8px 16px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-primary {
    background: #3498db;
    color: #fff;
}

.btn-primary:hover {
    background: #2980b9;
}

.btn-secondary {
    background: #ecf0f1;
    color: #2c3e50;
}

.btn-secondary:hover {
    background: #d5dbdb;
}

.btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.8);
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    display: inline-block;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    text-decoration: none;
    color: #fff;
}

.featured-businesses .btn-outline {
    color: #2c3e50;
    border: 2px solid #2c3e50;
}

.featured-businesses .btn-outline:hover {
    background: #2c3e50;
    color: #fff;
}

.section-actions {
    text-align: center;
    margin-top: 30px;
}

.section-actions .btn-outline i {
    margin-right: 10px;
}

/* ====================================== 
 * 11. Business Details, Reviews & Ratings
 * ====================================== */
/* Business Detail Page */
.business-detail {
    padding: 60px 0;
    width: 100%;
}

.business-detail .container {
    max-width: 100%;
    width: 100%;
    padding: 0 40px;
    box-sizing: border-box;
}

.business-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 40px;
    flex-wrap: wrap;
    width: 100%;
}

.business-header-left {
    flex: 1;
    min-width: 300px;
}

.business-title {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 15px;
}

.business-category a {
    color: #3498db;
    font-size: 1.1rem;
    text-decoration: none;
}

.business-rating {
    display: flex;
    align-items: center;
    margin-top: 15px;
    gap: 10px;
}

.business-header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 15px;
}

.business-header-status {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
}

.business-actions {
    display: flex;
    gap: 10px;
}

.business-content {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.business-main {
    flex: 1;
    min-width: 70%;
    width: 70%;
    box-sizing: border-box;
    padding-right: 20px;
}

.business-sidebar {
    width: 25%;
    min-width: 300px;
    max-width: 25%;
    box-sizing: border-box;
}

.business-featured-image {
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.business-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Tabs */
.business-tabs {
    margin-bottom: 40px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    overflow: hidden;
}

.tab-nav {
    display: flex;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.tab-link {
    padding: 15px 25px;
    font-weight: 500;
    color: #6c757d;
    text-decoration: none;
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
}

.tab-link.active {
    color: #3498db;
    border-bottom: 3px solid #3498db;
}

.tab-link:hover:not(.active) {
    background: rgba(0,0,0,0.02);
    color: #495057;
}

.tab-content {
    padding: 30px;
    width: 100%;
    box-sizing: border-box;
    max-width: 100%;
}

.tab-pane {
    display: none;
    width: 100%;
    box-sizing: border-box;
    max-width: 100%;
}

.tab-pane.active {
    display: block;
}

.tab-pane > h2 {
    width: 100%;
}

.tab-pane h2 {
    margin-bottom: 25px;
    color: #2c3e50;
    font-size: 2rem;
    width: 100%;
}

/* Business Details */
.business-description {
    margin-bottom: 30px;
    line-height: 1.8;
    color: #4a5568;
    font-size: 1.2rem;
    width: 100%;
    max-width: 100%;
    padding: 0;
    box-sizing: border-box;
}

.business-details {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 40px;
}

.detail-item {
    display: flex;
    gap: 20px;
}

.detail-icon {
    width: 50px;
    height: 50px;
    background: #e6f3fb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #3498db;
}

.detail-content {
    flex: 1;
}

.detail-content h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #2c3e50;
}

.contact-list {
    list-style: none;
    padding: 0;
}

.contact-list li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-list li span {
    color: #6c757d;
}

.contact-list li a {
    color: #3498db;
    text-decoration: none;
}

.map-container {
    margin-top: 15px;
}

.business-hours p {
    margin: 5px 0;
}

/* Reviews */
.review-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 40px;
}

.review-item {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.reviewer-avatar img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.reviewer-details {
    flex: 1;
}

.reviewer-name {
    font-size: 1rem;
    color: #2c3e50;
    margin: 0;
}

.review-date {
    font-size: 0.8rem;
    color: #6c757d;
}

.review-content {
    color: #4a5568;
    line-height: 1.6;
}

.no-reviews {
    background: #f8f9fa;
    padding: 30px;
    text-align: center;
    border-radius: 10px;
}

/* Review Form */
.review-form-section {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    margin-top: 40px;
    width: 100%;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    border: 1px solid #e9ecef;
    scroll-margin-top: 80px; /* Ensures proper scrolling position */
}

.review-form-section:target,
.review-form-section.highlight {
    animation: highlight-review-form 1.5s ease;
}

.review-form-section h3 {
    margin-bottom: 20px;
    font-size: 1.5rem;
    color: #2c3e50;
}

.review-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.form-group label {
    font-weight: 500;
    color: #2c3e50;
    font-size: 1.1rem;
}

.rating-select {
    width: 100%;
}

.rating-select .stars {
    display: flex;
    flex-direction: row-reverse;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 10px;
    margin-bottom: 5px;
}

.rating-select input[type="radio"] {
    display: none;
}

.rating-select label {
    cursor: pointer;
    font-size: 30px;
    color: #ddd;
    transition: color 0.2s;
}

.rating-select label.hover,
.rating-select label.selected {
    color: #ffc107;
}

.rating-select input[type="radio"]:checked ~ label {
    color: #ffc107;
}

.rating-text {
    font-size: 14px;
    color: #666;
    text-align: center;
    margin-bottom: 15px;
}

/* Animation for form validation feedback */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes highlight-review-form {
    0% { background-color: #f8f9fa; }
    30% { background-color: #e3f2fd; border-color: #bbdefb; }
    100% { background-color: #f8f9fa; }
}

.review-form textarea {
    border: 1px solid #ced4da;
    border-radius: 8px;
    padding: 15px;
    resize: vertical;
    min-height: 150px;
    width: 100%;
    font-size: 1rem;
    font-family: inherit;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
    transition: border-color 0.3s, box-shadow 0.3s;
}

.review-form textarea:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1), 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.review-form button {
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    align-self: flex-start;
}

.login-prompt {
    text-align: center;
    padding: 20px;
    background-color: #e9ecef;
    border-radius: 8px;
}

.login-prompt a {
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
}

/* Sidebar Widgets */
.sidebar-widget {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    margin-bottom: 30px;
    overflow: hidden;
}

.business-contact-card .contact-header {
    background: #3498db;
    color: #fff;
    padding: 15px 20px;
}

.business-contact-card .contact-header h3 {
    margin: 0;
    font-size: 1.2rem;
}

.business-contact-card .contact-body {
    padding: 20px;
}

.contact-item {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    align-items: flex-start;
}

.contact-item i {
    color: #3498db;
    font-size: 16px;
    margin-top: 3px;
}

.contact-item p {
    margin: 0;
}

.contact-item a {
    color: #4a5568;
    text-decoration: none;
}

.contact-map {
    padding: 0 20px 20px;
}

.btn-full {
    display: block;
    width: 100%;
    text-align: center;
}

.business-cta {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Related Businesses */
.related-businesses {
    padding: 20px;
}

.related-businesses h3 {
    margin-bottom: 20px;
    font-size: 1.2rem;
    color: #2c3e50;
}

.related-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.related-item {
    display: flex;
    gap: 15px;
}

.related-image {
    width: 70px;
    height: 70px;
    border-radius: 5px;
    overflow: hidden;
}

.related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.placeholder-image {
    background: #e9ecef;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
}

.related-info {
    flex: 1;
}

.related-info h4 {
    margin: 0 0 5px;
    font-size: 0.9rem;
}

.related-info h4 a {
    color: #2c3e50;
    text-decoration: none;
}

.related-rating {
    display: flex;
    align-items: center;
    gap: 5px;
}

.stars.small {
    font-size: 12px;
}

.rating-count {
    font-size: 12px;
    color: #6c757d;
}

.gallery-item {
    margin-bottom: 15px;
}

.gallery-item img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    transition: transform 0.3s;
}

.gallery-item img:hover {
    transform: scale(1.02);
}

/* Business Gallery */
.business-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

/* Claim Business Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    overflow: auto;
    padding: 20px;
    box-sizing: border-box;
}

.modal-content {
    background: #fff;
    max-width: 600px;
    margin: 50px auto;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    width: 90%;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: #6c757d;
    transition: color 0.3s;
}

.close-modal:hover {
    color: #343a40;
}

.modal h3 {
    margin-bottom: 15px;
    color: #2c3e50;
    font-size: 1.5rem;
}

#claim-business-form {
    margin-top: 20px;
}

#claim-business-form .form-group {
    margin-bottom: 20px;
}

#claim-business-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #2c3e50;
}

#claim-business-form input,
#claim-business-form select,
#claim-business-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ced4da;
    border-radius: 5px;
    font-size: 16px;
}

#claim-business-form textarea {
    resize: vertical;
    min-height: 100px;
}

#claim-business-form button {
    margin-top: 10px;
}

.claim-business-btn {
    margin-top: 15px;
    background: #f8f9fa;
    color: #495057;
    border-color: #ced4da;
}

.claim-message,
.review-message {
    padding: 15px;
    border-radius: 5px;
    margin: 20px 0;
    text-align: center;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
    max-width: 400px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 0.5s;
}

.claim-message.success,
.review-message.success {
    background-color: rgba(40, 167, 69, 0.9);
    color: white;
}

.claim-message.error,
.review-message.error {
    background-color: rgba(220, 53, 69, 0.9);
    color: white;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 40px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

/* ====================================== 
 * 12. Footer
 * ====================================== */
.site-footer {
    background: #2c3e50;
    color: #fff;
    padding: 40px 0 20px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h3 {
    margin-bottom: 20px;
    color: #3498db;
}

.footer-section a {
    color: #bdc3c7;
    text-decoration: none;
}

.footer-section a:hover {
    color: #fff;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #34495e;
    color: #95a5a6;
}

/* ====================================== 
 * 12. Responsive Design
 * ====================================== */
@media (max-width: 768px) {
    /* Header */
    .header-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .site-branding {
        text-align: center;
        order: -1;
    }
    
    .main-navigation {
        order: 1;
    }
    
    /* Hero */
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    /* Business Detail Page */
    .business-detail .container {
        padding: 0 15px;
        max-width: 100%;
        width: 100%;
    }
    
    .business-content {
        flex-direction: column;
        width: 100%;
        max-width: 100%;
        padding: 0;
        margin: 0;
    }
    
    .business-main,
    .business-sidebar {
        width: 100%;
        min-width: 100%;
        max-width: 100%;
        padding: 0;
        margin: 0;
    }
    
    .business-main {
        font-size: 1rem;
    }
    
    .business-header {
        flex-direction: column;
    }
    
    .business-description {
        font-size: 1rem;
    }
    
    .business-detail p, 
    .business-detail li {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .business-header-right {
        align-items: flex-start;
        margin-top: 20px;
        width: 100%;
    }
    
    .business-actions {
        width: 100%;
        flex-wrap: wrap;
    }
    
    .business-actions a {
        flex: 1;
        text-align: center;
        min-width: 120px;
    }
    
    .tab-nav {
        flex-wrap: wrap;
    }
    
    .tab-link {
        flex: 1;
        text-align: center;
        padding: 10px 15px;
        min-width: 33%;
    }
    
    /* Mobile Search Form - OPTIMIZED */
    .hero-search-form {
        display: flex;
        flex-direction: row;
        height: 50px;
        max-width: 95%;
        border-radius: 25px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.2);
        background: #fff;
        overflow: hidden;
        margin: 0 auto 30px;
        border: 1px solid #ddd;
    }
    
    .hero-search-form .search-input {
        flex: 1;
        height: 50px;
        font-size: 16px;
        border: none;
        outline: none;
        background: #fff;
        color: #333;
        border-radius: 25px 0 0 25px;
        padding: 0 15px;
        margin: 0;
    }
    
    .hero-search-form .search-button {
        width: auto;
        min-width: 50px;
        height: 50px;
        font-size: 16px;
        border: none;
        background: #3498db;
        color: #fff;
        font-weight: bold;
        border-radius: 0 25px 25px 0;
        padding: 0;
        margin: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Hide text in search button on mobile, show only icon */
    .hero-search-form .search-button i {
        margin-right: 0;
        font-size: 18px;
    }
    
    .hero-search-form .search-button span {
        display: none;
    }
    
    /* Stats */
    .stats-section {
        flex-direction: column;
        gap: 30px;
    }
    
    /* Grids */
    .businesses-grid {
        grid-template-columns: 1fr;
    }
    
    .categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    /* Rating system improvements for mobile */
    .rating-select .stars {
        gap: 15px;
        justify-content: center;
        margin-bottom: 10px;
    }
    
    .rating-select label {
        font-size: 35px;
    }
    
    .rating-text {
        font-size: 16px;
        margin-bottom: 20px;
    }
    
    /* Review form improvements for mobile */
    .review-form textarea {
        min-height: 120px;
        padding: 12px;
        font-size: 16px;
    }
    
    .review-form .btn {
        width: 100%;
        padding: 12px;
        font-size: 16px;
        margin-top: 15px;
    }
    
    /* Business content improvements for mobile */
    .business-header-left h1 {
        font-size: 24px;
        line-height: 1.3;
    }
    
    .business-header-status {
        font-size: 14px;
        padding: 4px 10px;
        margin-top: 8px;
    }
    
    .business-info-list li {
        padding: 12px 0;
    }
    
    .business-description {
        font-size: 16px;
        line-height: 1.6;
        margin-bottom: 20px;
    }
}

/* Tablet-specific styles for business pages */
@media (min-width: 769px) and (max-width: 1024px) {
    .business-detail .container {
        padding: 0 20px;
        max-width: 100%;
    }
    
    .business-main {
        flex: 1;
        min-width: 60%;
        width: 100%;
    }
    
    .business-sidebar {
        width: 35%;
        min-width: 300px;
    }
    
    .business-description {
        font-size: 1.1rem;
        width: 100%;
    }
    
    .tab-content {
        padding: 25px 20px;
    }
    
    .business-header {
        flex-wrap: wrap;
    }
}

/* Fullscreen fixes for business detail page */
.business-detail {
    width: 100vw !important;
    max-width: 100vw !important;
    padding: 60px 0 !important;
    box-sizing: border-box !important;
}

.business-detail .container {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 30px !important;
    box-sizing: border-box !important;
}

/* Fix main content width */
.business-content {
    width: 100% !important;
    max-width: 100% !important;
    display: flex !important;
    gap: 40px !important;
    margin: 0 !important;
    padding: 0 !important;
}

.business-main {
    width: 72% !important;
    flex: 0 0 72% !important;
    max-width: 72% !important;
}

.business-sidebar {
    width: 25% !important;
    flex: 0 0 25% !important;
    max-width: 25% !important;
}

/* Fix tab content */
.tab-content {
    width: 100% !important;
    max-width: 100% !important;
    padding: 30px !important;
    box-sizing: border-box !important;
}

.tab-pane {
    width: 100% !important;
    max-width: 100% !important;
}

/* Make sure the review form is visible properly on click */
.review-form-section.highlight {
    box-shadow: 0 0 20px rgba(52, 152, 219, 0.5) !important;
    border: 1px solid #3498db !important;
}

/* Make sure business description takes full width */
.business-description {
    width: 100% !important;
    max-width: 100% !important;
}
