/* Restaurant Detail Page - Innovative & Elegant Design */

/* CSS Custom Properties */
:root {
    --primary-color: #fedc00;
    --primary-dark: #fedc00;
    --primary-light: #FFF8E1;
    --secondary-color: #0f1729;
    --accent-color: #10b981;
    --text-primary: #0f1729;
    --text-secondary: #6b7280;
    --text-muted: #9ca3af;
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-tertiary: #f3f4f6;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    --gradient-primary: linear-gradient(135deg, #fedc00 0%, #fedc00 100%);
    --gradient-secondary: linear-gradient(135deg, #0f1729 0%, #111827 100%);
    --gradient-accent: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
}

/* Main Layout */
.lebonresto-detail-layout {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    background: var(--bg-secondary);
    color: var(--text-primary);
    overflow-x: hidden;
}

/* Glass Morphism Effect */
.glass-effect {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: var(--shadow-lg);
}

/* Floating Animation */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.float-animation {
    animation: float 6s ease-in-out infinite;
}

/* Gradient Text */
.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

/* Shimmer Effect */
@keyframes shimmer {
    0% { background-position: -200px 0; }
    100% { background-position: calc(200px + 100%) 0; }
}

.shimmer {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200px 100%;
    animation: shimmer 1.5s infinite;
}

/* Magnetic Hover Effect */
.magnetic-hover {
    transition: transform var(--transition-normal);
}

.magnetic-hover:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--shadow-2xl);
}

/* Property Navigation - Elegant & Modern */
.property-navigation-wrap {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
}

.property-navigation-wrap::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.property-navigation-wrap.scrolled::before {
    opacity: 1;
}

.property-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 0;
    margin: 0;
    list-style: none;
    position: relative;
}

.property-navigation-item {
    margin: 0 0.25rem;
    position: relative;
}

.property-navigation .target {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-full);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    display: block;
}

.property-navigation .target::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    transition: left var(--transition-slow);
    z-index: -1;
    border-radius: var(--radius-full);
}

.property-navigation .target:hover::before {
    left: 0;
}

.property-navigation .target:hover {
    color: var(--bg-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.back-top {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.75rem;
    border-radius: var(--radius-full);
    background: var(--bg-tertiary);
    transition: all var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    position: relative;
    overflow: hidden;
}

.back-top::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--transition-normal);
    border-radius: var(--radius-full);
}

.back-top:hover::before {
    opacity: 1;
}

.back-top:hover {
    color: var(--bg-primary);
    transform: translateY(-3px) scale(1.1);
    box-shadow: var(--shadow-xl);
}

.back-top i {
    position: relative;
    z-index: 1;
    transition: transform var(--transition-normal);
}

.back-top:hover i {
    transform: translateY(-2px);
}

/* Page Title - Elegant Hero Section */
.page-title-wrap {
    background: var(--bg-primary);
    padding: 3rem 0;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.page-title-wrap::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-glass);
    opacity: 0.5;
    z-index: 0;
}

.page-title-wrap > .container {
    position: relative;
    z-index: 1;
}

.page-title h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    line-height: 1.1;
    letter-spacing: -0.025em;
    position: relative;
}

.page-title h1::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    animation: expandWidth 1s ease-out 0.5s both;
}

@keyframes expandWidth {
    from { width: 0; }
    to { width: 60px; }
}

.property-labels-wrap {
    margin: 1.5rem 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.label-status {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1.25rem;
    background: var(--gradient-primary);
    color: var(--bg-primary);
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    text-decoration: none;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.label-status::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left var(--transition-slow);
}

.label-status:hover::before {
    left: 100%;
}

.label-status:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: var(--shadow-xl);
}

.item-address {
    color: var(--text-secondary);
    font-style: normal;
    margin: 1rem 0;
    font-size: 1.125rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.item-address i {
    color: var(--primary-color);
    font-size: 1.25rem;
}

/* Breadcrumb */
.breadcrumb-wrap {
    margin-bottom: 1rem;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 0.875rem;
}

.breadcrumb-item {
    color: #6b7280;
}

.breadcrumb-item a {
    color: #6b7280;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
    color: #fedc00;
}

.breadcrumb-item.active {
    color: #0f1729;
    font-weight: 500;
}

/* Item Tools */
.item-tools {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.item-tool {
    position: relative;
}

.item-tool span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background: #f3f4f6;
    color: #6b7280;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.item-tool span:hover {
    background: #fedc00;
    color: #0f1729;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    padding: 0.5rem 0;
    min-width: 200px;
    z-index: 1000;
    display: none;
}

.dropdown-menu.show {
    display: block;
}

.dropdown-item {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    color: #374151;
    text-decoration: none;
    transition: background 0.3s ease;
}

.dropdown-item:hover {
    background: #f3f4f6;
    color: #0f1729;
}

/* Property Banner */
.property-banner {
    background: #fff;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.nav-pills {
    display: flex;
    background: #f8f9fa;
    padding: 0.5rem;
    margin: 0;
    list-style: none;
}

.nav-item {
    flex: 1;
}

.nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
    color: #6b7280;
    text-decoration: none;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    background: #fedc00;
    color: #0f1729;
}

.tab-content {
    position: relative;
}

.tab-pane {
    display: none;
}

.tab-pane.show,
.tab-pane.active {
    display: block;
}

/* Gallery */
.top-gallery-section {
    position: relative;
}

.listing-slider {
    display: flex;
    overflow: hidden;
}

.listing-slider > div {
    flex: 0 0 100%;
}

.listing-slider img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.listing-slider img:hover {
    transform: scale(1.02);
}

/* Map */
.map-wrap {
    height: 400px;
    background: #f3f4f6;
}

#houzez-single-listing-map {
    width: 100%;
    height: 100%;
}

/* Property Sections - Elegant Cards */
.property-section-wrap {
    background: var(--bg-primary);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-lg);
    margin-bottom: 2rem;
    overflow: hidden;
    position: relative;
    transition: all var(--transition-normal);
    border: 1px solid var(--border-color);
}

.property-section-wrap::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.property-section-wrap:hover::before {
    opacity: 1;
}

.property-section-wrap:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-2xl);
    border-color: var(--primary-color);
}

.block-wrap {
    padding: 2.5rem;
    position: relative;
}

.block-title-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--bg-tertiary);
    position: relative;
}

.block-title-wrap::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
}

.block-title-wrap h2 {
    font-size: 1.75rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    letter-spacing: -0.025em;
}

.block-title-wrap h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    letter-spacing: -0.025em;
}

.small-text {
    font-size: 0.875rem;
    color: var(--text-muted);
    background: var(--bg-tertiary);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.small-text i {
    color: var(--primary-color);
}

/* Details - Elegant List Items */
.list-2-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.list-3-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.list-2-cols li,
.list-3-cols li {
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    border-left: 4px solid var(--primary-color);
    position: relative;
    transition: all var(--transition-normal);
    overflow: hidden;
}

.list-2-cols li::before,
.list-3-cols li::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--transition-normal);
    z-index: 0;
}

.list-2-cols li:hover::before,
.list-3-cols li:hover::before {
    opacity: 0.05;
}

.list-2-cols li:hover,
.list-3-cols li:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-left-color: var(--primary-dark);
}

.list-2-cols strong,
.list-3-cols strong {
    color: var(--text-primary);
    font-weight: 700;
    position: relative;
    z-index: 1;
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.list-2-cols a,
.list-3-cols a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all var(--transition-normal);
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
}

.list-2-cols a::before,
.list-3-cols a::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: var(--radius-full);
    transition: all var(--transition-normal);
}

.list-2-cols a:hover,
.list-3-cols a:hover {
    color: var(--primary-color);
    transform: translateX(4px);
}

.list-2-cols a:hover::before,
.list-3-cols a:hover::before {
    background: var(--primary-dark);
    transform: scale(1.2);
}

/* Video */
.video-wrapper {
    position: relative;
    width: 100%;
    height: 400px;
    border-radius: 0.5rem;
    overflow: hidden;
}

.video-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Prose */
.prose {
    color: #374151;
    line-height: 1.7;
}

.prose p {
    margin-bottom: 1rem;
}

.prose ul {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.prose li {
    margin-bottom: 0.5rem;
}

/* Reviews */
.review-title-wrap {
    margin-bottom: 2rem;
}

.rating-score-wrap {
    flex-grow: 1;
}

.sort-by {
    margin-left: 1rem;
}

.sort-by-title {
    font-size: 0.875rem;
    color: #6b7280;
    margin-right: 0.5rem;
}

.review-list-wrap {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Forms */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #fedc00;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

.form-group-textarea textarea {
    resize: vertical;
    min-height: 120px;
}

/* Buttons - Elegant & Modern */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    font-size: 0.875rem;
    letter-spacing: 0.025em;
    text-transform: uppercase;
    min-height: 48px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left var(--transition-slow);
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--bg-primary);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-2xl);
    filter: brightness(1.1);
}

.btn-secondary {
    background: var(--text-secondary);
    color: var(--bg-primary);
    box-shadow: var(--shadow-md);
}

.btn-secondary:hover {
    background: var(--text-primary);
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-2xl);
}

.btn-success {
    background: var(--gradient-accent);
    color: var(--bg-primary);
    box-shadow: var(--shadow-md);
}

.btn-success:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-2xl);
    filter: brightness(1.1);
}

.btn-slim {
    padding: 0.625rem 1.5rem;
    font-size: 0.8rem;
    min-height: 40px;
}

.btn-full-width {
    width: 100%;
    justify-content: center;
}

.btn-sm-full-width {
    width: 100%;
    padding: 0.875rem;
    justify-content: center;
}

/* Button Loading State */
.btn.loading {
    pointer-events: none;
    opacity: 0.8;
}

.btn.loading .btn-loader {
    display: inline-block;
    margin-right: 0.5rem;
}

/* Button Icon */
.btn i {
    margin-right: 0.5rem;
    transition: transform var(--transition-normal);
}

.btn:hover i {
    transform: scale(1.1);
}

/* Button Ripple Effect */
@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(4);
        opacity: 0;
    }
}

.btn-ripple {
    position: relative;
    overflow: hidden;
}

.btn-ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    animation: ripple 0.6s ease-out;
}

/* Sidebar */
.bt-sidebar-wrap {
    position: sticky;
    top: 2rem;
}

.sidebar-wrap {
    border-radius: 0.5rem;
    overflow: hidden;
}

.property-form-wrap {
    padding: 2rem;
}

/* Contact button hover effects */
.contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.contact-btn:active {
    transform: translateY(0);
}

.agent-details {
    margin-bottom: 0rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.agent-image img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
}

.agent-information {
    margin: 0;
    padding: 0;
    list-style: none;
    margin-left: 1rem;
}

.agent-name {
    font-weight: 600;
    color: #0f1729;
    font-size: 1.125rem;
}

/* Mobile Styles */
.visible-on-mobile {
    display: none;
}

.hidden-on-mobile {
    display: block;
}

.mobile-top-wrap {
    background: #fff;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.mobile-property-tools {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.mobile-property-title {
    text-align: center;
}

.property-title-mobile {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f1729;
    margin: 0.5rem 0;
}

.labels-wrap {
    text-align: right;
    margin-bottom: 0.5rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-dialog {
    background: #fff;
    border-radius: 0.5rem;
    max-width: 90%;
    max-height: 90%;
    overflow: hidden;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #0f1729;
    margin: 0;
}

.close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #6b7280;
    cursor: pointer;
}

.close:hover {
    color: #0f1729;
}

.modal-body {
    padding: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .property-navigation {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .property-navigation-item {
        margin: 0.25rem;
    }
    
    .page-title h1 {
        font-size: 2rem;
    }
    
    .list-2-cols {
        grid-template-columns: 1fr;
    }
    
    .list-3-cols {
        grid-template-columns: 1fr;
    }
    
    .visible-on-mobile {
        display: block;
    }
    
    .hidden-on-mobile {
        display: none;
    }
    
    .block-wrap {
        padding: 1rem;
    }
    
    .bt-sidebar-wrap {
        position: static;
        margin-top: 2rem;
    }
    
    .sort-by {
        margin-left: 0;
        margin-top: 1rem;
    }
    
    .review-title-wrap {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 640px) {
    .page-title h1 {
        font-size: 1.75rem;
    }
    
    .property-navigation {
        justify-content: center;
    }
    
    .item-tools {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-pills {
        flex-direction: column;
    }
    
    .nav-item {
        margin-bottom: 0.25rem;
    }
}

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

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

.property-section-wrap {
    animation: slideIn 0.6s ease-out;
}

/* Loading States */
.btn-loader {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 0.5rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.btn.loading .btn-loader {
    display: inline-block;
}

/* Focus States */
*:focus {
    outline: 2px solid #fedc00;
    outline-offset: 2px;
}

/* No Smooth Scrolling */
html {
    scroll-behavior: auto;
}

/* Fix double scrollbar issue - Remove plugin internal scrollbar */
html.lebonresto-detail-page {
    overflow-x: hidden !important;
    overflow-y: auto !important;
}

body.lebonresto-detail-page {
    overflow-x: hidden !important;
    overflow-y: auto !important;
}

/* Remove internal scrollbar from plugin layout */
.lebonresto-detail-layout {
    overflow: visible !important;
    min-height: auto !important;
    height: auto !important;
}

.lebonresto-detail-layout .container {
    overflow: visible !important;
    height: auto !important;
}

/* Ensure main content area doesn't create scrollbars */
.lebonresto-detail-layout #main-content {
    overflow: visible !important;
    height: auto !important;
}

.lebonresto-detail-layout .bt-content-wrap {
    overflow: visible !important;
    height: auto !important;
}

/* Ensure all content sections flow naturally */
.lebonresto-detail-layout .row {
    overflow: visible !important;
    height: auto !important;
}

/* Map Container Styles */
#restaurant-map {
    width: 100% !important;
    height: 600px !important;
    background: var(--bg-tertiary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

/* Ensure map container is visible when section is active */
.content-section.active #restaurant-map {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Property Banner Styles */
.property-banner {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    margin-bottom: 2rem;
}

.property-banner .nav-pills {
    background: var(--bg-secondary);
    padding: 1rem;
    border-radius: var(--radius-lg);
    margin-bottom: 0;
}

.property-banner .nav-pills .nav-link {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 1rem;
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
}

.property-banner .nav-pills .nav-link:hover,
.property-banner .nav-pills .nav-link.active {
    background: var(--gradient-primary);
    color: var(--bg-primary);
    transform: translateY(-2px);
}

.property-banner .tab-content {
    background: var(--bg-primary);
}

/* Gallery Styles */
.top-gallery-section {
    position: relative;
    height: 500px;
    overflow: hidden;
}

.houzez-photoswipe {
    height: 100%;
    display: flex;
        align-items: center;
    justify-content: center;
    }
    
.houzez-photoswipe img {
        width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-lg);
}

/* Mobile Styles */
.visible-on-mobile {
    display: none;
}

@media (max-width: 768px) {
    .visible-on-mobile {
        display: block;
    }
    
    .hidden-on-mobile {
        display: none !important;
    }
    
    .mobile-property-tools {
        background: var(--bg-secondary);
        padding: 1rem;
        border-radius: var(--radius-lg);
        margin-bottom: 1rem;
    }
    
    .mobile-property-tools .nav-pills {
        justify-content: center;
        gap: 0.5rem;
    }
}

/* Sidebar Styles */
.bt-sidebar-wrap {
    position: sticky;
    top: 2rem;
    z-index: 100;
    height: fit-content;
}

/* Desktop sticky contact form */
@media (min-width: 992px) {
    .bt-sidebar-wrap {
        position: sticky !important;
        top: 2rem !important;
        max-height: calc(100vh - 4rem);
        align-self: flex-start;
        height: fit-content;
    }
    
    .bt-sidebar-wrap.houzez_sticky {
        position: sticky !important;
        top: 2rem !important;
    }
    
    .property-form-wrap {
        position: relative;
        top: auto;
        background: var(--bg-primary);
        border-radius: var(--radius-xl);
        box-shadow: var(--shadow-lg);
        padding: 0rem;
    }
    
    /* Ensure the parent container allows sticky positioning */
    .row {
        align-items: flex-start;
    }
    
    /* Additional sticky behavior for larger screens */
    @media (min-width: 1200px) {
        .bt-sidebar-wrap {
            top: 1rem;
        }
    }
}

/* Mobile - disable sticky on small screens */
@media (max-width: 991px) {
    .bt-sidebar-wrap {
        position: static !important;
        top: auto !important;
        max-height: none !important;
        overflow-y: visible !important;
    }
    
    .property-form-wrap {
        position: relative !important;
        top: auto !important;
    }
}

.property-form-wrap {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.property-form {
    padding: 2rem;
}

.agent-details {
    margin-bottom: 0rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.agent-image img {
    width: 70px;
    height: 70px;
    object-fit: cover;
}

.agent-name {
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: border-color var(--transition-normal);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(53, 170, 225, 0.1);
}

.btn-full-width {
    width: 100%;
    padding: 1rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 1rem;
    transition: all var(--transition-normal);
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--bg-primary);
    border: none;
}

.btn-success {
    background: var(--gradient-accent);
    color: var(--bg-primary);
    border: none;
}

.btn-full-width:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Content Wrapper */
.bt-content-wrap {
    padding-right: 2rem;
}

@media (max-width: 768px) {
    .bt-content-wrap {
        padding-right: 0;
    }
}

/* Section Switcher Styles */
.section-switcher {
    position: absolute;
    top: 20px;
    right: 50px;
    z-index: 1000;
}

.switcher-icons {
    display: inline-flex;
    padding: 0.5rem;
    border-radius: var(--radius-full);
    gap: 0.5rem;
}

.section-btn {
    padding: 1rem;
    border: none;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
}

.section-btn.active {
    background: var(--gradient-primary);
    color: var(--bg-primary);
}

.section-btn:hover {
    background: var(--gradient-primary);
    color: var(--bg-primary);
    transform: scale(1.1);
}

.section-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Property Banner Container */
.property-banner {
    position: relative;
}

@media (max-width: 768px) {
    .section-switcher {
        top: 10px;
        right: 10px;
    }
    
    .section-btn {
        padding: 0.75rem;
    }
    
    .section-btn svg {
        width: 16px;
        height: 16px;
    }
}

/* Content Sections */
.content-sections {
    position: relative;
}

.content-section {
    width: 100%;
    height: 600px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

/* Image Slider Styles */
.image-slider {
    width: 100%;
    height: 100%;
    position: relative;
}

.slider-container {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-controls {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all var(--transition-normal);
}

.slider-dot.active {
    background: var(--primary-color);
}

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        transform: translateY(0);
    }
    40%, 43% {
        transform: translateY(-10px);
    }
    70% {
        transform: translateY(-5px);
    }
    90% {
        transform: translateY(-2px);
    }
}

/* Intersection Observer Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

.animate-on-scroll.slide-in-left {
    transform: translateX(-30px);
}

.animate-on-scroll.slide-in-left.animated {
    transform: translateX(0);
}

.animate-on-scroll.slide-in-right {
    transform: translateX(30px);
}

.animate-on-scroll.slide-in-right.animated {
    transform: translateX(0);
}

/* Staggered Animation Delays */
.animate-on-scroll:nth-child(1) { transition-delay: 0.1s; }
.animate-on-scroll:nth-child(2) { transition-delay: 0.2s; }
.animate-on-scroll:nth-child(3) { transition-delay: 0.3s; }
.animate-on-scroll:nth-child(4) { transition-delay: 0.4s; }
.animate-on-scroll:nth-child(5) { transition-delay: 0.5s; }

/* Elegant Hover Effects */
.hover-lift {
    transition: all var(--transition-normal);
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-2xl);
}

.hover-glow {
    transition: all var(--transition-normal);
}

.hover-glow:hover {
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.3);
}

.hover-scale {
    transition: all var(--transition-normal);
}

.hover-scale:hover {
    transform: scale(1.05);
}

/* Glass Morphism Cards */
.glass-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-lg);
}

/* Gradient Borders */
.gradient-border {
    position: relative;
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
}

.gradient-border::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    border-radius: var(--radius-xl);
    padding: 2px;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    transition: background var(--transition-normal);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gradient-secondary);
}

/* Selection Styling */
::selection {
    background: var(--primary-light);
    color: var(--text-primary);
}

::-moz-selection {
    background: var(--primary-light);
    color: var(--text-primary);
}

/* Focus Ring */
.focus-ring:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.3);
}

/* Loading Skeleton */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200px 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-md);
}

/* Parallax Effect */
.parallax {
    transform: translateZ(0);
    will-change: transform;
}

/* Text Effects */
.text-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.text-glow {
    text-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}

/* Image Effects */
.image-hover-zoom {
    overflow: hidden;
    border-radius: var(--radius-lg);
}

.image-hover-zoom img {
    transition: transform var(--transition-slow);
}

.image-hover-zoom:hover img {
    transform: scale(1.1);
}

/* Card Hover Effects */
.card-hover {
    transition: all var(--transition-normal);
    cursor: pointer;
}

.card-hover:hover {
    transform: translateY(-5px) rotate(1deg);
    box-shadow: var(--shadow-2xl);
}

/* Neon Effect */
.neon-glow {
    box-shadow: 0 0 5px var(--primary-color),
                0 0 10px var(--primary-color),
                0 0 15px var(--primary-color),
                0 0 20px var(--primary-color);
    animation: neon-pulse 2s ease-in-out infinite alternate;
}

@keyframes neon-pulse {
    from {
        box-shadow: 0 0 5px var(--primary-color),
                    0 0 10px var(--primary-color),
                    0 0 15px var(--primary-color),
                    0 0 20px var(--primary-color);
    }
    to {
        box-shadow: 0 0 2px var(--primary-color),
                    0 0 5px var(--primary-color),
                    0 0 8px var(--primary-color),
                    0 0 12px var(--primary-color);
    }
}

/* Menus Grid Styles */
.menus-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.menu-item1 {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    background: var(--bg-primary);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    text-align: center;
}

.menu-item1:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.menu-item1 h3 {
    margin: 0 0 1rem 0;
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 600;
}

.menu-item1 a {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    background: var(--gradient-primary);
    color: var(--bg-primary);
    text-decoration: none;
    border-radius: var(--radius-full);
    font-weight: 600;
    transition: var(--transition);
}

.menu-item1 a:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

@media (max-width: 768px) {
    .menus-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .menu-item1 {
        padding: 1rem;
    }
    
    .menu-item1 h3 {
        font-size: 1.1rem;
    }
}

/* Menu Links in Details Section */
.menu-link1 {
    display: inline-block;
    margin-right: 0.5rem;
    margin-bottom: 0.25rem;
    padding: 0.25rem 0.75rem;
    background: var(--gradient-primary);
    color: var(--bg-primary);
    text-decoration: none;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition);
}

.menu-link1:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

/* Menu Title Hover Effect */
.menu-title:hover {
    color: var(--primary-color);
    transform: scale(1.02);
}

/* Menu Popup Styles */
.menu-popup {
    transition: opacity 0.3s ease;
}

.menu-popup-content {
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.menu-popup-header button:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.menu-popup-actions a:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

.menu-popup-actions button:hover {
    background: var(--text-primary);
    color: var(--bg-primary);
    border-color: var(--text-primary);
}

@media (max-width: 768px) {
    .menu-popup-content {
        max-width: 95vw;
        max-height: 95vh;
        padding: 1.5rem;
    }
    
    .menu-popup-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .menu-popup-actions a,
    .menu-popup-actions button {
        width: 100%;
        justify-content: center;
    }
}