/* ===== Gallery Section Enhancements ===== */
/* التحسينات المضافة لقسم الصور مع الألوان والأنيميشن المحسّنة */

/* الخلفية المحسّنة */
.gallery-section {
    max-width: 1200px;
    margin: 0 auto;
    background: linear-gradient(135deg, var(--sand) 0%, var(--cream) 50%, rgba(212, 168, 67, 0.08) 100%);
    padding: 60px 30px;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(212, 168, 67, 0.15);
    border: 1px solid rgba(212, 168, 67, 0.2);
}

/* عنوان محسّن بتدرج ذهبي */
.section-title {
    text-align: center;
    margin-bottom: 40px;
    color: var(--deep-blue);
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, var(--deep-blue) 0%, var(--gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.section-title i {
    color: var(--gold-light);
}

/* بطاقات الصور محسّنة */
.image-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(212, 168, 67, 0.12);
    border: 1px solid rgba(212, 168, 67, 0.1);
    animation: fadeInUp 0.8s ease-out both;
    cursor: pointer;
    position: relative;
}

/* Hover effect محسّن */
.image-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 16px 40px rgba(212, 168, 67, 0.25);
    border-color: rgba(212, 168, 67, 0.3);
}

/* Focus effect جديد (للوصول من لوحة المفاتيح) */
.image-card:focus-within {
    outline: none;
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 16px 40px rgba(212, 168, 67, 0.25), 0 0 0 3px rgba(212, 168, 67, 0.3);
    border-color: var(--gold);
}

/* الصورة محسّنة */
.image-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.image-card:hover img,
.image-card:focus-within img {
    transform: scale(1.08);
}

/* الـ Caption محسّن بتدرج ذهبي */
.image-caption {
    padding: 18px 15px;
    text-align: center;
    font-weight: 600;
    font-size: 1rem;
    color: var(--deep-blue);
    background: linear-gradient(135deg, var(--sand-dark) 0%, rgba(212, 168, 67, 0.08) 100%);
    border-top: 2px solid var(--gold);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.3px;
}

/* تغيير لون الخلفية عند الوقوف بالماوس على الكارد */
.image-card:hover .image-caption,
.image-card:focus-within .image-caption {
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--sand-dark) 100%);
    color: var(--deep-blue);
    border-top-color: var(--warm-brown);
}

/* ===== Modal Enhancements ===== */
/* شبكة عرض الصور (كل اثنين في سطر) */
.image-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}


/* Modal خلفية محسّنة */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(26, 58, 74, 0.92);
    overflow: auto;
    animation: fadeIn 0.4s ease;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* محتوى Modal محسّن */
.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(212, 168, 67, 0.4);
    border: 2px solid rgba(212, 168, 67, 0.2);
    animation: modalZoomIn 0.4s ease;
}


/* أنيميشن تكبير الصورة */
@keyframes modalZoomIn {
    from {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0;
    }
    to {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

/* زر الإغلاق محسّن */
.close {
    position: fixed;
    top: 30px;
    right: 40px;
    color: var(--gold);
    font-size: 40px;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
    z-index: 10000;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(212, 168, 67, 0.15);
    border: 2px solid var(--gold);
}

.close:hover {
    color: var(--white);
    background: rgba(212, 168, 67, 0.3);
    transform: scale(1.1) rotate(90deg);
}

/* Responsive للموبايل */
@media (max-width: 768px) {
    .gallery-section {
        padding: 40px 20px;
    }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 30px;
    }

    .image-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .image-card img {
        height: 250px;
    }

    .modal-content {
        max-width: 95%;
        max-height: 80%;
        border-radius: 12px;
    }

    .close {
        top: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
        font-size: 32px;
    }
}

/* للملف الشخصي للااصدقاء*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #fefaf5;
    color: #2c241a;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

/* header */
.hero {
    text-align: center;
    margin-bottom: 3rem;
}
.hero h1 {
    font-size: 2.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #c97e3a, #dba259);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    letter-spacing: -0.5px;
}
.hero p {
    font-size: 1.15rem;
    color: #7a5a3e;
    max-width: 620px;
    margin: 0.5rem auto 0;
    font-weight: 500;
}
.badge-location {
    display: inline-block;
    background: #f0e2d2;
    padding: 6px 16px;
    border-radius: 40px;
    font-size: 0.8rem;
    margin-top: 1rem;
    color: #b45f2b;
}

/* grid */
.guides-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* card design */
.guide-card {
    background: white;
    border-radius: 2rem;
    overflow: hidden;
    box-shadow: 0 18px 35px -12px rgba(0,0,0,0.08);
    transition: all 0.25s ease;
    border: 1px solid #f2e1ce;
}
.guide-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 28px 40px -12px rgba(0,0,0,0.15);
    border-color: #e7caa8;
}

.card-img {
    position: relative;
    height: 240px;
    background: #e7d9cc;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}
.guide-card:hover .card-img img {
    transform: scale(1.03);
}
.verified-tag {
    position: absolute;
    top: 14px;
    left: 14px;
    background: #1f7233;
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 40px;
    display: flex;
    align-items: center;
    gap: 6px;
    backdrop-filter: blur(2px);
    background-color: rgba(27, 94, 44, 0.92);
    z-index: 2;
}

.card-content {
    padding: 1.2rem 1.2rem 1.5rem;
}
.guide-name {
    font-size: 1.6rem;
    font-weight: 800;
    color: #3f2b19;
    letter-spacing: -0.3px;
}
.guide-degree {
    font-size: 0.75rem;
    font-weight: 500;
    color: #b48652;
    margin: 5px 0 10px 0;
    border-left: 3px solid #f1cb9b;
    padding-left: 8px;
}
.hobbies-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0;
}
.hobby-tag {
    background: #f8efE5;
    padding: 4px 10px;
    border-radius: 24px;
    font-size: 0.7rem;
    font-weight: 500;
    color: #996f44;
}
.lang-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 12px 0;
}
.lang {
    font-size: 0.75rem;
    background: #f2e5d8;
    padding: 4px 12px;
    border-radius: 50px;
    font-weight: 600;
}
.rating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0 6px;
}
.stars {
    color: #f5b342;
    letter-spacing: 2px;
}
.price {
    font-size: 1.5rem;
    font-weight: 800;
    color: #c46626;
    margin: 8px 0 5px;
}
.price small {
    font-size: 0.7rem;
    font-weight: 500;
    color: #8f6a42;
}
.card-buttons {
    display: flex;
    gap: 12px;
    margin-top: 18px;
}
.btn {
    flex: 1;
    border: none;
    padding: 10px 0;
    border-radius: 60px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.85rem;
}
.btn-profile {
    background: #efe2d4;
    color: #a56e3e;
    border: 1px solid #e6cfb6;
}
.btn-profile:hover {
    background: #e7d5c2;
}
.btn-booking {
    background: #cb7b3c;
    color: white;
    box-shadow: 0 3px 8px rgba(203,123,60,0.2);
}
.btn-booking:hover {
    background: #b56228;
}

/* modal styling */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(5px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transition: all 0.2s ease;
}
.modal-overlay.active {
    visibility: visible;
    opacity: 1;
}
.modal-container {
    background: #fffef9;
    max-width: 600px;
    width: 90%;
    border-radius: 1.8rem;
    padding: 1.5rem;
    box-shadow: 0 30px 50px rgba(0,0,0,0.3);
    max-height: 85vh;
    overflow-y: auto;
    transform: scale(0.96);
    transition: transform 0.2s;
}
.modal-overlay.active .modal-container {
    transform: scale(1);
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #f2dfce;
    padding-bottom: 10px;
    margin-bottom: 20px;
}
.modal-header h3 {
    font-size: 1.5rem;
    color: #6b4220;
}
.close-modal {
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #b88654;
}
.profile-img-lg {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 12px;
    border: 3px solid #e7bc87;
}
.detail-row {
    margin: 14px 0;
    border-bottom: 1px dashed #f0decb;
    padding-bottom: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.detail-label {
    font-weight: 800;
    width: 115px;
    color: #bc6f3a;
}
.hobbies-full {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 5px;
}
.booking-form input, .booking-form textarea {
    width: 100%;
    padding: 12px;
    margin: 8px 0;
    border-radius: 32px;
    border: 1px solid #eddabc;
    background: #fef8f2;
    font-family: 'Inter', sans-serif;
}
.confirm-booking {
    background: #cb7b3c;
    color: white;
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 40px;
    font-weight: bold;
    margin-top: 10px;
    cursor: pointer;
}

@media (max-width: 680px) {
    body { padding: 1rem; }
    .hero h1 { font-size: 2rem; }
    .guide-name { font-size: 1.3rem; }
}