/* Global Styles */
:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #f8f9fa;
}

/* Navigation */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
}

/* Hero Section */
.hero-section {
    min-height: 500px;
    display: flex;
    align-items: center;
}

.carousel-item {
    min-height: 500px;
}

/* Cards */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,.1);
}

.category-card {
    border-radius: 15px;
    overflow: hidden;
}

.listing-card {
    border-radius: 10px;
    overflow: hidden;
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #0056b3;
    border-color: #004085;
}

/* Forms */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Rating Stars */
.rating-stars {
    color: #ffc107;
}

/* Footer */
footer {
    margin-top: auto;
}

/* Admin Panel */
.sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
    padding: 48px 0 0;
    box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1);
}

@media (max-width: 767.98px) {
    .sidebar {
        top: 5rem;
    }
}

.nav-link {
    color: #333;
    padding: 0.5rem 1rem;
}

.nav-link:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.nav-link.active {
    background-color: rgba(0, 123, 255, 0.1);
    color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        min-height: auto;
        padding: 2rem 0;
    }
    
    .carousel-item {
        min-height: 300px;
    }
    
    .col-md-3, .col-md-4, .col-md-6 {
        margin-bottom: 1rem;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Sticky Contact Box */
.sticky-contact {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

/* Search Results */
.search-results {
    min-height: 400px;
}

.load-more-btn {
    display: block;
    margin: 2rem auto;
}

/* Map Container */
.map-container {
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
}

/* Image Gallery */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
    margin-top: 1rem;
}

.gallery-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
}

.gallery-image:hover {
    opacity: 0.8;
}

/* Review Form */
.review-form {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    margin-top: 2rem;
}

/* Comments */
.comment-item {
    border-left: 3px solid var(--primary-color);
    padding-left: 1rem;
    margin-bottom: 1rem;
}

.comment-reply {
    margin-left: 2rem;
    border-left: 2px solid var(--secondary-color);
    padding-left: 1rem;
}