/**
 * Modern Single Property Styles
 * Matching the provided screenshot design
 */

:root {
    --primary-color: #BCD62C;
    --primary-hover: #a8c226;
    --secondary-color: #13adb7;
    --secondary-hover: #0f9aa3;
}

/* Reset and base styles for single property page */
.daft-property-single.modern-design {
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box;
    width: 100% !important;
    max-width: none !important;
    clear: both;
}

.daft-property-single.modern-design *,
.daft-property-single.modern-design *::before,
.daft-property-single.modern-design *::after {
    box-sizing: inherit;
}

/* Hero Section */
.daft-property-single .property-hero {
    position: relative !important;
    height: 300px !important;
    max-height: 300px !important;
    overflow: hidden !important;
    width: 100% !important;
    margin: 0 !important;
}

.hero-image {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.8) 100%);
    display: flex;
    align-items: flex-end;
    padding-bottom: 60px;
}

.hero-content {
    color: white;
}

.breadcrumbs {
    margin-bottom: 16px;
    font-size: 0.9rem;
    opacity: 0.9;
}

.breadcrumbs a {
    color: white;
    text-decoration: none;
}

.breadcrumbs span {
    margin: 0 8px;
    opacity: 0.7;
}

.title-container {
    background: none !important;
    padding: 0 !important;
    max-width: 100% !important;
}

.property-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0 0 12px 0;
    line-height: 1.3;
    color: white;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.property-location {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Container */
.daft-property-single .container {
    max-width: 1380px;
    margin: 0 auto !important;
    padding: 0 20px !important;
    width: 100% !important;
}

/* Main Content Layout */
.property-main-content {
    padding: 40px 0 !important;
    background: #f8f9fa !important;
    width: 100% !important;
    clear: both;
}

.daft-property-single .content-layout {
    display: grid !important;
    grid-template-columns: 2fr 1fr !important;
    gap: 40px !important;
    align-items: start !important;
    width: 100% !important;
    max-width: none !important;
}

@media (max-width: 1024px) {
    .daft-property-single .content-layout {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .gallery-thumbs-container {
        display: none
    }
}

.daft-property-single .property-content {
    background: white !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
    width: 100% !important;
    min-height: 500px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
}

/* Property Gallery */
.property-gallery {
    padding: 30px 30px 120px;
    max-width: 100%;
    position: relative;
    width: 100%;
    overflow: hidden;
    border-bottom: 1px solid #e9ecef;
}

.property-gallery h2 {
    margin: 0 0 24px 0;
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
}

.property-gallery .gallery-thumbs {
    position: absolute;
    bottom: -45;
}

.gallery-container {
    width: 100%;
}

.lightbox-gallery {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.main-image-container {
    position: relative;
    width: 100%;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
}

.main-gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
}

.gallery-prev,
.gallery-next {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-prev:hover,
.gallery-next:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

.gallery-thumbs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 8px 0;
    position: relative;
}

.gallery-thumbs .thumb {
    width: 80px;
    height: 120px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}


/* Gallery Navigation Arrows */
.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    z-index: 10;
    user-select: none;
    opacity: 0.8;
}

.gallery-nav:hover {
    background: rgba(0, 0, 0, 0.9);
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

.gallery-nav.prev,
#gallery-prev {
    left: 15px;
}

.gallery-nav.next,
#gallery-next {
    right: 15px;
}

/* Show navigation buttons on hover or when gallery is active */
.modern-gallery:hover .gallery-nav,
.modern-gallery.active .gallery-nav {
    opacity: 0.8;
}

.modern-gallery:hover .gallery-nav:hover,
.modern-gallery.active .gallery-nav:hover {
    opacity: 1;
}

/* Gallery Main Container */
.gallery-main-container {
    position: relative;
    width: 100%;
    margin-bottom: 16px;
}

.gallery-main {
    position: relative;
    width: 100%;
    height: 550px;
    border-radius: 12px;
    overflow: hidden;
    background: #f8f9fa;
}

.gallery-main .main-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

/* Image Counter */
.image-counter {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    z-index: 10;
}

/* Property Overview */
.property-overview {
    padding: 30px;
}

.property-overview h2 {
    margin: 0 0 24px 0;
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
}

.overview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.overview-item {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.overview-item .label {
    display: block;
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 8px;
}

.overview-item .value {
    display: block;
    font-size: 1.4rem;
    font-weight: 700;
    color: #2c3e50;
}

.property-description {
    line-height: 1.6;
    color: #495057;
}

/* Features Section */
.property-features {
    padding: 30px;
    border-top: 1px solid #e9ecef;
}

.property-features h2 {
    margin: 0 0 24px 0;
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 6px;
    font-size: 0.9rem;
    color: #495057;
}

.feature-item svg {
    color: var(--secondary-color);
    flex-shrink: 0;
}

/* Location Map */
.property-location-map {
    padding: 30px;
    border-top: 1px solid #e9ecef;
}

.property-location-map h2 {
    margin: 0 0 24px 0;
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
}

.map-container {
    height: 300px;
    background: #e9ecef;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
}



/* Sidebar */
.daft-property-single .property-sidebar {
    display: flex !important;
    flex-direction: column !important;
    gap: 24px !important;
    width: 100% !important;
}

/* Price & Key Details Card */
.price-details-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.price-display {
    text-align: center;
    margin-bottom: 24px;
    padding: 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 8px;
    color: white;
}

.price-display .price {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: #2c3e50;
}

.price-display .price-label {
    font-size: 1rem;
    opacity: 0.9;
    color: #2c3e50;
}

.property-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 20px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    font-size: 0.95rem;
    color: #333;
}

.detail-item .label {
    font-weight: 600;
    color: #666;
}

.detail-item .value {
    font-weight: 700;
    color: #333;
    text-align: right;
}

/* Special styling for BER rating */
.detail-item .value.ber-a1,
.detail-item .value.ber-a2,
.detail-item .value.ber-a3 {
    color: #28a745;
    font-weight: 700;
}

.detail-item .value.ber-b1,
.detail-item .value.ber-b2,
.detail-item .value.ber-b3 {
    color: #17a2b8;
    font-weight: 700;
}

.detail-item .value.ber-c1,
.detail-item .value.ber-c2,
.detail-item .value.ber-c3 {
    color: #ffc107;
    font-weight: 700;
}

.detail-item .value.ber-d1,
.detail-item .value.ber-d2 {
    color: #fd7e14;
    font-weight: 700;
}

.detail-item .value.ber-e1,
.detail-item .value.ber-e2 {
    color: #dc3545;
    font-weight: 700;
}

.detail-item .value.ber-f,
.detail-item .value.ber-g {
    color: #6f42c1;
    font-weight: 700;
}

/* Taxes & Fees Card */
.taxes-fees-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.taxes-fees-card h3 {
    margin: 0 0 20px 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: #2c3e50;
}

.taxes-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tax-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 6px;
}

.tax-label {
    font-weight: 500;
    color: #495057;
}

.tax-value {
    font-weight: 700;
    color: var(--secondary-color);
}

.no-taxes {
    text-align: center;
    color: #6c757d;
    font-style: italic;
    padding: 20px;
}

/* Agent Card */
.agent-card {
    background: white !important;
    border-radius: 12px !important;
    padding: 24px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.agent-info {
    display: flex !important;
    gap: 16px !important;
    margin-bottom: 20px !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.agent-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

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

.agent-details {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.agent-details h3 {
    margin: 0 0 8px 0 !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    color: #2c3e50 !important;
    display: block !important;
    visibility: visible !important;
}

.agent-details p {
    margin: 0 0 6px 0 !important;
    color: #6c757d !important;
    font-size: 0.9rem !important;
    display: block !important;
    visibility: visible !important;
}

.agent-phone,
.agent-email {
    font-size: 0.85rem !important;
    color: #495057 !important;
    margin: 4px 0 !important;
}

/* Email link styling */
.agent-email .email-link,
.agent-email-cc .email-link {
    color: var(--secondary-color);
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.agent-email .email-link:hover,
.agent-email-cc .email-link:hover {
    color: var(--secondary-hover);
    border-bottom-color: var(--secondary-color);
    text-decoration: none;
}

.agent-email .email-link:focus,
.agent-email-cc .email-link:focus {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
    border-radius: 2px;
}

/* Contact icon styling for email links */
.agent-email .contact-icon,
.agent-email-cc .contact-icon {
    transition: all 0.3s ease;
    margin-right: 6px;
}

.agent-email:hover .contact-icon,
.agent-email-cc:hover .contact-icon {
    color: var(--secondary-color);
    transform: scale(1.1);
}

/* Email link container styling */
.agent-email,
.agent-email-cc {
    display: flex;
    align-items: center;
    gap: 6px;
}

.agent-email-cc {
    opacity: 0.8;
}

.agent-email-cc:hover {
    opacity: 1;
}

.price-display {
    text-align: center;
    margin-bottom: 20px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
}

.price-display .price {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.price-display .price-label {
    font-size: 0.9rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 0.9rem;
}

.contact-btn.primary {
    background: var(--primary-color);
    color: white;
}

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

.contact-btn.secondary {
    background: white;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.contact-btn.secondary:hover {
    background: var(--secondary-color);
    color: white;
    transform: translateY(-1px);
}

/* Location Map */
.property-location-map {
    padding: 30px;
    border-top: 1px solid #e9ecef;
}

.property-location-map h2 {
    margin: 0 0 24px 0;
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
}

.map-container {
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Property Details Section */
.property-details-full {
    padding: 30px;
    border-top: 1px solid #e9ecef;
    background: white;
    margin-bottom: 0;
    width: 100%;
    border-radius: 0;
}

.property-details-full h3 {
    margin: 0 0 24px 0;
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
}

/* Custom Fields Section */
.custom-fields-section {
    margin-bottom: 30px;
}

.custom-fields-section h3 {
    margin: 0 0 20px 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    position: relative;
    padding-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}



.custom-fields-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* Property Tags Container - Two Column Layout */
.property-tags-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 15px;
}

.property-tag {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-height: 45px;
}

.property-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.property-tag:hover {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    transform: translateY(-2px);
    border-color: var(--primary-color);
}

.property-tag:hover::before {
    width: 8px;
}

.property-tag .tag-label {
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.85rem;
    flex-shrink: 0;
    margin-right: 8px;
    max-width: 40%
}

.property-tag .tag-value {
    color: #495057;
    font-size: 0.85rem;
    font-weight: 500;
    text-align: right;
    word-break: break-word;
}

/* Special styling for specific property tags */
.property-tag:nth-child(odd) {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.property-tag:nth-child(even) {
    background: linear-gradient(135deg, #ffffff 0%, #f1f3f4 100%);
}

.property-tag:nth-child(odd):hover {
    background: linear-gradient(135deg, #e9ecef 0%, #f8f9fa 100%);
}

.property-tag:nth-child(even):hover {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

/* URL Tag Special Styling */
.property-tag.url-tag {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #0f9aa3 100%);
    border-color: var(--secondary-color);
    color: white;
}

.property-tag.url-tag .tag-label {
    color: white;
}

.property-tag.url-tag .tag-link {
    color: white;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.property-tag.url-tag .tag-link:hover {
    color: #f0f0f0;
    transform: translateX(2px);
}

.property-tag.url-tag .tag-link svg {
    transition: transform 0.3s ease;
}

.property-tag.url-tag:hover .tag-link svg {
    transform: scale(1.1);
}

/* Google Map Section - Full Width */
.property-map-section.full-width {
    background: white;
    margin: 30px 0 0;
    padding: 0;
    box-shadow: none;
    border: none;
    border-radius: 0;
    width: 100%;
}

.property-map-section.full-width .container {
    max-width: 1380px;
    margin: 0 auto;
    padding: 40px 20px 20px;
}

.property-map-section.full-width h2 {
    color: #2c3e50;
    font-size: 2rem;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.property-map-section.full-width h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.property-map.full-width-map {
    width: 100vw;
    height: 500px;
    margin-left: calc(-50vw + 50%);
    border-radius: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: none;
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
}

.property-map-section.full-width .map-address-info {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 25px;
    border-radius: 15px;
    border-left: 5px solid var(--primary-color);
    margin-bottom: 20px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.property-map-section.full-width .map-address {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
}

.property-map-section.full-width .map-address svg {
    color: var(--secondary-color);
    flex-shrink: 0;
}

.property-map-section.full-width .map-area-info {
    display: flex;
    gap: 15px;
    align-items: center;
    font-size: 1rem;
    color: #6c757d;
    justify-content: center;
}

.property-map-section.full-width .map-area-info .area,
.property-map-section.full-width .map-area-info .county {
    background: white;
    padding: 8px 16px;
    border-radius: 25px;
    font-weight: 600;
    border: 2px solid;
    transition: all 0.3s ease;
}

.property-map-section.full-width .map-area-info .area {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.property-map-section.full-width .map-area-info .area:hover {
    background: var(--primary-color);
    color: white;
}

.property-map-section.full-width .map-area-info .county {
    color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.property-map-section.full-width .map-area-info .county:hover {
    background: var(--secondary-color);
    color: white;
}

/* Admin Info Card */
.admin-info-card {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 2px solid #f39c12;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.2);
}

.admin-info-card h3 {
    color: #d68910;
    font-size: 1.1rem;
    margin-bottom: 15px;
    font-weight: 700;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.admin-info-card h3::before {
    content: "🔒";
    font-size: 1rem;
}

.admin-info-tags {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.admin-tag {
    background: white;
    border: 1px solid #f39c12;
    border-radius: 20px;
    padding: 8px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    transition: all 0.3s ease;
    font-size: 0.85rem;
}

.admin-tag:hover {
    background: #fef9e7;
    transform: translateX(2px);
}

.admin-tag .admin-tag-label {
    font-weight: 600;
    color: #d68910;
    white-space: nowrap;
}

.admin-tag .admin-tag-value {
    color: #8d6e63;
    font-weight: 500;
    word-break: break-all;
}

.admin-tag.url-tag {
    background: linear-gradient(135deg, #e8f5e8 0%, #c8e6c9 100%);
    border-color: #4caf50;
}

.admin-tag.url-tag .admin-tag-label {
    color: #2e7d32;
}

.admin-tag.url-tag .admin-tag-link {
    color: #2e7d32;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.3s ease;
}

.admin-tag.url-tag .admin-tag-link:hover {
    color: #1b5e20;
    transform: translateX(2px);
}

/* Location Section */
.property-location-section {
    background: white;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #f0f0f0;
}

.property-location-section h2,
.property-location-section h3 {
    color: #2c3e50;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    border-left: 5px solid var(--primary-color);
}



.location-address-text {
    margin-bottom: 25px;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    border-left: 4px solid var(--secondary-color);
}

.location-address-text p {
    margin: 8px 0;
    color: #495057;
    font-size: 1rem;
    line-height: 1.5;
}

.location-address-text strong {
    color: #2c3e50;
    font-weight: 600;
}

.location-map-container {
    margin-top: 20px;
}

.location-map-container {
    margin-top: 20px;
}

.property-location-section .property-map,
#property-map {
    width: 100%;
    height: 400px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
    background: #f8f9fa;
    margin: 0 auto
}

/* Property Contact Form */
.property-contact {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.property-contact h3 {
    margin: 0 0 20px 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: #2c3e50;
}

.contact-form-shortcode {
    /* Styles for shortcode container */
}

.contact-form-shortcode .wpcf7-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-form-shortcode input[type="text"],
.contact-form-shortcode input[type="email"],
.contact-form-shortcode input[type="tel"],
.contact-form-shortcode textarea {
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: border-color 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.contact-form-shortcode input:focus,
.contact-form-shortcode textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.contact-form-shortcode input[type="submit"],
.contact-form-shortcode button[type="submit"] {
    padding: 12px 20px;
    background: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact-form-shortcode input[type="submit"]:hover,
.contact-form-shortcode button[type="submit"]:hover {
    background: var(--secondary-hover);
    transform: translateY(-1px);
}

.no-form-message {
    padding: 20px;
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    text-align: center;
    color: #6c757d;
    margin-bottom: 16px;
}

.no-form-message+p {
    text-align: center;
}

.no-form-message+p a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
}

.no-form-message+p a:hover {
    text-decoration: underline;
}

/* Tablet responsive design */
@media (max-width: 1024px) and (min-width: 769px) {
    .property-tags-container {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
}

/* Related Properties Section - Using exact shortcode styling */
.related-properties {
    background: #f8f9fa;
    padding: 60px 0;
}

.related-properties-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #2c3e50;
    text-align: center;
    margin-bottom: 40px;
}

/* Use exact same grid as shortcode - 3 columns */
.related-properties .properties-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Use exact same card styling as shortcode */
.related-properties .daft-property-card {
    background: #eee;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    border: none;
    position: relative;
}

.related-properties .daft-property-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* Property Image Styling - exact shortcode match */
.related-properties .property-image {
    position: relative;
    overflow: hidden;
    height: 280px;
    border-radius: 20px 20px 0 0;
}

.related-properties .property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.related-properties .daft-property-card:hover .property-image img {
    transform: scale(1.08);
}

.related-properties .no-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 0.9rem;
}

/* Property Details Section - exact shortcode match */
.related-properties .property-content {
    padding: 24px;
}

.related-properties .property-title {
    margin: 0 0 8px 0;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
    color: #2c3e50;
}

.related-properties .property-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.related-properties .daft-property-card:hover .property-title a {
    color: var(--secondary-color);
}

/* Property Meta Row with Icons - exact shortcode match */
.related-properties .property-meta-row {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.related-properties .meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: #7f8c8d;
    padding: 8px 12px;
    border-radius: 0;
    margin: 0;
    border-right: 2px solid #dee2e6;
}

.related-properties .meta-item:last-child {
    border-right: 0;
}

.related-properties .meta-item svg {
    color: var(--secondary-color);
    flex-shrink: 0;
}

.related-properties .meta-item span {
    font-weight: 500;
}

/* Property Footer - exact shortcode match */
.related-properties .property-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    border-radius: 20px;
    padding-left: 15px;
    margin-top: auto;
}

.related-properties .property-price {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
}

.related-properties .property-price small {
    font-size: 0.8rem;
}

/* Details Button - exact shortcode match */
.related-properties .details-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--secondary-color);
    color: white;
    text-decoration: none;
    border-radius: 0 20px 20px 0;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.related-properties .details-button:hover {
    background: var(--secondary-hover);
    transform: translateX(4px);
}

.related-properties .details-button svg {
    transition: transform 0.3s ease;
}

.related-properties .details-button:hover svg {
    transform: translateX(2px);
}

.no-related-properties {
    text-align: center;
    color: #6c757d;
    font-style: italic;
    padding: 40px 0;
}

/* Mobile responsive design */
@media (max-width: 768px) {

    /* Property tags responsive - single column on mobile */
    .property-tags-container {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .property-tag {
        padding: 10px 12px;
        min-height: 40px;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 2px;
    }

    .property-tag .tag-label {
        font-size: 0.8rem;
        margin-right: 0;
        margin-bottom: 1px;
    }

    .property-tag .tag-value {
        font-size: 0.8rem;
        text-align: left;
        font-weight: 600;
        color: #2c3e50;
    }

    /* Map responsive */
    .property-map-section.full-width .container {
        padding: 25px 15px 15px;
    }

    .property-map.full-width-map {
        height: 350px;
    }

    .property-map-section.full-width .map-address-info {
        padding: 20px;
        margin: 0 15px 15px;
    }

    .property-map-section.full-width .map-area-info {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    /* Admin sidebar responsive */
    .admin-info-card {
        padding: 15px;
        margin-bottom: 20px;
    }

    .admin-tag {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        padding: 10px 12px;
    }

    .admin-tag .admin-tag-value {
        font-size: 0.8rem;
    }

    /* Location section responsive */
    .property-location-section {
        padding: 20px;
    }

    .location-address-text {
        padding: 15px;
    }

    .property-location-section .property-map {
        height: 300px;
    }

    .property-hero {
        height: 250px !important;
    }

    .property-title {
        font-size: 1.8rem;
        line-height: 1.4;
    }

    .title-container {
        padding: 0 !important;
        max-width: 100% !important;
        background: none !important;
    }

    .hero-overlay {
        padding-bottom: 40px;
    }

    .property-details-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .content-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .gallery-main {
        height: 250px;
    }

    .gallery-nav {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }

    .gallery-nav.prev,
    #gallery-prev {
        left: 10px;
    }

    .gallery-nav.next,
    #gallery-next {
        right: 10px;
    }

    .image-counter {
        bottom: 10px;
        right: 10px;
        padding: 4px 8px;
        font-size: 0.8rem;
    }

    .gallery-thumbs {
        gap: 6px;
    }

    .gallery-thumbs .thumb {
        width: 60px;
        height: 45px;
    }

    .overview-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .price-display .price {
        font-size: 2.0rem;
    }

    .gallery-controls {
        padding: 0 10px;
    }

    .gallery-prev,
    .gallery-next {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    /* Email link mobile styles */
    .agent-email .email-link,
    .agent-email-cc .email-link {
        font-size: 0.8rem;
        word-break: break-all;
    }

    .agent-email .contact-icon,
    .agent-email-cc .contact-icon {
        width: 12px;
        height: 12px;
        flex-shrink: 0;
    }

    /* Related Properties Mobile Styles */
    .related-properties {
        padding: 40px 0;
        margin-top: 30px;
    }

    .related-properties-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }

    .related-properties .properties-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 20px;
    }

    .related-properties .daft-property-card {
        border-radius: 12px;
    }

    .related-properties .property-image {
        height: 180px;
    }

    .related-properties .property-details {
        padding: 15px;
    }

    .related-properties .property-title {
        font-size: 1rem;
    }

    .related-properties .property-price {
        font-size: 1.1rem;
    }

    .related-properties .property-meta-row {
        gap: 10px;
        flex-direction: column;
        align-items: flex-start;
    }

    .related-properties .meta-item {
        font-size: 0.8rem;
        border-right: none;
        border-bottom: 1px solid #dee2e6;
        padding: 6px 0;
    }

    .related-properties .meta-item:last-child {
        border-bottom: none;
    }

    .related-properties .details-button {
        padding: 10px 16px;
        font-size: 0.8rem;
    }
}

/* Location badges */
.area-badge,
.city-badge,
.general-area-badge,
.county-badge {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(188, 214, 44, 0.1);
    color: #13adb7;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-right: 8px;
    margin-bottom: 4px;
}

/* Coordinates display */
.coordinates-info {
    margin-top: 10px;
}

.coordinates-text {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #6c757d;
    font-size: 12px;
}

.coordinates-text svg {
    opacity: 0.7;
}


@media (max-width: 1024px) {
    .property-gallery {
        padding-bottom: 30px !important;
    }

}