/* NOWOCZESNY DESIGN STRONY SZCZEGÓŁÓW OFERTY */

/* ========== PODSTAWOWE STYLE ========== */

.offer-details-page {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    min-height: 100vh;
    padding-top: 6rem; /* Set to match header height + desired spacing */
    position: relative;
}

/* Fix for header spacing */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* ========== LOKALIZACJA ========== */

.offer-location-header {
    font-size: 0.9rem;
    color: var(--medium-gray);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

.offer-location-header:hover {
    color: var(--accent-color);
}

.offer-location-header i {
    color: var(--accent-color);
    margin-right: 0.2rem;
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.offer-location-header:hover i {
    transform: scale(1.2);
}

/* ========== LAYOUT I GALERIA ========== */

.offer-content-section {
    padding: 2rem 0 3rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 50%, #f8f9fa 100%);
    position: relative;
    z-index: 1;
}

.offer-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: start;
    max-width: 1400px;
    margin: 0 auto;
}

/* ========== GALERIA ZDJĘĆ ========== */
.offer-gallery {
    position: relative; /* Changed from sticky to relative */
}

.property-gallery {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    margin-bottom: 1.5rem;
}

.main-image {
    position: relative;
    height: 450px;
    overflow: hidden;
    background: linear-gradient(45deg, var(--light-gray), var(--secondary-color));
    /* Removed border-radius from main-image to avoid conflicting with property-gallery */
}

.main-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(10, 35, 66, 0.05) 100%);
    z-index: 1;
    pointer-events: none;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* -- Miniaturki galerii -- */
.thumbnail-images {
    display: flex;
    gap: 0.8rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(248, 249, 250, 0.9) 0%, rgba(255, 255, 255, 0.9) 100%);
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-color) transparent;
    border-bottom-left-radius: 24px;
    border-bottom-right-radius: 24px;
}

.thumbnail-images::-webkit-scrollbar {
    height: 6px;
}

.thumbnail-images::-webkit-scrollbar-track {
    background: rgba(10, 35, 66, 0.1);
    border-radius: 3px;
}

.thumbnail-images::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 3px;
}

.thumbnail {
    width: 90px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid transparent;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    box-sizing: border-box; /* Ensure border is included in element size */
}

.thumbnail::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(10, 35, 66, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.thumbnail:hover::before {
    opacity: 1;
}

.thumbnail:hover {
    border-color: var(--accent-color);
    transform: scale(1.1) translateY(-4px);
    box-shadow: 0 12px 30px rgba(48, 77, 125, 0.3);
}

.thumbnail.active {
    position: relative;
    transform: scale(1.1) translateY(-4px);
    box-shadow: 0 8px 25px rgba(10, 35, 66, 0.4);
}

.thumbnail.active::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    pointer-events: none;
}

/* ========== INFORMACJE O OFERCIE ========== */

.offer-info {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(250, 251, 252, 0.98) 100%);
    border-radius: 18px;
    padding: 2rem;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.07);
    height: fit-content;
    max-width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.offer-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--accent-color) 100%);
    border-radius: 24px 24px 0 0;
}

.offer-header {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid rgba(10, 35, 66, 0.1);
    position: relative;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.offer-header::after {
    content: '';
    position: absolute;
    bottom: -25px;
    left: 0;
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-color), transparent);
}

.offer-header h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-top: 1rem;
    margin-bottom: 2rem;
    line-height: 1.2;
    font-weight: 700;
}

.price-container {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(10, 35, 66, 0.03) 0%, rgba(48, 77, 125, 0.03) 100%);
    border-radius: 10px;
    border: 1px solid rgba(10, 35, 66, 0.06);
    margin-bottom: 1rem;
}

.offer-price {
    font-size: 2rem;
    font-weight: 800;
    color: #0a2342; /* Fallback dla starszych przeglądarek */
    background: linear-gradient(135deg, #0a2342 0%, #304d7d 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    line-height: 1.1;
}

.offer-price-per-m2 {
    font-size: 0.9rem;
    color: var(--medium-gray);
    font-weight: 600;
    margin: 0;
    background: linear-gradient(135deg, rgba(48, 77, 125, 0.05) 0%, rgba(48, 77, 125, 0.02) 100%);
    padding: 0.3rem 0.7rem;
    border-radius: 8px;
    border: 1px solid rgba(48, 77, 125, 0.1);
}

/* ========== CECHY OFERTY ========== */

.offer-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
    margin-bottom: 0rem;
    margin-top: 1rem;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1rem 3rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 249, 250, 0.9) 100%);
    border-radius: 25px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(10, 35, 66, 0.05);
    position: relative;
    overflow: hidden;
}

.feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature-item:hover::before {
    transform: scaleX(1);
}

.feature-item:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.1);
}

.feature-item i {
    font-size: 1.3rem;
    color: white;
    margin-bottom: 0.6rem;
    padding: 0.6rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(10, 35, 66, 0.2);
    transition: all 0.3s ease;
}

.feature-item:hover i {
    transform: scale(1.08) rotateY(360deg);
    box-shadow: 0 10px 28px rgba(10, 35, 66, 0.35);
}

.feature-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.3rem;
}

.feature-name {
    font-size: 0.8rem;
    color: var(--medium-gray);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* ========== OPIS OFERTY ========== */

.offer-description {
    margin-bottom: 1.5rem;
    margin-top: -1.5rem;
}

.offer-description h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    position: relative;
}

.offer-description h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), transparent);
    border-radius: 2px;
}

.description-content {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--dark-gray);
}

/* ========== SZCZEGÓŁY OFERTY ========== */

/* ========== SZCZEGÓŁY OFERTY - NOWY DESIGN BEZ ROZWIJANIA ========== */

.offer-details {
    margin-bottom: 2.5rem;
}

/* Nowoczesne karty sekcji */
.detail-section {
    background: white;
    border-radius: 16px;
    margin-bottom: 1rem;
    box-shadow: none;
    border: none;
    overflow: hidden;
}

/* Header sekcji */
.detail-section h3 {
    padding: 1rem 0;
    background: transparent;
    display: flex;
    align-items: center;
    margin: 0 0 1rem 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    position: relative;
}

.detail-section h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), transparent);
    border-radius: 2px;
}

/* Zawartość szczegółów */
.details-content {
    background: transparent;
    overflow: visible;
}

.details-container {
    padding: 0;
}

/* Wiersze szczegółów */
.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 500;
    color: #555;
    font-size: 0.95rem;
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.detail-label::before {
    content: '•';
    color: var(--accent-color);
    font-weight: bold;
    font-size: 1.2rem;
}

.detail-value {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.95rem;
    text-align: right;
    flex: 0 0 auto;
    max-width: 50%;
    word-wrap: break-word;
}

.detail-value.positive {
    color: #10b981;
}

.detail-value.negative {
    color: #ef4444;
}

/* Specjalne style dla pierwszej sekcji */
.detail-section[data-section="main"] {
    background: transparent;
    border: none;
}

.detail-section-expandable[data-section="main"] .section-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: white;
    border-bottom: none;
}

.detail-section-expandable[data-section="main"] .section-title::before {
    background: white;
}

.detail-section-expandable[data-section="main"] .expand-icon {
    background: rgba(255, 255, 255, 0.2);
}

.detail-section-expandable[data-section="main"] .expand-icon i {
    color: white;
}

/* Dodatkowe style dla lepszego wyglądu */
.detail-section-expandable[data-section="building"] .section-title::before {
    background: #28a745;
}

.detail-section-expandable[data-section="plot"] .section-title::before {
    background: #17a2b8;
}

/* Efekt hover dla sekcji nieaktywnych */
.detail-section-expandable:not(.active):hover .section-header {
    transform: translateX(4px);
}

/* Animacje dla responsywnych urządzeń */
@media (max-width: 768px) {
    .detail-section-expandable {
        margin-bottom: 0.8rem;
        border-radius: 12px;
    }
    
    .section-header {
        padding: 1.2rem 1.5rem;
        font-size: 1rem;
    }
    
    .detail-row {
        padding: 0.8rem 1.5rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.4rem;
    }
    
    .detail-label {
        font-size: 0.9rem;
    }
    
    .detail-value {
        text-align: left;
        max-width: 100%;
        color: var(--medium-gray);
        font-weight: 500;
    }
}

@media (max-width: 480px) {
    .offer-details {
        margin-bottom: 2rem;
    }
    
    .detail-section {
        margin-bottom: 1.5rem;
    }
    
    .detail-section h3 {
        padding: 0.5rem 0;
        font-size: 1.2rem;
    }
    
    .detail-section h3::after {
        width: 40px;
        height: 2px;
    }
    
    .detail-row {
        padding: 0.7rem 1.2rem;
    }
}

/* ========== CALL TO ACTION ========== */

.offer-contact-cta {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: white;
    padding: 3rem 1rem;
    border-radius: 24px;
    text-align: center;
    margin-top: 3rem;
    box-shadow: 0 20px 60px rgba(10, 35, 66, 0.3);
    position: relative;
    overflow: hidden;
}

.offer-contact-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.offer-contact-cta h3 {
    color: white;
    margin-bottom: 1rem;
    font-size: 2rem;
    position: relative;
    z-index: 2;
}

.offer-contact-cta p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    font-size: 1.1rem;
    position: relative;
    z-index: 2;
}

.offer-contact-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.btn-contact-primary {
    background: white;
    color: var(--primary-color);
    padding: 1rem 2.5rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.1rem;
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.3);
    height: 58px;
    justify-content: center;
    width: 10rem;
}

.btn-contact-primary:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 15px 40px rgba(255, 255, 255, 0.4);
    background: #2c508a;
    color: white;
}

.btn-contact-details {
    background: white;
    color: var(--primary-color);
    padding: 1rem 2.5rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.1rem;
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.3);
    height: 58px;
    justify-content: center;
    width: 10rem;
}

.btn-contact-details:hover {
    background: #2c508a;
    color: white;
    transform: translateY(-4px) scale(1.05);
    border-color: #2c508a;
}

.btn-contact-secondary {
    background: #f5f8ff;
    color: #2c508a;
    border: 2px solid #2c508a;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.1rem;
    min-width: 180px;
    height: 52px;
    justify-content: center;
}

.btn-contact-secondary:hover {
    background: #2c508a;
    color: white;
    transform: translateY(-4px) scale(1.05);
    border-color: #2c508a;
}

/* ========== RESPONSYWNOŚĆ ========== */
@media (max-width: 1024px) {
    .offer-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .offer-gallery {
        position: relative;
        top: 0;
    }
    
    .gallery-description {
        margin-top: 1rem;
        padding: 1.5rem;
    }
    
    .offer-features {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    /* Usunięto duplikaty display:flex */

    .offer-content-section {
        padding: 2rem 0;
    }
    
    .gallery-description {
        padding: 1.25rem;
        border-radius: 16px;
    }
    
    .gallery-description h3 {
        font-size: 1.3rem;
    }
    
    .gallery-description .description-content {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .offer-info {
        padding: 1.5rem;
        margin: 0 1rem;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
        border-radius: 20px;
    }
    
    .offer-features {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .offer-contact-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-contact-primary,
    .btn-contact-details,
    .btn-contact-secondary {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .offer-details {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 576px) {
    
    .offer-location-header {
        font-size: 0.8rem;
        padding: 0.3rem 0.7rem;
        margin-bottom: 0.6rem;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .price-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.4rem;
        padding: 1rem;
    }
    
    .offer-price {
        font-size: 1.6rem;
    }
    
    .main-image {
        height: 250px;
    }
    
    .thumbnail {
        width: 60px;
        height: 45px;
    }
    
    .offer-info {
        padding: 1.2rem;
        margin: 0 0.5rem;
        border-radius: 16px;
    }
    
    .offer-header h2 {
        font-size: 1.6rem;
    }
}

@media (min-width: 577px) and (max-width: 991px) {
    
    .offer-info {
        padding: 2rem;
        margin: 0 1rem;
    }
    
    .offer-header h2 {
        font-size: 1.8rem;
    }
    
    .offer-price {
        font-size: 2.2rem;
    }
    
    .feature-item {
        padding: 1.3rem 0.8rem;
    }
    
    .feature-item i {
        width: 55px;
        height: 55px;
    }
}

@keyframes subtle-move {
    0% {
        background-position: 0% 0%;
    }
    100% {
        background-position: 100% 0%;
    }
}

@keyframes subtle-pulse {
    0% {
        opacity: 0.7;
    }
    50% {
        opacity: 0.9;
    }
    100% {
        opacity: 0.7;
    }
}

/* Usunięto .page-header-content i .page-header .container */

/* ========== GALERIA ZDJĘĆ - OPIS ========== */
.gallery-description {
    background: white;
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    margin-top: 1.5rem;
}

.gallery-description h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    position: relative;
}

.gallery-description h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), transparent);
    border-radius: 2px;
}

.gallery-description .description-content {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--dark-gray);
    white-space: pre-line;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

@media (max-width: 1024px) {
    .gallery-description {
        margin-top: 1rem;
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .gallery-description {
        padding: 1.25rem;
        border-radius: 16px;
    }
    
    .gallery-description h3 {
        font-size: 1.3rem;
    }
    
    .gallery-description .description-content {
        font-size: 1rem;
        line-height: 1.6;
    }
}

/* ========== FULLSCREEN GALLERY MODAL ========== */

.gallery-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.close-modal {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.close-modal:hover {
    opacity: 1;
}

.modal-image-container {
    position: relative;
    width: 100%;
    height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

#modal-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.nav-button:hover {
    background: var(--accent-color);
    opacity: 1;
}

.prev-button {
    left: 20px;
}

.next-button {
    right: 20px;
}

.modal-counter {
    color: white;
    text-align: center;
    margin-top: 15px;
    font-size: 16px;
    font-weight: 500;
}

/* Add cursor pointer to main image to indicate it's clickable */
.main-image {
    cursor: pointer;
}

.main-image::after {
    content: '\f00e';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.8);
    color: var(--primary-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.main-image:hover::after {
    opacity: 1;
}

/* Click instructions styles */
.click-instructions {
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    margin-top: 10px;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.gallery-modal:hover .click-instructions {
    opacity: 1;
}

/* Make modal background slightly more transparent to indicate it's clickable */
.gallery-modal {
    background-color: rgba(0, 0, 0, 0.85);
    cursor: pointer; /* Change cursor to indicate the background is clickable */
}

.modal-content {
    cursor: default; /* Reset cursor for content */
}

/* Add a subtle animation for the modal opening */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.gallery-modal {
    animation: fadeIn 0.3s ease;
}

/* Responsive styles for the gallery modal */
@media (max-width: 768px) {
    .modal-image-container {
        height: 60vh;
    }
    
    .nav-button {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .prev-button {
        left: 10px;
    }
    
    .next-button {
        right: 10px;
    }
}
