/* photographer.css */

.logo a {
    text-decoration: none;
}

.photographer-header {
    text-align: center;
    padding: 3rem 2rem 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.photographer-header h1 {
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.ph-bio-text {
    color: var(--secondary-color);
    font-size: 1.1rem;
}

.slideshow-section {
    max-width: 1200px;
    margin: 0 auto 3rem;
    padding: 0 5%;
}

.hero-slide-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background-color: #eaddd3;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(75, 71, 68, 0.1);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-bg {
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    background-size: cover;
    background-position: center;
    filter: blur(25px) brightness(0.85);
    opacity: 0.8;
    z-index: 1;
    transition: opacity 0.4s ease-in-out, background-image 0.4s ease-in-out;
}

.hero-slide-container img {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    object-fit: contain; /* Changed to contain to show full image without cropping */
    transition: opacity 0.4s ease-in-out;
    cursor: pointer;
}

.hero-loading {
    opacity: 0.5;
}

.slide-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.7);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    user-select: none;
    backdrop-filter: blur(4px);
    z-index: 10;
}

.slide-nav:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-50%) scale(1.1);
}

.slide-nav.prev {
    left: 20px;
}

.slide-nav.next {
    right: 20px;
}

/* Thumbnails */
.thumbnails-container {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 10px 5px;
    scrollbar-width: thin;
    scrollbar-color: var(--secondary-color) transparent;
}

.thumbnails-container::-webkit-scrollbar {
    height: 6px;
}

.thumbnails-container::-webkit-scrollbar-thumb {
    background-color: var(--secondary-color);
    border-radius: 10px;
}

.thumbnail-wrap {
    flex: 0 0 120px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.5;
    transition: var(--transition);
    border: 2px solid transparent;
}

.thumbnail-wrap:hover {
    opacity: 0.8;
}

.thumbnail-wrap.active {
    opacity: 1;
    border-color: var(--primary-color);
    transform: scale(1.05);
}

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

/* Packages Section */
.packages-section {
    max-width: 1100px;
    margin: 0 auto 3rem;
    padding: 0 5%;
}

.packages-section .section-container {
    background: #fbf9f7;
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid rgba(75, 71, 68, 0.05);
    text-align: center;
}

.packages-section h2 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.package-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 2rem;
}

.package-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(75, 71, 68, 0.05);
    border: 1px solid rgba(75, 71, 68, 0.03);
    transition: transform 0.3s ease;
}

.package-card:hover {
    transform: translateY(-5px);
}

.package-card h3 {
    font-size: 1rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.package-card .price {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
}

.package-card .price small {
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--secondary-color);
}

.notice-box {
    padding: 2rem;
    background: #fdfaf4;
    border-left: 4px solid var(--primary-color);
    border-radius: 12px;
    text-align: left;
    margin-top: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.notice-box h3 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.notice-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.notice-box li {
    margin-bottom: 1rem;
    color: var(--secondary-color);
    font-size: 0.95rem;
    line-height: 1.5;
    position: relative;
    padding-left: 1.5rem;
}

.notice-box li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.notice-box li:last-child {
    margin-bottom: 0;
}

/* Modal Notice */
.modal-notice {
    background: #fef8f4;
    padding: 1.2rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border-left: 4px solid #d4a373;
    text-align: left;
}

.modal-notice p {
    margin: 0 0 5px 0;
    font-size: 0.95rem;
    color: #5c4033;
}

.modal-notice p.small {
    font-size: 0.8rem;
    color: #8c7b70;
    margin-bottom: 0;
}

.booking-section {
    max-width: 600px;
    margin: 0 auto 5rem;
    padding: 0 5%;
}

.booking-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 2.5rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    border: 1px solid rgba(75, 71, 68, 0.08);
}

.booking-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.booking-card .contact-info {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.booking-btn {
    margin-top: 1rem;
    max-width: 300px;
}

@media (max-width: 768px) {
    .photographer-header h1 {
        font-size: 2.2rem;
    }
    .thumbnail-wrap {
        flex: 0 0 80px;
        height: 60px;
    }
    .slide-nav {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0,0,0,0.9);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    animation: zoom 0.3s ease;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    z-index: 1001;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

@keyframes zoom {
    from {transform: scale(0.9)} 
    to {transform: scale(1)}
}

/* Calendar & Reservation Section */
.calendar-section {
    max-width: 1000px;
    margin: 0 auto 5rem;
    padding: 0 5%;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(75, 71, 68, 0.1);
    flex-wrap: wrap;
    gap: 1.5rem;
}

@media (max-width: 600px) {
    .calendar-header {
        flex-direction: column;
        text-align: center;
    }
}

.calendar-header h2 {
    font-size: 1.8rem;
    margin: 0;
    font-weight: 600;
}

.cal-controls {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: #f1f3f4;
    padding: 6px 12px;
    border-radius: 30px;
}

.calendar-header h3 {
    color: #3c4043;
    font-weight: 500;
    font-size: 1.1rem;
    margin: 0;
    min-width: 130px;
    text-align: center;
}

.cal-nav {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: #5f6368;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cal-nav:hover {
    background: rgba(60, 64, 67, 0.1);
    color: #202124;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    border-top: 1px solid #ddd;
    border-left: 1px solid #ddd;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.cal-weekday-header {
    padding: 12px;
    background: #f8f9fa;
    text-align: center;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--secondary-color);
    border-right: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cal-day-cell {
    min-height: 120px;
    padding: 8px;
    border-right: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    position: relative;
    background: white;
    transition: background 0.2s;
}

.cal-day-cell.other-month {
    background: #fafafa;
}

.cal-day-cell.today {
    background: #fdfaf4;
}

.cal-day-num {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #444;
}

.cal-day-cell.today .cal-day-num {
    color: #d4a373;
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
}

.cal-day-slots {
    display: flex;
    flex-direction: column;
    height: calc(100% - 25px); /* Subtract day num height */
}

.slot-btn {
    flex: 1;
    border: none;
    cursor: pointer;
    transition: transform 0.1s, opacity 0.2s;
    min-height: 42px;
    position: relative;
    border-radius: 4px;
    margin: 1px 0;
}

.slot-btn::after {
    content: attr(data-slot);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.7rem;
    opacity: 0.6;
    transition: opacity 0.2s;
    pointer-events: none;
    color: white;
    font-weight: 500;
}

.slot-btn:hover::after {
    opacity: 1;
}

.slot-btn:hover:not(:disabled) {
    filter: brightness(1.1);
    transform: scale(1.02);
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.slot-available {
    background: #4A90E2; /* Solid Blue for available */
}

.slot-reserved {
    background: #E35D5D; /* Solid Red for reserved */
}

.slot-unavailable {
    background: #e0e0e0;
}

.slot-btn:disabled {
    cursor: default;
}

.cal-day-cell .cal-day-num {
    margin-bottom: 4px;
}

@media (max-width: 768px) {
    .cal-day-cell {
        min-height: 90px;
        padding: 2px;
    }
    .slot-btn {
        min-height: 30px;
    }
}

/* Modal Form Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
    animation: fadeIn 0.3s;
}

.modal-content {
    background-color: var(--card-bg);
    padding: 1.5rem;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: var(--secondary-color);
    cursor: pointer;
    line-height: 1;
}

.modal-close:hover {
    color: var(--primary-color);
}

.modal h2 {
    margin-bottom: 0.5rem;
}

.booking-slot-info {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-weight: 500;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

.form-group {
    margin-bottom: 1rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid rgba(75, 71, 68, 0.2);
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
    background-color: white;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.btn-submit {
    margin-top: 1rem;
}

@media (max-width: 900px) {
    .cal-day-cell {
        min-height: 80px;
        padding: 4px;
    }
    .cal-day-num {
        font-size: 0.75rem;
    }
    .slot-btn {
        min-height: 28px;
    }
}

/* Calendar Legend */
.calendar-legend {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #cbd5e1;
}

.legend-box {
    width: 14px;
    height: 14px;
    border-radius: 4px;
}

.legend-box.available { background: #3b82f6; } /* Blue */
.legend-box.reserved { background: #ef4444; }  /* Red */
.legend-box.unavailable { background: #475569; } /* Grey */

/* Session Times Info */
.session-times-info {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    margin-bottom: 0.5rem;
    padding: 1.25rem;
    background: #f8fafc; /* Very Light Grey */
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    flex-wrap: wrap;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.session-time {
    font-size: 0.95rem;
    color: #334155; /* Dark Slate */
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.time-label {
    font-weight: 600;
    color: #3b82f6;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

@media (max-width: 600px) {
    .calendar-legend, .session-times-info {
        gap: 1rem;
        justify-content: flex-start;
    }
    .session-times-info {
        flex-direction: column;
        gap: 0.75rem;
    }
    .calendar-section {
        padding: 0 2%;
    }
    .cal-day-cell {
        min-height: 60px;
        padding: 2px;
    }
    .cal-weekday-header {
        padding: 6px;
        font-size: 0.65rem;
    }
    .slot-btn {
        min-height: 22px;
        margin: 0;
    }
    
    .modal-content {
        padding: 1rem;
    }
    
    .booking-slot-info {
        margin-bottom: 0.8rem;
        font-size: 0.9rem;
    }
    
    .form-group {
        margin-bottom: 0.8rem;
    }
    
    .form-group label {
        margin-bottom: 0.3rem;
        font-size: 0.85rem;
    }
    
    .form-group input,
    .form-group select {
        padding: 8px;
    }
    
    .modal-notice {
        padding: 0.8rem;
        margin-bottom: 1rem;
    }
    
    .modal-notice p {
        font-size: 0.85rem;
    }
}
