/**
 * Partner Page Redesign CSS
 * Primary Color: #FF4F1E (LocalRydes Orange)
 * Created: 2025
 */

:root {
    --primary-color: #FF4F1E;
    --primary-dark: #E63E0F;
    --primary-light: #FF6B3D;
    --secondary-color: #2c3e50;
    --accent-color: #3498db;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --bg-light: #f8f9fa;
    --border-light: #e9ecef;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 40px rgba(0,0,0,0.15);
    --shadow-2xl: 0 25px 50px rgba(0,0,0,0.2);
    --shadow-colored: 0 20px 40px rgba(255, 79, 30, 0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

/* Hero Section Styles */
.partner-hero-section {
    position: relative;
    min-height: 71vh;
    overflow: hidden;
    margin-top: -80px;
    padding-top: 80px;
}

.hero-background-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.1);
    transition: transform 8s ease-out;
}

.partner-hero-section:hover .hero-bg-image {
    transform: scale(1.15);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 79, 30, 0.63) 0%, rgba(44, 62, 80, 0.56) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    animation: fadeInUp 0.8s ease-out;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.9);
    line-height: 1.6;
    animation: fadeInUp 1s ease-out;
}

.badge-premium {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #f39c12, #f1c40f);
    color: white;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    animation: fadeInUp 0.6s ease-out;
}

/* Hero Featured Badge */
.hero-featured-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    background: rgba(255, 255, 255, 0.95) !important;
    color: var(--primary-color) !important;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    animation: fadeInUp 0.8s ease-out;
}

.hero-featured-badge i {
    font-size: 1.1rem;
    color: var(--primary-color);
}

.company-logo-wrapper {
    background: white;
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    display: inline-block;
    animation: fadeInUp 1.2s ease-out;
}

.company-logo-hero {
    max-width: 200px;
    height: auto;
}

/* Hero Logo Styles */
.hero-logo-wrapper {
    animation: fadeInUp 1.4s ease-out;
}

.company-logo-hero-container {
    display: inline-block;
    background: rgba(255, 255, 255, 0.95);
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2), 
                0 1px 8px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.company-logo-hero-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25), 
                0 5px 15px rgba(0, 0, 0, 0.15);
}

.company-logo-hero-container .company-logo-hero {
    max-width: 180px;
    width: 100%;
    height: auto;
    display: block;
}

/* Stats Bar */
.quick-stats-bar {
    margin-top: -4rem;
    position: relative;
    z-index: 2;
    animation: slideUp 0.8s ease-out;
}

.stat-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), 
                0 2px 8px rgba(0, 0, 0, 0.06),
                inset 0 1px 0 rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition);
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    background: linear-gradient(145deg, #ffffff, #fafafa);
}

.stat-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 79, 30, 0.2), transparent);
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(255, 79, 30, 0.15), 
                0 4px 12px rgba(0, 0, 0, 0.08),
                inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border-color: rgba(255, 79, 30, 0.2);
}

.stat-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    transition: var(--transition);
}

.stat-card:hover .stat-icon {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    transform: rotate(5deg);
}

.stat-content {
    flex: 1;
}

.stat-number {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-light);
    margin: 0.25rem 0 0;
}

/* Content Cards */
.content-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12), 0 1px 8px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    animation: fadeIn 0.8s ease-out;
    position: relative;
    border: 1px solid rgba(255, 79, 30, 0.05);
}

.content-card:hover {
    box-shadow: 0 15px 40px rgba(255, 79, 30, 0.15), 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
    border-color: rgba(255, 79, 30, 0.1);
}

/* Special enhanced shadow for chauffeur details card */
.chauffeur-details-card {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15), 
                0 0 20px rgba(255, 79, 30, 0.05),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    overflow: visible;
}

.chauffeur-details-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    border-radius: 16px 16px 0 0;
}

.chauffeur-details-card:hover {
    box-shadow: 0 25px 50px rgba(255, 79, 30, 0.2), 
                0 10px 20px rgba(0, 0, 0, 0.12);
    transform: translateY(-3px);
}

.card-title-modern {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary-light);
    position: relative;
}

.card-title-modern::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--primary-color);
}

/* Booking Card */
.sticky-booking-wrapper {
    position: sticky;
    top: 100px;
}

.booking-card {
    background: white;
    color: var(--text-dark);
    overflow: hidden;
    position: relative;
    border: 2px solid var(--primary-color);
    padding-bottom: 1rem;
}

.booking-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
}

.booking-card-header {
    position: relative;
    z-index: 1;
    margin-bottom: 1.5rem;
}

.booking-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-dark);
}

.booking-subtitle {
    opacity: 0.8;
    margin: 0.5rem 0 0;
    color: var(--text-light);
}

.book-now-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    border: none;
    padding: 1rem;
    font-weight: 600;
    border-radius: 12px;
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.book-now-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 79, 30, 0.3);
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    color: white;
}

/* Contact Card */
.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-light);
    transition: var(--transition);
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-item:hover {
    padding-left: 0.5rem;
}

.contact-item i {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

/* Modal Styles */
.booking-modal .modal-content {
    border: none;
    border-radius: 20px;
    overflow: hidden;
}

.booking-modal .modal-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 1.5rem 2rem;
}

.booking-modal .modal-title {
    font-weight: 600;
}

.booking-modal .btn-close {
    filter: brightness(0) invert(1);
}

/* Quick Actions Buttons */
.quick-actions .btn {
    border-radius: 10px;
    padding: 0.75rem;
    font-weight: 500;
    transition: var(--transition);
    background: white;
}

.quick-actions .btn-outline-secondary {
    border: 2px solid #e9ecef;
    color: var(--text-dark);
    background: white;
}

.quick-actions .btn-outline-secondary:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 79, 30, 0.2);
}

/* Favorite Button States */
.quick-actions .btn-danger {
    background: linear-gradient(135deg, #dc3545, #c82333);
    border: 2px solid #dc3545;
    color: white;
    font-weight: 600;
}

.quick-actions .btn-danger:hover {
    background: linear-gradient(135deg, #c82333, #bd2130);
    border-color: #bd2130;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.quick-actions .btn-danger i {
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.quick-actions .btn-outline-secondary i {
    transition: var(--transition);
}

.quick-actions .btn-outline-secondary:hover i {
    transform: scale(1.1);
}

/* Custom Share Dropdown Menu */
.share-dropdown-menu {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 0;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.15), 0 -2px 10px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.08);
    padding: 0.75rem;
    z-index: 9999;
    animation: slideUpFade 0.3s ease-out;
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.share-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.2s ease;
    font-weight: 500;
}

.share-dropdown-item:hover {
    background: rgba(255, 79, 30, 0.08);
    transform: translateX(5px);
    text-decoration: none;
    color: var(--text-dark);
}

.share-dropdown-item i {
    width: 24px;
    font-size: 1.2rem;
    text-align: center;
}

.share-dropdown-item span {
    flex: 1;
}

.share-dropdown-menu .dropdown-divider {
    height: 1px;
    background: rgba(0, 0, 0, 0.08);
    margin: 0.5rem 0;
    border: none;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.3;
    }
}

/* Improved form styling for booking form */
.partner-booking-form {
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Custom scrollbar */
.partner-content-section::-webkit-scrollbar {
    width: 10px;
}

.partner-content-section::-webkit-scrollbar-track {
    background: var(--bg-light);
}

.partner-content-section::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

.partner-content-section::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Responsive Design */
@media (max-width: 991px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .sticky-booking-wrapper {
        position: relative;
        margin-top: 2rem;
    }
    
    .company-logo-hero-container {
        margin-top: 2rem;
    }
    
    .hero-logo-wrapper {
        padding-bottom: 2rem !important;
        padding-top: 0 !important;
    }
}

@media (max-width: 767px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .quick-stats-bar {
        margin-top: -2rem;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .stat-number {
        font-size: 1.25rem;
    }
    
    .contact-item i {
        width: 35px;
        height: 35px;
        font-size: 0.875rem;
    }
    
    .company-logo-hero-container {
        padding: 1rem;
    }
    
    .company-logo-hero-container .company-logo-hero {
        max-width: 140px;
    }
}

/* Additional hover effects */
.content-card {
    position: relative;
    overflow: hidden;
}

.content-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    transition: left 0.5s ease;
}

.content-card:hover::before {
    left: 100%;
}

/* Enhanced vehicle showcase */
.vehicle-showcase-card {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12), 
                0 5px 15px rgba(0, 0, 0, 0.06);
}

.vehicle-showcase-card:hover {
    box-shadow: 0 20px 45px rgba(255, 79, 30, 0.18), 
                0 8px 20px rgba(0, 0, 0, 0.1);
}

.vehicle-showcase-card .owl-nav button {
    background: var(--primary-color) !important;
    color: white !important;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(255, 79, 30, 0.3);
}

.vehicle-showcase-card .owl-nav button:hover {
    background: var(--primary-dark) !important;
    box-shadow: 0 6px 15px rgba(255, 79, 30, 0.4);
}

/* Vehicle Photos Section Enhancement */
.vehicle-photos-section .owl-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    margin: 0;
}

.vehicle-photos-section .owl-nav button {
    position: absolute;
    background: rgba(255, 79, 30, 0.9) !important;
    color: white !important;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.vehicle-photos-section .owl-nav button.owl-prev {
    left: 10px;
}

.vehicle-photos-section .owl-nav button.owl-next {
    right: 10px;
}

.vehicle-photos-section .owl-nav button:hover {
    background: var(--primary-color) !important;
    transform: scale(1.1);
    box-shadow: 0 5px 12px rgba(255, 79, 30, 0.4);
}

/* Enhanced review cards */
.reviews-card {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1), 
                0 3px 10px rgba(0, 0, 0, 0.05);
}

.reviews-card:hover {
    box-shadow: 0 18px 40px rgba(255, 79, 30, 0.15), 
                0 6px 15px rgba(0, 0, 0, 0.08);
}

.reviews-card .review-item {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
    margin-bottom: 1.5rem;
    transition: var(--transition);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
}

.reviews-card .review-item:hover {
    background: white;
    border-left-width: 6px;
    box-shadow: 0 5px 15px rgba(255, 79, 30, 0.1);
    transform: translateX(5px);
}

/* Star rating colors */
.fa-star {
    color: #ffc107;
}

.fa-star-half-alt {
    color: #ffc107;
}

.fa-star.text-muted {
    color: #dee2e6 !important;
}