/* ============================================
   COLOR SCHEME VARIATIONS
   Uncomment one of the color schemes below to use it
   ============================================ */

   * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Header/Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    height: 60px;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 3px;
    background: #fff;
    border-radius: 3px;
    transition: all 0.3s;
    transform-origin: center;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    transition: all 0.3s ease;
    line-height: 1rem;
}

.nav a {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: opacity 0.3s;
    padding: 0.5rem 0;
}

.nav a:hover {
    opacity: 0.8;
}

/* Hero Slider Section */
.hero-slider {
    position: relative;
    width: 100%;
    height: 70vh;
    min-height: 500px;
    overflow: hidden;
    margin-top: 60px;
}

@media (max-width: 768px) {
    .hero-slider {
        height: 50vh;
        min-height: 350px;
    }
}

@media (max-width: 480px) {
    .hero-slider {
        height: 45vh;
        min-height: 300px;
    }
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out, transform 1s ease-in-out, background-position 1s ease-in-out;
    background-size: cover;
    background-position: center center;
    will-change: transform, background-position;
    transform: translate3d(0, 0, 0) scale(1);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    animation: none;
    background-repeat: no-repeat;
}

.slide.active {
    opacity: 1;
    animation: zoomIn 10s ease infinite;
    background-size: cover;
}

/* Disable animation when there's only one slide */
.single-slide .slide.active {
    animation: none;
}

@keyframes zoomIn {
    0% {
        transform: scale(1) translate3d(0px, 0px, 1px);
    }
    100% {
        transform: scale(1.07) translate3d(0px, 0px, 2px);
    }
}

.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    padding: 3rem;
    text-align: center;
    z-index: 10;
}

@media (max-width: 768px) {
    .hero-overlay {
        padding: 2rem 1rem 2.5rem;
    }
}

.hero-title {
    color: #fff;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    line-height: 1.2;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 1.75rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.5rem;
    }
}

.hero-subtitle {
    color: #fff;
    font-size: 1.5rem;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

@media (max-width: 768px) {
    .hero-subtitle {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-subtitle {
        font-size: 0.9rem;
    }
}

.slider-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.2);
    border: none;
    color: #fff;
    font-size: 2.5rem;
    padding: 0;
    cursor: pointer;
    z-index: 20;
    transition: background 0.3s;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    font-weight: 300;
    touch-action: manipulation;
    min-width: 44px;
    min-height: 44px;
}

.slider-controls:hover {
    background: rgba(255,255,255,0.4);
}

.slider-prev {
    left: 20px;
}

.slider-next {
    right: 20px;
}

@media (max-width: 768px) {
    .slider-controls {
        width: 40px;
        height: 40px;
        min-width: 40px;
        min-height: 40px;
    }
    
    .slider-prev {
        left: 10px;
    }
    
    .slider-next {
        right: 10px;
    }
}

@media (max-width: 480px) {
    .slider-controls {
        width: 36px;
        height: 36px;
        min-width: 36px;
        min-height: 36px;
    }
    
    .slider-prev {
        left: 5px;
    }
    
    .slider-next {
        right: 5px;
    }
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 20;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: background 0.3s;
}

.dot.active {
    background: #fff;
}

.wave-separator {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3em;
    overflow: visible;
    background: transparent;
    z-index: 10;
    pointer-events: none;
}

.wave-separator svg {
    display: block;
}

.wave-separator .bg {
    fill: #fff;
}

.wave-separator .stripe {
    fill: var(--primary-dark);
    opacity: 0.7;
}

/* Main Content */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
}

.content-section {
    background: white;
    padding: 3rem 0;
}

@media (max-width: 768px) {
    .content-section {
        padding: 2rem 0;
    }
}

.contact-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-direction: column;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
    text-align: center;
}

.contact-name {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
}

@media (max-width: 768px) {
    .contact-name {
        font-size: 1.25rem;
    }
}

.contact-phone {
    font-size: 1.2rem;
    color: #6b7280;
}

@media (max-width: 768px) {
    .contact-phone {
        font-size: 1rem;
    }
}

.btn {
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    touch-action: manipulation;
    min-height: 44px;
    min-width: 120px;
}

@media (max-width: 768px) {
    .btn {
        width: 100%;
        max-width: 100%;
        padding: 0.875rem 1.5rem;
    }
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.property-title-section {
    margin-bottom: 2rem;
    text-align: center;
}

.property-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

@media (max-width: 768px) {
    .property-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .property-title {
        font-size: 1.25rem;
    }
}

.property-location {
    font-size: 1.2rem;
    color: #6b7280;
}

@media (max-width: 768px) {
    .property-location {
        font-size: 1rem;
    }
}

.action-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
    justify-content: center;
}

/* Photo Gallery */
.gallery-section {
    background: white;
    padding: 1rem 0;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-align: center;
}

@media (max-width: 768px) {
    .section-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.25rem;
    }
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    aspect-ratio: 4/3;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.gallery-item:hover {
    box-shadow: 0 8px 15px rgba(0,0,0,0.2);
}

/* the whole tile opens the photo viewer (photos) or the video player (videos) */
.gallery-item-link {
    position: absolute;
    inset: 0;
    display: block;
    color: inherit;
    text-decoration: none;
    border-radius: inherit;
}

.gallery-item-link:focus-visible {
    outline: 3px solid #2563eb;
    outline-offset: -3px;
}

.gallery-media-frame {
    position: absolute;
    inset: 0;
    overflow: hidden;
    border-radius: inherit;
    background: #f3f4f6;
}

.gallery-media-backdrop {
    position: absolute;
    inset: -18%;
    width: 136%;
    height: 136%;
    object-fit: cover;
    object-position: center;
    filter: blur(28px) saturate(1.35) brightness(1.05);
    transform: scale(1.08);
    opacity: 0.92;
    pointer-events: none;
}

.gallery-media,
.gallery-item > img {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    object-position: center;
    transition: transform 0.5s;
}

.gallery-item:hover .gallery-media,
.gallery-item:hover > img {
    transform: scale(1.08);
}

.gallery-media.lazy-media:not(.lazy-media--loaded),
.gallery-media-backdrop.lazy-media:not(.lazy-media--loaded) {
    opacity: 0;
}

.gallery-media.lazy-media--loaded {
    opacity: 1;
    transition: opacity 0.35s ease-out, transform 0.5s;
}

.gallery-media-backdrop.lazy-media--loaded {
    opacity: 0.92;
    transition: opacity 0.35s ease-out;
}

.gallery-media-frame:has(.lazy-media:not(.lazy-media--loaded)) {
    background-image: linear-gradient(110deg, #e5e7eb 25%, #f3f4f6 40%, #e5e7eb 55%);
    background-size: 200% 100%;
    animation: gallery-lazy-shimmer 1.2s linear infinite;
}

@keyframes gallery-lazy-shimmer {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    background: rgba(0,0,0,0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
    opacity: 0;
}

.gallery-item:hover .gallery-overlay {
    background: rgba(0,0,0,0.5);
    opacity: 1;
}

.gallery-overlay svg {
    transform: scale(0);
    transition: transform 0.3s;
}

.gallery-item:hover .gallery-overlay svg {
    transform: scale(1);
}

/* Gallery Modal */
.gallery-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.95);
    animation: fadeIn 0.3s;
}

.gallery-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.gallery-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.gallery-modal-content img,
.gallery-modal-content video {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.gallery-modal-content video {
    width: 100%;
    height: auto;
    background: #000;
}

.gallery-counter {
    color: white;
    font-size: 1.2rem;
    margin-top: 1rem;
    font-weight: 500;
}

.gallery-close {
    position: absolute;
    top: 30px;
    right: 45px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    transition: transform 0.3s;
    line-height: 1;
}

.gallery-close:hover {
    transform: scale(1.2);
    color: var(--primary-color);
}

/* Share Section */
.share-section {
    background: white;
    padding: 2rem 0;
}

.share-title {
    font-size: 1.2rem;
    color: #6b7280;
    margin-bottom: 1rem;
}

.social-icons {
    display: flex;
    gap: 1.5rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s;
    touch-action: manipulation;
    min-width: 44px;
    min-height: 44px;
}

@media (max-width: 480px) {
    .social-icons {
        gap: 1rem;
    }
    
    .social-icon {
        width: 44px;
        height: 44px;
    }
}

.social-icon:hover {
    background: var(--primary-color);
    color: white;
}

/* Presented By Section */
.presented-by-section {
    background: linear-gradient(135deg, #8b5a3c 0%, #6b4423 100%);
    padding: 5rem 0;
    position: relative;
    background-image: 
        repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(0,0,0,0.05) 10px, rgba(0,0,0,0.05) 20px);
    overflow: hidden;
}

@media (max-width: 768px) {
    .presented-by-section {
        padding: 3rem 0;
    }
}

@media (max-width: 480px) {
    .presented-by-section {
        padding: 2rem 0;
    }
}

.presented-by-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.presented-by-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.presented-by-card {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .presented-by-card {
        padding: 2rem;
        margin: 0 1rem;
    }
}

@media (max-width: 480px) {
    .presented-by-card {
        padding: 1.5rem;
        border-radius: 12px;
    }
}

.presented-by-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #e5e7eb;
}

.presented-by-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    .presented-by-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .presented-by-title {
        font-size: 1.25rem;
    }
}

.presented-by-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.presented-by-avatar {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.presented-by-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.presented-by-info {
    flex: 1;
}

.presented-by-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.25rem;
}

@media (max-width: 768px) {
    .presented-by-name {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .presented-by-name {
        font-size: 1.1rem;
    }
}

.presented-by-role {
    font-size: 1rem;
    color: #6b7280;
    margin-bottom: 1rem;
    font-style: italic;
}

.presented-by-phone,
.presented-by-email {
    font-size: 1rem;
    color: #4b5563;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.presented-by-phone svg,
.presented-by-email svg {
    color: var(--primary-color);
    flex-shrink: 0;
}

.presented-by-actions {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 2px solid #e5e7eb;
}

.btn-contact {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    touch-action: manipulation;
    min-height: 44px;
}

@media (max-width: 768px) {
    .btn-contact {
        width: 100%;
        justify-content: center;
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }
}

.btn-contact:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.btn-contact:active {
    transform: translateY(0);
}

/* Map Section */
.map-section {
    width: 100%;
    height: 500px;
    background: #e5e7eb;
    position: relative;
}

@media (max-width: 768px) {
    .map-section {
        height: 400px;
    }
}

@media (max-width: 480px) {
    .map-section {
        height: 300px;
    }
}

.map-container {
    width: 100%;
    height: 100%;
}

/* Footer */
.footer {
    background: #1f2937;
    color: white;
    padding: 3rem 0;
}

.footer-content {
    text-align: center;
    line-height: 2;
}

.footer-text {
    color: #9ca3af;
    font-size: 0.9rem;
}

.equal-housing {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .nav {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: rgba(15, 23, 42, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 1rem 0;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        display: none;
    }

    .nav.active {
        max-height: 400px;
        display: flex;
    }

    .nav a {
        padding: 1rem 2rem;
        width: 100%;
        text-align: left;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav a:last-child {
        border-bottom: none;
    }

    .contact-info {
        flex-direction: column;
        align-items: center;
    }

    .action-buttons {
        flex-direction: column;
    }

    .gallery-prev,
    .gallery-next {
        width: 40px;
        height: 40px;
        min-width: 40px;
        min-height: 40px;
    }

    .gallery-prev {
        left: 10px;
    }

    .gallery-next {
        right: 10px;
    }

    .gallery-close {
        top: 15px;
        right: 20px;
        font-size: 30px;
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .wave-separator {
        height: 2.5em;
    }

    .property-description-section {
        padding: 2rem 0;
    }

    .gallery-section {
        padding: 2rem 0;
    }

    .share-section {
        padding: 2rem 0;
    }
}

@media (max-width: 480px) {
    .header {
        height: 56px;
    }

    .nav {
        top: 56px;
    }

    .hero-slider {
        margin-top: 56px;
    }

    .gallery-close {
        top: 10px;
        right: 15px;
        font-size: 28px;
    }

    .gallery-prev,
    .gallery-next {
        width: 36px;
        height: 36px;
        min-width: 36px;
        min-height: 36px;
    }

    .gallery-prev {
        left: 5px;
    }

    .gallery-next {
        right: 5px;
    }
}

.special-marking {
    background: rgba(0, 0, 0, 0.75);
    display: inline-block;
    margin: 0 auto 0.5em auto;
    padding: 0.3em 2em;
    color: #fff;
    font-size: 1em;
    text-shadow: 0 0.1em 0.15em rgba(0, 0, 0, 0.3);
    font-weight: 300;
}

@media (max-width: 768px) {
    .special-marking {
        font-size: 0.85em;
        padding: 0.25em 1.5em;
    }
}

@media (max-width: 480px) {
    .special-marking {
        font-size: 0.75em;
        padding: 0.2em 1em;
    }
}
.buycommission {
    padding: 1em 0.5em;
}

.buycommission .accent {
    border: 0;
    height: 2px;
    margin: 0 auto;
    position: relative;
    background: -moz-linear-gradient(left, rgba(0,0,0,0) 0%, rgba(0,0,0,0) 10%, rgba(0,0,0,0.25) 50%, rgba(0,0,0,0) 90%, rgba(0,0,0,0) 100%);
    background: -webkit-gradient(linear, left top, right top, color-stop(0%, rgba(0, 0, 0, 0)), color-stop(10%, rgba(0, 0, 0, 0)), color-stop(50%, rgba(0, 0, 0, 0.25)), color-stop(90%, rgba(0, 0, 0, 0)), color-stop(100%, rgba(0, 0, 0, 0)));
    background: -webkit-linear-gradient(left, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0) 10%, rgba(0, 0, 0, 0.25) 50%, rgba(0, 0, 0, 0) 90%, rgba(0, 0, 0, 0) 100%);
    background: -o-linear-gradient(left, rgba(0,0,0,0) 0%,rgba(0,0,0,0) 10%,rgba(0,0,0,0.25) 50%,rgba(0,0,0,0) 90%,rgba(0,0,0,0) 100%);
    background: -ms-linear-gradient(left, rgba(0,0,0,0) 0%,rgba(0,0,0,0) 10%,rgba(0,0,0,0.25) 50%,rgba(0,0,0,0) 90%,rgba(0,0,0,0) 100%);
    background: linear-gradient(left, rgba(0,0,0,0) 0%,rgba(0,0,0,0) 10%,rgba(0,0,0,0.25) 50%,rgba(0,0,0,0) 90%,rgba(0,0,0,0) 100%);
    width: 80%;
}

@media (max-width: 768px) {
    .buycommission {
        padding: 0.75em 0.5em;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .buycommission {
        padding: 0.5em 0.25em;
        font-size: 0.85rem;
    }
}

/* Property Description Section */
.property-description-section {
    background: white;
    padding: 1rem 0;
}

@media (max-width: 768px) {
    .property-description-section {
        padding: 2rem 0;
    }
}

.details {
    position: relative;
    padding: 1em;
    font-size: 1.8rem;
}

.details-wrapper {
    display: flex;
    margin: -0.5em 0 0.5em 0;
}

.details-inner-wrapper {
    flex-basis: 400px;
    flex-grow: 1;
    padding: 0.5em 0;
    margin-bottom: -1em;
}

@media (max-width: 768px) {
    .details-wrapper {
        flex-direction: column;
        margin: 0;
    }
    
    .details-inner-wrapper {
        flex-basis: auto;
        padding: 0.5em 0;
        margin-bottom: 0;
    }
}

@media (max-width: 768px) {
    .details {
        padding: 1em 0.5em 1.5em 0.5em;
        font-size: 1.4rem;
    }
}

@media (max-width: 480px) {
    .details {
        font-size: 1.2rem;
    }
}

.details .details-inner {
    margin: 0 auto;
    max-width: 1200px;
    padding: 1em 0 1.5em 0;
}

.details .details-inner ul {
    margin-block:0;padding-inline-start:0;}

.details h2 {
    color: var(--primary-color);
    margin: 0 0 0.3em 0;
    text-align: center;
}

.details .details-grid {
    border-collapse: collapse;
    margin: 0.5em auto;
}

.details .details-grid td {
    padding: 0 1em;
    vertical-align: top;
}

.details .details-table div {
    padding: 0.2em 0.75em;
    white-space: nowrap;
    display: inline-block;
}

.details .details-grid .details-table tr td {
    padding: 0.2em 0.75em;
    white-space: nowrap;
    vertical-align: top;
}

.details .details-grid .details-table tr:first-child td {
    padding: 0;
}

.details .details-table li {
    margin-left: 0;
    list-style-type: none;
    white-space: nowrap;
}

.details .am-under li, .details .am-beside1 li, .details .am-beside2 li {
    list-style-type: none;
}

.details .details-grid ul {
    margin-block:0;padding-inline-start:0;}

.details .am-line {
    padding: 0.2em 0 0.2em 1.2em;
}

.details .am-line .bullet {
    display: inline-block;
    margin-left: -1.2em;
    opacity: 0.4;
    width: 1.2em;
}

.details .details-grid .details-table td.am-under {
    padding-top: 1em;
}

.details .am-beside1, .details .am-beside2 {
    display: none;
}

.details .details-buttons {
    text-align: center;
}

.details .details-buttons .btn2 {
    margin: 1em 0.5em 0 0.5em;
}

.details .details-icons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    font-size: 1.1em;
    padding-left: 0;
    list-style-type: none;
    gap: 0.5em;
}

.details .details-icons .circle {
    border: 2px solid #ddd;
    border-radius: 4em;
    display: inline-block;
    padding: 0.4em 0.3em;
    width: 1.2em;
}

.details .details-icons > li {
    padding: 0.7em;
    min-width: 4em;
    white-space: nowrap;
    text-align: center;
}

@media (max-width: 768px) {
    .details .details-icons {
        font-size: 0.95em;
        gap: 0.25em;
    }
    
    .details .details-icons > li {
        padding: 0.5em;
        min-width: 3.5em;
    }
}

@media (max-width: 480px) {
    .details .details-icons {
        font-size: 0.85em;
    }
    
    .details .details-icons > li {
        padding: 0.4em;
        min-width: 3em;
    }
}

.details .details-icons > li > span {
    font-size: 0.7em;
}
.details .details-icons > li > div {
    font-size: 0.5em;
    opacity: 0.64;
}

.details .details-icons i {
    display: block;
    font-size: 1.3em;
    opacity: 0.4;
    margin-bottom: 0.1em;
}

.details .description-text {
    max-height: 15em;
    overflow-y: auto;
    margin: 0.5em 0;
}

/* Amenities Section */
.amenities-section {
    background: white;
    padding: 1rem 0;
}

.amenities-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1.5rem 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.amenity-item {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    white-space: nowrap;
    font-size: 1.5rem;
    color: #333;
    list-style: none;
}

.amenity-item i {
    color: var(--primary-color);
    flex-shrink: 0;
}

.amenity-item span {
    line-height: 1.5;
}

/* Responsive adjustments for amenities */
@media (max-width: 768px) {
    .amenities-section {
        padding: 2rem 0;
    }

    .amenities-list {
        gap: 1rem 1.5rem;
        justify-content: flex-start;
        padding: 0 1rem;
    }
    
    .amenity-item {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .amenities-list {
        gap: 0.75rem 1rem;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .amenity-item {
        font-size: 1rem;
    }
}

/* Contact Modal */
.contact-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    animation: fadeIn 0.3s;
}

.contact-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-modal-content {
    background-color: #fff;
    margin: auto;
    padding: 2rem;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.contact-modal-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    color: #6b7280;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s;
}

.contact-modal-close:hover {
    color: var(--primary-color);
}

.contact-modal-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    text-align: center;
}

.form-group {
    margin-bottom: 0.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #374151;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

.btn-secondary {
    background: #6b7280;
    color: white;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: #4b5563;
    transform: translateY(-2px);
}

.form-message {
    margin-top: 1rem;
    padding: 0.75rem;
    border-radius: 6px;
    text-align: center;
    font-weight: 500;
}

.form-message.success {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #10b981;
}

.form-message.error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #ef4444;
}

/* Responsive adjustments for modal */
@media (max-width: 768px) {
    .contact-modal-content {
        padding: 1.5rem;
        width: 95%;
        margin: 1rem;
    }
    
    .contact-modal-title {
        font-size: 1.5rem;
    }
    
    .contact-modal-close {
        top: 0.75rem;
        right: 1rem;
        font-size: 28px;
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .btn-secondary,
    .btn-primary {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .contact-modal-content {
        padding: 1.25rem;
        width: 98%;
        margin: 0.5rem;
    }
    
    .contact-modal-title {
        font-size: 1.25rem;
    }
    
    .gallery-modal-content {
        max-width: 98%;
        padding: 0.5rem;
    }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    touch-action: manipulation;
    min-width: 50px;
    min-height: 50px;
}

.back-to-top.show {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.back-to-top:active {
    transform: translateY(-1px);
}

.back-to-top svg {
    width: 24px;
    height: 24px;
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
    }
    
    .back-to-top svg {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 480px) {
    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
        min-width: 40px;
        min-height: 40px;
    }
    
    .back-to-top svg {
        width: 18px;
        height: 18px;
    }
}