/* Design Variables */
:root {
    --bg-color: #f4f4f7;
    --card-bg: #231c36;
    --card-bg-hover: #31274c;
    --text-primary: #ffffff;
    --text-secondary: #c2bbd4;
    --accent-gold: #dfba6b;
    --dark-text: #1a1526;
    --muted-dark: #635c75;
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-family: 'Cairo', sans-serif;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 24px rgba(35, 28, 54, 0.15);
}

/* Global resets */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-family);
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-color);
    background-image: radial-gradient(circle at top, #fcfcfd 0%, #f4f4f7 100%);
    color: var(--dark-text);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    padding: 30px 16px;
    direction: rtl;
}

/* Main Mobile-first container */
.container {
    width: 100%;
    max-width: 480px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #ffffff;
    border-radius: 32px;
    padding: 40px 24px;
    box-shadow: 0 10px 30px rgba(35, 28, 54, 0.04);
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

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


/* Header styling */
.profile-header {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 24px;
}

/* Logo container & logo */
.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 16px;
}

.logo {
    width: 220px;
    height: auto;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.logo-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 8px;
}

.logo-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark-text);
    letter-spacing: 0.5px;
}

.logo-subtitle {
    font-size: 0.75rem;
    color: var(--muted-dark);
    margin-top: -2px;
}

/* Page titles */
.main-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--dark-text);
    margin-bottom: 8px;
    line-height: 1.3;
}

.location-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: #f0ecf9;
    color: #4a3e6d;
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.icon-location {
    fill: #4a3e6d;
}

.bio-text {
    font-size: 0.95rem;
    color: var(--muted-dark);
    line-height: 1.5;
    margin-bottom: 20px;
    max-width: 90%;
}

/* Social icons quick access row */
.social-icons-row {
    display: flex;
    justify-content: center;
    gap: 16px;
    width: 100%;
}

.social-icons-row a {
    color: var(--dark-text);
    background-color: #f4f4f7;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
    text-decoration: none;
}

.social-icons-row a svg {
    width: 20px;
    height: 20px;
}

.social-icons-row a:hover {
    background-color: var(--accent-gold);
    color: #ffffff;
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(223, 186, 107, 0.3);
}

/* Gallery Showcase styling */
.gallery-section {
    width: 100%;
    margin-bottom: 28px;
}

.gallery-wrapper {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

.gallery-slide {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    background-color: #eaeaf0;
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-slide:hover .gallery-img {
    transform: scale(1.05);
}

/* Links and Buttons section */
.links-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.section-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--muted-dark);
    margin-top: 14px;
    margin-bottom: 4px;
    padding-right: 6px;
    border-right: 3px solid var(--accent-gold);
}

/* Default Link Button */
.link-btn {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 60px;
    background-color: var(--card-bg);
    color: var(--text-primary);
    border-radius: var(--border-radius);
    padding: 12px 18px;
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid rgba(255,255,255,0.05);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.link-btn:hover {
    background-color: var(--card-bg-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* Icon prefix wrapper inside button */
.btn-icon-wrapper {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: 14px;
    flex-shrink: 0;
    transition: var(--transition);
}

.link-btn:hover .btn-icon-wrapper {
    background-color: var(--accent-gold);
    color: var(--card-bg);
}

.btn-icon {
    width: 18px;
    height: 18px;
}

/* Text on button */
.btn-text {
    flex-grow: 1;
    font-size: 0.95rem;
    font-weight: 600;
    text-align: right;
}

/* Arrow indicator on the left side of button (since RTL, arrow is on left) */
.btn-arrow {
    width: 16px;
    height: 16px;
    opacity: 0.5;
    margin-right: auto;
    transition: var(--transition);
    transform: scaleX(-1); /* flip for RTL direction */
}

.link-btn:hover .btn-arrow {
    opacity: 1;
    color: var(--accent-gold);
    transform: scaleX(-1) translateX(4px);
}

/* Primary reservation button accent */
.primary-btn {
    border: 1.5px solid var(--accent-gold);
    background: linear-gradient(135deg, var(--card-bg) 0%, #2f2549 100%);
}

.primary-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 20%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.15) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    animation: shine 4s infinite ease-in-out;
}

@keyframes shine {
    0% { left: -50%; }
    100% { left: 150%; }
}

/* Location Card design */
.location-card {
    min-height: 80px;
    padding: 14px 18px;
}

.card-thumb {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: 14px;
    flex-shrink: 0;
    color: var(--accent-gold);
}

.card-thumb svg {
    width: 22px;
    height: 22px;
}

.card-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex-grow: 1;
    text-align: right;
}

.card-title {
    font-size: 0.95rem;
    font-weight: 700;
}

.card-desc {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.stars {
    color: var(--accent-gold);
    font-size: 0.7rem;
    letter-spacing: 1px;
}

/* Social link button variations */
.social-btn {
    border-left: 4px solid var(--accent-gold);
}

/* TapLink Footer Link style */
.footer-link {
    background-color: #171324;
    border: 1px dashed rgba(255,255,255,0.1);
    margin-top: 10px;
}

.bio-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    color: #000000;
    padding: 2px 8px;
    border-radius: 4px;
    font-family: Arial, sans-serif;
    font-weight: 900;
    font-size: 0.65rem;
    line-height: 1;
    margin-left: 14px;
    width: 44px;
    height: 38px;
    flex-shrink: 0;
}

.brand-top {
    font-size: 0.7rem;
    font-weight: 800;
}

.brand-bottom {
    font-size: 0.6rem;
    font-weight: 900;
}

/* Page footer */
.page-footer {
    width: 100%;
    text-align: center;
    margin-top: 32px;
    border-top: 1px solid #eaeaf0;
    padding-top: 16px;
}

.page-footer p {
    font-size: 0.75rem;
    color: var(--muted-dark);
}

/* Responsive adjustment */
@media (max-width: 400px) {
    .container {
        padding: 20px 12px;
        border-radius: 16px;
    }
    .main-title {
        font-size: 1.4rem;
    }
}

/* Bottom Gallery Styling */
.bottom-gallery-section {
    width: 100%;
    margin-top: 14px;
    margin-bottom: 24px;
}

.bottom-gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    width: 100%;
}

.bottom-gallery-grid .gallery-item {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    background-color: #eaeaf0;
    transition: var(--transition);
}

.bottom-gallery-grid .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.bottom-gallery-grid .gallery-item:hover img {
    transform: scale(1.05);
}

