/* =====================================orange   Global Variables
   ======================================== */
:root {
    --primary-orange: #f7ae2a;
    --secondary-green: #4caf50;
    --accent-yellow: #ffc107;
    --sea-foam: #3bacb7;
    --light-pink: #fce4ec;
    --sidebar-width: 250px;
    --dark-bg: #1a1a1a;
    --key-lime: #1ca979;
    --bs-primary:#3bacb7;
    --bs-btn-color:#3bacb7;
    --bs-btn-hover-bg:#3bacb7;
}


/* ========================================
   Base Styles
   ======================================== */
body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #333;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
}

.bg-primary {
    background-color: var(--sea-foam) !important;
}

.bg-success {
    background-color: var(--key-lime) !important;
}

a {
    color: var(--sea-foam);
}

.text-primary {
    color: var(--sea-foam) !important;
}

.btn-outline-primary {
    --bs-btn-color: #3bacb7;
    --bs-btn-border-color: #3bacb7;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #3bacb7;
    --bs-btn-hover-border-color: #3bacb7;
    --bs-btn-focus-shadow-rgb: 13, 110, 253;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #3bacb7;
    --bs-btn-active-border-color: #3bacb7;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #3bacb7;
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: #3bacb7;
    --bs-gradient: none;
}

/* ========================================
   Frontend Navbar
   ======================================== */
.navbar {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 1rem 0;
}

.navbar-brand {
    font-weight: 600;
    color: #333 !important;
    font-size: 1.5rem;
    font-family: 'Poppins', sans-serif;
}

.navbar-brand img {
    max-width: 300px;
    height: auto;
}

.nav-link {
    color: #666 !important;
    font-weight: 400;
    font-size: 0.95rem;
    padding: 0.5rem 1rem !important;
}

.nav-link:hover {
    color: var(--primary-orange) !important;
}

/* ========================================
   Buttons
   ======================================== */
.btn-primary {
    background: var(--primary-orange);
    border: none;
    border-radius: 6px;
    padding: 0.6rem 1.8rem;
    font-weight: 500;
}

.btn-primary:hover {
    background: var(--primary-orange);
    transform: translateY(-1px);
}

.btn-success {
    background: var(--secondary-green);
    border: none;
}

.btn-success:hover {
    background: #388e3c;
}

/* ========================================
   Hero Section
   ======================================== */
.hero-section {
    background-image: linear-gradient(rgba(66, 172, 183, 0.5), rgba(66, 172, 183, 0.8)), url(../images/beach-wedding-flowers-background.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    padding: 100px 0 120px;
    position: relative;
}

.hero-section h1 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-section p {
    font-size: 1.1rem;
    opacity: 0.95;
}

/* ========================================
   Search Box
   ======================================== */
.search-box {
    background: white;
    border-radius: 50px;
    padding: 0.3rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    max-width: 600px;
    margin: 0 auto;
}

.search-box input {
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
}

.search-box input:focus {
    outline: none;
    box-shadow: none;
}

.search-box button {
    border-radius: 50px;
    padding: 0.8rem 2rem;
}

/* ========================================
   County Cards
   ======================================== */
.county-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: left;
    transition: all 0.3s;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.county-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    border-color: var(--primary-orange);
}

.county-card h5 {
    font-weight: 600;
    margin: 0;
    color: #333;
    font-size: 1.1rem;
}

.county-badge {
    background: var(--light-pink);
    color: var(--primary-orange);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

/* ========================================
   Cards
   ======================================== */
.card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover, .hover-shadow:hover .card {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.card-img-top {
    height: 280px;
    object-fit: cover;
}

.rating-stars {
    color: var(--accent-yellow);
}

/* ========================================
   Section Titles
   ======================================== */
.section-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: #666;
    font-size: 1rem;
}

/* ========================================
   Footer
   ======================================== */
footer {
    background: #3bacb7;
    color: white;
    padding: 50px 0 30px;
    margin-top: 80px;
}

footer a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

footer a:hover {
    color: white;
}

footer h6 {
    font-weight: 600;
    margin-bottom: 1rem;
}

/* ========================================
   City Carousel
   ======================================== */
.city-carousel-container {
    overflow: hidden;
    margin: 0 60px;
}

.city-carousel-track {
    display: flex;
    gap: 16px;
    transition: transform 0.5s ease;
}

.city-card {
    flex: 0 0 calc(25% - 12px);
    min-width: calc(25% - 12px);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.city-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.25);
}

.city-card-image {
    height: 280px;
    background-size: cover;
    background-position: center;
    position: relative;
}

/* Lazy loading background placeholder */
.lazy-bg {
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    transition: background-image 0.3s ease-in-out;
}

.city-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 60%, transparent 100%);
    padding: 40px 20px 20px;
}

.city-card-title {
    color: white;
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.city-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    font-size: 1.1rem;
}

.city-carousel-btn:hover {
    background: var(--primary-orange);
    color: white;
    box-shadow: 0 6px 16px rgba(216, 27, 96, 0.3);
}

.city-carousel-prev {
    left: 0;
}

.city-carousel-next {
    right: 0;
}

/* ========================================
   Admin Panel Styles
   ======================================== */
.admin-wrapper {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: var(--sidebar-width);
    background: var(--dark-bg);
    color: white;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
}

.sidebar-header {
    padding: 20px;
    background: linear-gradient(135deg, #e91e63 0%, var(--secondary-green) 100%);
    text-align: center;
}

.sidebar-menu {
    padding: 0;
    margin: 0;
    list-style: none;
}

.sidebar-menu li a {
    display: block;
    padding: 15px 20px;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: all 0.3s;
}

.sidebar-menu li a:hover,
.sidebar-menu li a.active {
    background: rgba(255,255,255,0.1);
    color: white;
    border-left: 4px solid #e91e63;
}

.main-content {
    margin-left: var(--sidebar-width);
    flex: 1;
    padding: 0;
}

.top-navbar {
    background: white;
    padding: 15px 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.content-area {
    padding: 30px;
}

.stat-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.stat-card h3 {
    font-size: 32px;
    margin: 0;
    color: #e91e63;
}

/* Admin Button Overrides */
.admin-wrapper .btn-primary {
    background: #e91e63;
}

.admin-wrapper .btn-primary:hover {
    background: #c2185b;
}

.admin-wrapper .btn-success {
    background: var(--secondary-green);
}

.admin-wrapper .btn-success:hover {
    background: #388e3c;
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 1200px) {
    .city-card {
        flex: 0 0 calc(33.333% - 11px);
        min-width: calc(33.333% - 11px);
    }
}

@media (max-width: 768px) {
    .city-card {
        flex: 0 0 calc(50% - 8px);
        min-width: calc(50% - 8px);
    }
    .city-carousel-container {
        margin: 0 50px;
    }
    .city-carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .city-card {
        flex: 0 0 100%;
        min-width: 100%;
    }
    .city-card-image {
        height: 240px;
    }
}

/* ========================================
   Listing Photo & Review Summary
   ======================================== */

/* Listing photo with max-width constraint */
.listing-photo {
    max-width: 350px;
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Customer summary box */
.customer-summary-box {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-left: 4px solid var(--sea-foam);
    padding: 1.5rem;
    border-radius: 8px;
    height: 100%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.customer-summary-box h5 {
    color: var(--sea-foam);
    font-weight: 600;
    font-size: 1.1rem;
}

.customer-summary-text {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #495057;
    margin-bottom: 0;
}

/* Review statistics */
.review-stats {
    border-top: 2px solid rgba(59, 172, 183, 0.2);
    padding-top: 1rem;
}

.stat-item {
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    line-height: 1.8;
}

.stat-item i {
    font-size: 1rem;
    flex-shrink: 0;
}

.stat-item strong {
    color: #212529;
    font-weight: 600;
}

.stat-item .text-muted {
    color: #6c757d !important;
    font-size: 0.875rem;
}

/* Responsive adjustments for listing page */
@media (max-width: 767px) {
    .listing-photo {
        max-width: 100%;
        margin-bottom: 1.5rem;
    }

    .customer-summary-box {
        margin-top: 1rem;
    }

    .review-stats {
        margin-top: 1rem;
    }

    .stat-item {
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
    }
}
