/* Font Imports */
@font-face {
    font-family: 'IRANSansWeb';
    src: url('../fonts/IRANSansWeb.eot');
    src: url('../fonts/IRANSansWeb.eot?#iefix') format('embedded-opentype'),
         url('../fonts/IRANSansWeb.woff') format('woff'),
         url('../fonts/IRANSansWeb.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

* {
    box-sizing: border-box;
    font-family: 'IRANSansWeb';
    text-decoration: none !important; 
}


/* Basic link style */
a {
    text-decoration: none !important;
    color: #4c6ef5;
    transition: color 0.2s cubic-bezier(.4,0,.2,1), background 0.2s cubic-bezier(.4,0,.2,1);
    position: relative;
}

/* Animated underline and background on hover */
a:hover:not(.btn-view-all):not(.button):not(button) {
    color: #2541b2;
    
    font-weight: 600;
}

a:not(.btn-view-all):not(.button):not(button)::after {
    content: '';
    display: block;
    position: absolute;
    left: 0; right: 0; bottom: -2px;
    height: 2px;
    background: linear-gradient(90deg, #4c6ef5 0%, #2541b2 100%);
    transform: scaleX(0);
    transition: transform 0.2s cubic-bezier(.4,0,.2,1);
    border-radius: 2px;
}

a:hover:not(.btn-view-all):not(.button):not(button)::after {
    transform: scaleX(1);
}

h1 {
    font-family: 'IRANSansWeb', sans-serif;
    font-size: 2em; /* Slightly larger for emphasis */
    color: #2c3e50; /* Darker, modern color */
    margin-bottom: 25px; /* Increased spacing for better separation */
    text-align: center;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2); /* Subtle text shadow for depth */
    transition: color 0.3s ease, transform 0.3s ease; /* Smooth hover transitions */
}

h1:hover {
    color: #0a0a0a; /* Matches submit-btn green for consistency */
    transform: translateY(-2px); /* Slight lift effect on hover */
}


/* Navigation */
.user-nav {
    display: flex;
    padding: 20px;
    margin: 20px;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06), 0 1.5px 7px rgba(0,0,0,0.03);
    border-radius: 14px;
    transition: box-shadow 0.2s;
}

.user-nav-logo-title {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 0;
    justify-content: flex-start; /* Align left when buttons exist 🌟 */
    width: auto; /* Allow natural width when buttons are present 📏 */
}

/* Hide user-nav-buttons when not logged in 🚫 */
.user-nav-buttons {
    display: none; /* Hidden by default 🚪 */
}

/* Show user-nav-buttons when logged in ✅ */
.user-nav-buttons.logged-in {
    display: flex;
    align-items: center;
}

/* Center user-nav-logo-title when only child (no buttons) 🎯 */
.user-nav > .user-nav-logo-title:only-child {
    justify-content: center; /* Center when no buttons 🚀 */
    width: 100%; /* Full width for centering 📏 */
}

.user-nav-logo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    border: 2px solid #eee;
}

.user-nav-text {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: start;
}

.user-nav-title {
    font-size: 2rem;
    font-weight: bold;
    color: #2d3748;
    letter-spacing: 1px;
    font-family: inherit;
}

.user-nav-subtitle {
    font-size:12px;
    color:#888;
    margin-top:2px
}

.user-nav-buttons {
    display: flex;
    align-items: center;
}

.user-nav p {
    font-size: 1.2rem;
    color: #2d3748;
    margin-bottom: 0;
}

.user-nav a {
    color: #4c6ef5;
    text-decoration: none;
    margin: 0 0.75rem;
    padding: 0.25rem 0;
    transition: all 0.2s ease;
    position: relative;
}

.user-nav a:hover {
    color: #3b5bdb;
}

.user-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #3b5bdb;
    transition: width 0.3s ease;
}

.user-nav a:hover::after {
    width: 100%;
}

/* Property Detail Page Styles */
.property-detail {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 40px;
}

.property-images {
    margin-bottom: 20px;
}

.property-images img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    box-shadow: 0 0 5px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.property-images img:hover {
    opacity: 0.9;
}

.property-map {
    margin-top: 20px;
}

.property-map p {
    text-align: center;
    color: #555;
}

.property-content {
    display: flex;
    flex-direction: column;
    gap: 25px;
    width: 100%;
    max-width: 100%;
}

.property-info {
    background: #ffffff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid #e8ecef;
    font-family: 'IRANSansWeb';
}

.property-info h2 {
    font-family: 'IRANSansWeb';
    font-weight: bold;
    font-size: 24px;
    color: #1a1a1a;
    margin-bottom: 20px;
    border-bottom: 2px solid #4CAF50;
    padding-bottom: 10px;
    white-space: nowrap;
}

.property-info p {
    font-family: 'IRANSansWeb';
    font-size: 16px;
    color: #333;
    line-height: 1.8;
    margin: 10px 0;
    text-align: justify;
}

.property-info p:not(.property-meta p) {
    /* Description text: allow wrapping */
    white-space: normal;
}

.property-info p strong {
    font-weight: bold;
    color: #1a1a1a;
}

.property-info p .days-ago {
    font-size: 14px;
    color: #666;
    margin-right: 5px;
    white-space: nowrap;
}

.property-info a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.property-info a:hover {
    color: #0056b3;
    text-decoration: underline;
}

.property-meta {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin: 25px 0;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 6px;
    font-family: 'IRANSansWeb';
}

.property-meta p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 10px;
    background: #ffffff;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    white-space: nowrap;
    font-size: 16px;
    color: #333;
    line-height: 1.8;
    text-align: justify;
}

.property-meta p strong {
    min-width: 100px;
    color: #1a1a1a;
    font-weight: bold;
}

.property-features .features-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    background: #f5f5f5;
    border-radius: 3px;
}

.property-features .features-table tr {
    border: none;
}

.property-features .features-table td {
    padding: 5px 8px 12px 3px;
    border: none;
    vertical-align: middle;
    line-height: 2.2;
    min-height: 40px;
}

.property-features .features-table .feature-icon {
    width: 40px; /* Increased from 32px for larger size */
    height: 40px;
    vertical-align: middle;
    margin: 5px ;
    display: inline-block;
}

.parking-icon,
.elevator-icon,
.storage-icon {
        filter: invert(45%) sepia(90%) saturate(2000%) hue-rotate(300deg) brightness(100%) contrast(110%);/* Neon pink */
}

.property-contact {
    margin-top: 30px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 5px;
    font-family: 'IRANSansWeb';
}

.property-contact .contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px;
}

.property-contact .contact-icon {
    width: 32px;
    height: 32px;
    vertical-align: top;
    margin-left: 8px;
    display: inline-block;
}

.property-contact p {
    margin: 0;
    flex: 1;
    font-size: 16px;
    color: #333;
    line-height: 1.8;
    text-align: justify;
    white-space: normal; /* Address text: allow wrapping */
}

.property-contact p strong {
    font-weight: bold;
    color: #1a1a1a;
}

.property-share {
    margin-top: 30px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.share-buttons-title {
    padding-left: 10px;
    margin: 0;
    font-weight: bold;
}

.share-buttons {
    display: flex;
    flex-wrap: nowrap;
    gap: 15px;
    justify-content: flex-end;
    align-items: center;
    margin-left: auto;
}

.share-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;   /* increase for bigger buttons */
    height: 45px;
    border-radius: 50%;
    background-color: #ffffff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    text-decoration: none !important;
    cursor: pointer;
    border: none;
    text-decoration: none;
    color: #333;
    flex-shrink: 0;
    flex-wrap: nowrap;
    padding: 0;
}

.share-buttons a {
    text-decoration: none; /* 🚫 Remove underline from links */
    display: inline; /* 📏 Keep links inline */
}

.share-button img {
    width: 47px;   /* or 32px for even bigger icons */
    height: 47px;
    display: block;
}

.share-button svg {
    width: 28px;
    height: 28px;
    display: block;
}

.share-button:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.share-button.instagram {
    background-color: #e1306c;
    color: #fff;
}

.share-button.whatsapp {
    background-color: #25d366;
    color: #fff;
}

.share-button.telegram {
    background-color: #0088cc;
    color: #fff;
}

.share-button.copy-link {
    background-color: #4CAF50;
    color: #fff;
}

.share-button svg {
    width: 65px;
    height: 65px;
}

.back-link {
    margin-top: 20px;
    text-align: center;
}

.admin-actions {
    margin-top: 20px;
    padding: 15px;
    background: #f0f0f0;
    border-radius: 5px;
    text-align: center;
}

.admin-actions a {
    margin: 0 10px;
    color: #d9534f;
}

.realtor-contact {
    margin-top: 20px;
    padding: 15px;
    border-top: 1px solid #ddd;
    text-align: center; /* Center all content */
}

.realtor-contact h3 {
    margin-bottom: 10px;
    text-align: center; /* Ensure heading is centered */
}

.realtor-contact .realtor-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
    display: block; /* Make image a block element */
    margin-left: auto; /* Center the image */
    margin-right: auto; /* Center the image */
    text-decoration: none !important; 
}

.realtor-contact p {
    margin: 5px 0;
}

.realtor-contact a {
    color: #007bff;
    text-decoration: none;
}

.realtor-contact a:hover {
    text-decoration: underline;
}

.container-slider {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: transparent;
    position: relative;
    padding: 60px 20px;
    width: 100%;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.65, 0, 0.35, 1);
}

.nav-btn {
    position: absolute;
    width: 40px;
    height: 40px;
    background-color: #fff;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    z-index: 2;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    font-size: 0;
    border: 2px solid transparent;
}

.nav-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    background-color: #f8f8f8;
}

.nav-btn:active {
    transform: scale(0.95);
}
.nav-btn::before {
    content: '⮞'; 
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8d8989;
    font-size: 24px;
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease;
    padding-top: 5px;
}

/* Reverse arrow directions for RTL */
.horizontal .nav-btn#prev-btn::before {
    transform: rotate(180deg); /* 🔄 Flipped for previous */
}

.horizontal .nav-btn#next-btn::before {
    transform: rotate(0deg); /* ➡️ Correct direction for next */
}

.vertical .nav-btn#prev-btn::before {
    transform: rotate(90deg); /* ⬆️ Up for vertical prev */
}

.vertical .nav-btn#next-btn::before {
    transform: rotate(-90deg); /* ⬇️ Down for vertical next */
}

/* Horizontal Layout */
.horizontal .nav-btn#prev-btn {
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
    opacity: 0;
    animation: fadeInRight 0.5s 0.3s forwards;
}

.horizontal .nav-btn#next-btn {
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    opacity: 0;
    animation: fadeInLeft 0.5s 0.3s forwards;
}

/* Vertical Layout */
.vertical .nav-btn#prev-btn {
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    animation: fadeInDown 0.5s 0.3s forwards;
}

.vertical .nav-btn#next-btn {
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    animation: fadeInUp 0.5s 0.3s forwards;
}

#slider {
    height: 400px;
    width: 100%;
    max-width: 500px;
    position: relative;
    perspective: 1000px;
    transition: all 0.5s cubic-bezier(0.65, 0, 0.35, 1);
    margin: 0 auto;
}

.vertical #slider {
    height: 500px;
    width: 100%;
    max-width: 400px;
}

[type=radio] {
    display: none;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.card {
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    box-sizing: border-box;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    overflow: hidden;
}

.card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

/* Thumbnail styles */
.thumbnails {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.thumbnail {
    width: 60px;
    height: 60px;
    cursor: pointer;
    border-radius: 5px;
    overflow: hidden;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0.6;
}

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

.thumbnail:hover {
    transform: scale(1.1);
    opacity: 0.8;
}

.thumbnail.active {
    opacity: 1;
    border: 2px solid #4CAF50;
}

/* Horizontal slide positioning */
.horizontal #s1:checked ~ #slide1,
.horizontal #s2:checked ~ #slide2,
.horizontal #s3:checked ~ #slide3,
.horizontal #s4:checked ~ #slide4,
.horizontal #s5:checked ~ #slide5,
.horizontal #s6:checked ~ #slide6,
.horizontal #s7:checked ~ #slide7 {
    transform: translateX(0) scale(1);
    z-index: 1;
    opacity: 1;
}

.horizontal #s1:checked ~ #slide2,
.horizontal #s2:checked ~ #slide3,
.horizontal #s3:checked ~ #slide4,
.horizontal #s4:checked ~ #slide5,
.horizontal #s5:checked ~ #slide6,
.horizontal #s6:checked ~ #slide7,
.horizontal #s7:checked ~ #slide1 {
    transform: translateX(25%) scale(0.8) translateZ(-100px);
    z-index: 0;
    opacity: 0.8;
}

.horizontal #s1:checked ~ #slide7,
.horizontal #s2:checked ~ #slide1,
.horizontal #s3:checked ~ #slide2,
.horizontal #s4:checked ~ #slide3,
.horizontal #s5:checked ~ #slide4,
.horizontal #s6:checked ~ #slide5,
.horizontal #s7:checked ~ #slide6 {
    transform: translateX(-25%) scale(0.8) translateZ(-100px);
    z-index: 0;
    opacity: 0.8;
}

/* Vertical slide positioning */
.vertical #s1:checked ~ #slide1,
.vertical #s2:checked ~ #slide2,
.vertical #s3:checked ~ #slide3,
.vertical #s4:checked ~ #slide4,
.vertical #s5:checked ~ #slide5,
.vertical #s6:checked ~ #slide6,
.vertical #s7:checked ~ #slide7 {
    transform: translateY(0) scale(1);
    z-index: 1;
    opacity: 1;
}

.vertical #s1:checked ~ #slide2,
.vertical #s2:checked ~ #slide3,
.vertical #s3:checked ~ #slide4,
.vertical #s4:checked ~ #slide5,
.vertical #s5:checked ~ #slide6,
.vertical #s6:checked ~ #slide7,
.vertical #s7:checked ~ #slide1 {
    transform: translateY(25%) scale(0.8) translateZ(-100px);
    z-index: 0;
    opacity: 0.8;
}

.vertical #s1:checked ~ #slide7,
.vertical #s2:checked ~ #slide1,
.vertical #s3:checked ~ #slide2,
.vertical #s4:checked ~ #slide3,
.vertical #s5:checked ~ #slide4,
.vertical #s6:checked ~ #slide5,
.vertical #s7:checked ~ #slide6 {
    transform: translateY(-25%) scale(0.8) translateZ(-100px);
    z-index: 0;
    opacity: 0.8;
}

.realtor-contact .realtor-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
}
#map {
    height: 300px;
    width: 100%;
    margin-top: 20px;
    border-radius: 5px;
    box-shadow: 0 0 5px rgba(0,0,0,0.1);
}

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

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    border-radius: 8px;
    position: relative;
}

.close-modal {
    position: absolute;
    left: 10px;
    top: 5px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-modal:hover {
    color: #000;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
}

.submit-report {
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-family: inherit;
}

.submit-report:hover {
    background-color: #45a049;
}

.report-button {
    background-color: #ff4444;
    color: white;
    padding: 8px 5px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-family: inherit;
}

.report-button:hover {
    background-color: #cc0000;
}

.warning-button {
    background-color: #ff4444;
    color: white;
    padding: 8px 5px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-family: inherit;
}

.warning-button:hover {
    background-color: #cc0000;
}

.warning-button,
.report-button {
    margin-right: 4px; /* or margin-left: 4px; if you prefer */
    vertical-align: middle;
    max-width: 200px;
}

.warning-button:last-child,
.report-button:last-child {
    margin-right: 10px;
}

.deal-warning-box {
    background: #fffbe6;
    color: #f74a06;
    border: 2px solid #ffe58f;
    border-radius: 8px;
    padding: 6px 6px 6px 6px;
    margin: 6px auto 6px auto; /* Center horizontally */
    box-shadow: 0 2px 10px rgba(255, 215, 0, 0.10);
    position: relative;
    font-size: 1.07em;
    max-width: 700px;
    display: block; /* Ensure block-level for centering */
}

.deal-warning-box ul {
    margin: 0;
    padding-left: 18px;
    padding-top: 28px;
}

.deal-warning-box li {
    margin-bottom: 8px;
    line-height: 1.7;
    list-style-type: none;
    text-align: justify;
    direction: rtl;
    padding-right: .04em;   
    text-indent: -1.2em;  
}

.close-warning {
    position: absolute;
    top: 8px;
    left: 8px;
    background: transparent;
    border: none;
    color: #ad3700;
    font-size: 1.4em;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
}
.close-warning:hover {
    color: #ff4444;
}

.btn-view-all {
    font-family: 'IRANSansWeb';
    display: inline-block;
    padding: 10px 24px;
    background-color: rgb(54, 82, 245);
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: 
        background-color 0.3s cubic-bezier(.4,0,.2,1),
        color 0.3s cubic-bezier(.4,0,.2,1),
        box-shadow 0.3s cubic-bezier(.4,0,.2,1),
        transform 0.2s cubic-bezier(.4,0,.2,1);
    box-shadow: 0 2px 8px rgba(100,181,243,0.08);
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    border: none; /* Ensures button has no default border */
}

.btn-view-all:hover,
.btn-view-all:focus {
    background-color: rgb(17, 48, 223);
    color: #eeff00;
    text-decoration: none; /* Ensures underline is removed */
    box-shadow: 0 4px 16px rgba(17,48,223,0.15);
    transform: translateY(-2px) scale(1.03);
    outline: none;
}

.google-maps-button {
    display: block;
    margin-top: 10px;
    padding: 12px 24px;
    background: linear-gradient(90deg, #ff512f 0%, #dd2476 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 700;
    font-size: 1.08em;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 10px rgba(221, 36, 118, 0.10);
    cursor: pointer;
    border: none;
    transition:
        background 0.3s cubic-bezier(.4,0,.2,1),
        color 0.2s cubic-bezier(.4,0,.2,1),
        box-shadow 0.3s cubic-bezier(.4,0,.2,1),
        transform 0.2s cubic-bezier(.4,0,.2,1);
    text-align: center;
}

.google-maps-button:hover,
.google-maps-button:focus {
    background: linear-gradient(90deg, #dd2476 0%, #ff512f 100%);
    color: #fff !important;
    box-shadow: 0 4px 18px rgba(221, 36, 118, 0.18);
    transform: translateY(-2px) scale(1.03);
    outline: none;
}

/* Fullscreen Image Viewer */
.fullscreen-viewer {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.fullscreen-viewer.active {
    display: flex;
    opacity: 1;
}

.fullscreen-image {
    max-width: 90%;
    max-height: 90vh;
    margin: auto;
    object-fit: contain;
}

.fullscreen-close {
    position: absolute;
    top: 20px;
    left: 20px;
    color: white;
    font-size: 30px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.fullscreen-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.fullscreen-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 30px;
    cursor: pointer;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.fullscreen-nav:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.fullscreen-prev {
    right: 20px;
}

.fullscreen-next {
    left: 20px;
}


/* aiArtifact: Enhanced Footer Style */

/* Footer container */
.footer {
    text-align: center;
    margin: 15px 0; /* 🔄 Unified margin */
    padding: 20px; /* 🛠️ Slightly increased padding */
    background: #f1f3f1; /* 🎨 Softer background color */
    color: #0a7be6; /* 🌈 Adjusted blue for better contrast */
    border-radius: 10px; /* 📏 Smoother corners */
}

/* Last paragraph spacing */
.footer p:last-child {
    margin-top: 20px; /* 📏 Consistent spacing */
}

/* Scoped link styles */
.tel a,
a.area-filter,
footer a {
    text-decoration: none !important;
    color: #3b5bdb; /* 🎨 Modernized link color */
    transition: color 0.3s ease, background 0.3s ease; /* ⏩ Smoother transition */
    position: relative;
}

/* Hover effects for links */
.tel a:hover,
a.area-filter:hover,
footer a:hover {
    color: #1e3a8a; /* 🌑 Darker hover shade */
    font-weight: 700; /* 💪 Bolder hover effect */
}

/* Underline effect for non-button links */
.tel a:not(.btn-view-all):not(.button):not(button)::after,
a.area-filter:not(.btn-view-all):not(.button):not(button)::after,
footer a:not(.btn-view-all):not(.button):not(button)::after {
    content: '';
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    bottom: -3px; /* 📏 Adjusted underline position */
    height: 3px; /* 📏 Thicker underline */
    background: linear-gradient(90deg, #3b5bdb 0%, #1e3a8a 100%); /* 🎨 Updated gradient */
    transform: scaleX(0);
    transition: transform 0.3s ease; /* ⏩ Smoother animation */
    border-radius: 3px; /* 📏 Rounded underline edges */
}

/* Hover state for underline effect */
.tel a:hover:not(.btn-view-all):not(.button):not(button)::after,
a.area-filter:hover:not(.btn-view-all):not(.button):not(button)::after,
footer a:hover:not(.btn-view-all):not(.button):not(button)::after {
    transform: scaleX(1); /* 🚀 Full underline on hover */
}


@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateY(-50%) translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}


/* Keyframes for navigation buttons */
@media (min-width: 1024px) {
    .property-detail {
        flex-direction: row-reverse;
        gap: 20px;
        align-items: flex-start;
        justify-content: space-between;
    }

    .property-images {
        flex: 1;
        width: 70%;
        max-width: 50%;
        margin-bottom: 0;
        position: relative;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }

    .property-map {
        width: 100%;
        max-width: 100%;
    }

    #map {
        height: 350px;
    }

    .property-content {
        flex: 1;
        width: 50%;
        max-width: 50%;
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .property-info, .property-contact, .realtor-contact {
        width: 100%;
    }

    #slider {
        width: 70%;
        max-width: none;
        height: 450px;
        margin: 0;
    }

    .container-slider {
        padding: 20px 10px;
        width: 100%;
        box-sizing: border-box;
    }

    .horizontal .nav-btn#prev-btn {
        left: 5px;
    }

    .horizontal .nav-btn#next-btn {
        right: 5px;
    }

    .thumbnails {
        margin-top: 10px;
    }

    .report-button {
        margin-right: 50px;
    }
}

@media (max-width: 768px) {
    .user-nav {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .user-nav-logo-title {
        justify-content: center;
        width: 100%;
        margin-bottom: 18px;
    }

    .user-nav-buttons.logged-in {
        margin-top: 8px;
        width: 100%;
        justify-content: center;
    }

    .property-info {
        padding: 20px;
    }

    .property-info h2 {
        font-size: 20px;
    }

    .property-meta {
        grid-template-columns: 1fr;
        padding: 15px;
    }

    .property-meta p {
        flex-direction: row;
        align-items: center;
        padding: 12px;
    }

    .property-meta p strong {
        min-width: auto;
    }

    /* Allow wrapping for all meta fields on mobile to prevent overflow */
    .property-meta p {
        white-space: normal;
    }

    .property-contact {
        padding: 15px;
    }

    .property-contact .contact-item {
        align-items: flex-start;
    }
}

@media (min-width: 768px) {
    #slider {
        height: 500px;
        width: 100%;
        max-width: 600px;
    }
    .vertical #slider {
        height: 600px;
        width: 100%;
        max-width: 400px;
    }
    .horizontal .nav-btn#prev-btn {
        left: 10px;
    }
    .horizontal .nav-btn#next-btn {
        right: 10px;
    }
    .vertical .nav-btn#prev-btn {
        top: 10px;
    }
    .vertical .nav-btn#next-btn {
        bottom: 10px;
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateY(-50%) translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
    }
}

@media (max-width: 640px) {

    .property-map {
    margin: 20px;
    }

    .property-share {
        display: flex;
        flex-direction: column;
        align-items: center; /* Center content horizontally */
        text-align: center; /* Center text */
        padding: 15px; /* Consistent padding */
    }

    .share-buttons {
        display: flex;
        flex-direction: column; /* Stack h3 above buttons */
        align-items: center; /* Center content */
        gap: 10px; /* Space between h3 and buttons */
        margin-bottom: 10px; /* Space before share-actions */
        width: 100%; /* Full width */
    }

    .share-buttons-title {
        padding-left: 0; /* Remove left padding for centering */
        margin-bottom: 10px; /* Space between h3 and buttons */
        font-size: 1.1em; /* Smaller h3 for mobile */
    }

    /* Force buttons to align horizontally */
    .share-buttons > .share-button {
        display: inline-flex !important; /* Force horizontal alignment */
        flex: 0 0 auto !important; /* Prevent stretching */
        margin: 0 5px !important; /* Horizontal spacing */
    }

    /* Ensure buttons are in a horizontal row */
    .share-buttons {
        display: flex;
        flex-wrap: wrap !important; /* Allow wrapping if needed */
        justify-content: center !important; /* Center buttons */
        flex-direction: row !important; /* Override column for buttons */
        align-items: center;
    }

    /* Adjust h3 to stay above */
    .share-buttons > .share-buttons-title {
        display: block !important; /* Ensure h3 is block-level and above */
        width: 100%; /* Full width for centering */
    }

    .share-button {
        width: 38px !important; /* Smaller size */
        height: 38px !important; /* Smaller size */
    }

    .share-button img {
        width: 20px !important; /* Smaller icons */
        height: 20px !important; /* Smaller icons */
    }

    .share-button svg {
        width: 20px !important; /* Smaller SVG icons */
        height: 20px !important; /* Smaller SVG icons */
    }

    .share-actions {
        display: flex;
        flex-direction: row !important; /* Keep warning and report buttons horizontal */
        justify-content: center; /* Center buttons */
        gap: 10px; /* Space between buttons */
        width: 100%; /* Full width */
    }

    .warning-button,
    .report-button {
        width: 100%; /* Full width for each button */
        max-width: 160px; /* Smaller max-width for mobile */
        padding: 6px 8px; /* Smaller padding */
        font-size: 0.9em; /* Smaller font size */
        margin: 0; /* Remove extra margins */
    }

    .nav-btn::before {
    content: '<'; 
    }
}