/* RESERVATION HERO - SAME AS MENU */
.reservation-hero {
    background: linear-gradient(135deg, var(--bottle-green) 0%, var(--hunter-green) 100%);
    color: var(--cream);
    padding: 150px 0 30px 0;
    text-align: center;
    margin-bottom: 3rem;
}

.reservation-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.reservation-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 0;
}

/* BACKGROUND COLORS - DARK GRAY & BLACK WITH GOLD ACCENTS */
.reservation-container {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #2d2d2d 100%);
    min-height: 100vh;
}

.reservation-info-card {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 2px solid rgba(212, 175, 55, 0.4);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.info-icon {
    font-size: 1.5rem;
    color: #d4af37;
    background: rgba(212, 175, 55, 0.15);
    padding: 0.75rem;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.info-content {
    display: flex;
    flex-direction: column;
}

.info-label {
    font-size: 0.9rem;
    color: #b8b8b8;
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.info-value {
    font-size: 1.1rem;
    color: #f5f5dc;
    font-weight: 600;
}

/* SELECTION CARDS */
.selection-card {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-radius: 16px;
    margin-bottom: 2rem;
    border: 2px solid rgba(212, 175, 55, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.card-header {
    background: rgba(212, 175, 55, 0.15);
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.card-title {
    color: #f5f5dc;
    font-size: 1.3rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.card-body {
    padding: 2rem;
}

/* GUEST SELECTOR - PERFEKTNO BALANSIRANO */
.guest-selector {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.75rem;
    max-width: 580px;
    margin: 0 auto;
}

.guest-btn {
    background: linear-gradient(135deg, #2d2d2d 0%, #3d3d3d 100%);
    border: 2px solid rgba(212, 175, 55, 0.5);
    border-radius: 10px;
    padding: 0.85rem 0.4rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #f5f5dc;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 62px;
}

    .guest-btn:hover {
        background: linear-gradient(135deg, #3d3d3d 0%, #4d4d4d 100%);
        border-color: #d4af37;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
    }

    .guest-btn.active {
        background: linear-gradient(135deg, #d4af37 0%, #b5860b 100%);
        color: #1a1a1a;
        border-color: #d4af37;
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(212, 175, 55, 0.5);
    }

.guest-number {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.15rem;
    line-height: 1;
}

.guest-label {
    font-size: 0.72rem;
    opacity: 0.9;
    font-weight: 500;
}

/* POSEBNI STIL ZA 6+ BUTTON */
.guest-btn[data-guests="9"] .guest-number {
    font-size: 1.15rem;
}

/* MAP STYLES */
.map-legend {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

    .legend-color.available {
        background: #28a745;
    }

    .legend-color.selected {
        background: #007bff;
    }

    .legend-color.occupied {
        background: #dc3545;
    }

.legend-text {
    color: #f5f5dc;
    font-size: 0.9rem;
    font-weight: 500;
}

/* MAP CONTAINER */
.map-container {
    position: relative;
    border: 2px solid rgba(212, 175, 55, 0.5);
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(135deg, #2d2d2d 0%, #3d3d3d 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 600px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.map-wrapper {
    position: relative;
    display: inline-block;
    text-align: center;
    max-width: 100%;
}

.map-image {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    border-radius: 8px;
    object-fit: contain;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.image-map {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* MAP AREAS */
.map-area {
    position: absolute;
    background-color: rgba(40, 167, 69, 0.3);
    border: 2px solid rgba(40, 167, 69, 0.8);
    border-radius: 6px;
    transition: all 0.3s ease;
    cursor: pointer;
}

    .map-area:hover {
        background-color: rgba(40, 167, 69, 0.5);
        transform: scale(1.05);
        box-shadow: 0 5px 15px rgba(40, 167, 69, 0.4);
    }

    .map-area.selected {
        background-color: rgba(0, 123, 255, 0.5) !important;
        border-color: rgba(0, 123, 255, 1) !important;
        box-shadow: 0 0 20px rgba(0, 123, 255, 0.5);
        z-index: 10;
    }

    .map-area.occupied {
        background-color: rgba(220, 53, 69, 0.3) !important;
        border-color: rgba(220, 53, 69, 0.8) !important;
        cursor: not-allowed;
    }

        .map-area.occupied:hover {
            background-color: rgba(220, 53, 69, 0.4) !important;
            transform: none;
            box-shadow: none;
        }

.area-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
    pointer-events: none;
    font-size: 12px;
    background: rgba(0,0,0,0.7);
    padding: 2px 6px;
    border-radius: 4px;
}

/* CONFIRMATION CARD */
.confirmation-card {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-radius: 16px;
    border: 2px solid #d4af37;
    overflow: hidden;
    margin-top: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.confirmation-header {
    background: linear-gradient(135deg, #d4af37 0%, #b5860b 100%);
    padding: 1.5rem 2rem;
    text-align: center;
}

.confirmation-icon {
    font-size: 2rem;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.confirmation-title {
    color: #1a1a1a;
    font-size: 1.5rem;
    margin: 0;
    font-weight: 700;
}

.confirmation-body {
    padding: 2rem;
}

.btn-confirm {
    background: linear-gradient(135deg, #d4af37 0%, #b5860b 100%);
    color: #1a1a1a;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

    .btn-confirm:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(212, 175, 55, 0.5);
    }

/* RESPONSIVE DESIGN - COMPLETE VERSION */

/* LARGE DESKTOP */
@media (min-width: 1200px) {
    .guest-selector {
        max-width: 520px;
        gap: 0.7rem;
    }

    .guest-btn {
        min-height: 58px;
        padding: 0.8rem 0.3rem;
    }
}

/* STANDARD DESKTOP */
@media (min-width: 1024px) {
    .guest-selector {
        grid-template-columns: repeat(7, 1fr);
    }
}

/* TABLET */
@media (max-width: 1023px) and (min-width: 769px) {
    .guest-selector {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.6rem;
        max-width: 380px;
    }

    .guest-btn {
        padding: 0.75rem 0.25rem;
        min-height: 58px;
    }

    .reservation-hero {
        padding: 120px 0 40px 0;
    }

    .reservation-title {
        font-size: 1.8rem;
    }

    .card-body {
        padding: 1.5rem;
    }
}

/* MOBILE */
@media (max-width: 768px) {
    .reservation-hero {
        padding: 100px 0 30px 0;
    }

    .reservation-title {
        font-size: 1.6rem;
    }

    .reservation-subtitle {
        font-size: 1rem;
    }

    .info-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .reservation-info-card {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    /* GUEST SELECTOR MOBILE */
    .guest-selector {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.5rem;
        max-width: 100%;
    }

    .guest-btn {
        padding: 0.65rem 0.15rem;
        min-height: 52px;
        border-radius: 8px;
    }

    .guest-number {
        font-size: 1.1rem;
    }

    .guest-label {
        font-size: 0.65rem;
    }
    /* MAP CONTAINER MOBILE */
    .map-container {
        min-height: 500px;
        margin: 0 -0.5rem;
        border-radius: 8px;
    }

    .card-body {
        padding: 1.5rem 0.5rem;
    }

    .card-header {
        padding: 1rem 1.5rem;
    }

    .card-title {
        font-size: 1.1rem;
    }
    /* HORIZONTAL SCROLLING FOR WIDE MAPS */
    .map-wrapper {
        overflow-x: auto;
        overflow-y: hidden;
        max-width: 100vw;
        padding: 0.5rem;
    }

    .map-image {
        max-width: none;
        height: 400px;
        width: auto;
    }
    /* BETTER TOUCH TARGETS */
    .map-area {
        min-width: 40px;
        min-height: 40px;
        border-width: 2.5px;
    }

    .area-label {
        font-size: 10px;
        font-weight: 700;
        background: rgba(0,0,0,0.8);
        padding: 3px 6px;
        border-radius: 4px;
    }
    /* SCROLL INDICATOR */
    .map-wrapper {
        background: linear-gradient(90deg, transparent 95%, rgba(212, 175, 55, 0.3) 100%);
    }

        .map-wrapper::-webkit-scrollbar {
            height: 5px;
        }

        .map-wrapper::-webkit-scrollbar-track {
            background: rgba(212, 175, 55, 0.1);
            border-radius: 3px;
        }

        .map-wrapper::-webkit-scrollbar-thumb {
            background: rgba(212, 175, 55, 0.4);
            border-radius: 3px;
        }
    /* LEGEND MOBILE */
    .map-legend {
        gap: 1rem;
        margin-bottom: 1.5rem;
    }

    .legend-item {
        gap: 0.5rem;
    }

    .legend-text {
        font-size: 0.8rem;
    }
    /* CONFIRMATION CARD MOBILE */
    .confirmation-card {
        margin-top: 1.5rem;
    }

    .confirmation-body {
        padding: 1.5rem;
    }
}

/* SMALL MOBILE */
@media (max-width: 480px) {
    .reservation-hero {
        padding: 90px 0 25px 0;
    }

    .reservation-title {
        font-size: 1.4rem;
    }

    .reservation-subtitle {
        font-size: 0.9rem;
    }

    .guest-selector {
        gap: 0.4rem;
        padding: 0 0.5rem;
    }

    .guest-btn {
        padding: 0.55rem 0.1rem;
        min-height: 48px;
        border-radius: 6px;
    }

    .guest-number {
        font-size: 1rem;
    }

    .guest-label {
        font-size: 0.6rem;
    }

    .reservation-info-card {
        padding: 1.25rem;
        border-radius: 12px;
    }

    .info-item {
        gap: 0.75rem;
    }

    .info-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .map-container {
        min-height: 450px;
        margin: 0 -0.25rem;
    }

    .map-image {
        height: 350px;
    }

    .map-area {
        min-width: 35px;
        min-height: 35px;
    }

    .area-label {
        font-size: 9px;
        padding: 2px 4px;
    }

    .card-body {
        padding: 1rem 0.25rem;
    }

    .card-header {
        padding: 0.75rem 1rem;
    }

    .confirmation-header {
        padding: 1rem 1.5rem;
    }

    .confirmation-body {
        padding: 1.25rem;
    }

    .btn-confirm {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
}

/* EXTRA SMALL MOBILE */
@media (max-width: 375px) {
    .guest-selector {
        gap: 0.3rem;
        padding: 0 0.25rem;
    }

    .guest-btn {
        min-height: 44px;
        padding: 0.45rem 0.05rem;
    }

    .guest-number {
        font-size: 0.95rem;
    }

    .guest-label {
        font-size: 0.55rem;
    }

    .map-container {
        min-height: 400px;
    }

    .map-image {
        height: 320px;
    }

    .reservation-hero {
        padding: 80px 0 20px 0;
    }

    .reservation-title {
        font-size: 1.3rem;
    }
}

/* LANDSCAPE MODE */
@media (max-width: 768px) and (orientation: landscape) {
    .guest-selector {
        grid-template-columns: repeat(7, 1fr);
        gap: 0.4rem;
        max-width: 100%;
    }

    .guest-btn {
        min-height: 40px;
        padding: 0.4rem 0.1rem;
    }

    .guest-number {
        font-size: 0.9rem;
    }

    .guest-label {
        font-size: 0.6rem;
    }

    .map-container {
        min-height: 300px;
        max-height: 60vh;
    }

    .map-image {
        height: 250px;
    }

    .area-label {
        font-size: 8px;
        padding: 1px 3px;
    }

    .reservation-hero {
        padding: 100px 0 20px 0;
    }
}

/* ANIMATIONS */
@keyframes pulse-guest-balanced {
    0% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.4);
    }

    70% {
        box-shadow: 0 0 0 4px rgba(212, 175, 55, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0);
    }
}

.guest-btn.active {
    animation: pulse-guest-balanced 0.7s ease-in-out;
}

/* BETTER TOUCH FEEDBACK FOR MOBILE */
.map-area:active {
    transform: scale(1.1);
    transition: transform 0.1s ease;
    box-shadow: 0 0 15px rgba(0, 123, 255, 0.6);
    z-index: 100;
}

/* ACCESSIBILITY */
.guest-btn:focus {
    outline: 2px solid #d4af37;
    outline-offset: 2px;
}

.btn-confirm:focus {
    outline: 2px solid #1a1a1a;
    outline-offset: 2px;
}

.map-area:focus {
    outline: 2px solid rgba(0, 123, 255, 0.8);
    outline-offset: 2px;
}

/* SMOOTH SCROLLING FOR MAP */
.map-wrapper {
    scroll-behavior: smooth;
}

/* LOADING STATES */
.guest-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.map-area.disabled {
    background-color: rgba(108, 117, 125, 0.3) !important;
    border-color: rgba(108, 117, 125, 0.5) !important;
    cursor: not-allowed;
    opacity: 0.5;
}

    .map-area.disabled:hover {
        transform: none;
        box-shadow: none;
        background-color: rgba(108, 117, 125, 0.3) !important;
    }

/* PRINT STYLES */
@media print {
    .reservation-hero {
        background: #1a1a1a !important;
        color: #000 !important;
    }

    .btn-confirm,
    .guest-btn {
        background: #f0f0f0 !important;
        color: #000 !important;
        border: 1px solid #000 !important;
    }

    .map-container {
        border: 1px solid #000 !important;
    }
}

/* HIGH CONTRAST MODE SUPPORT */
@media (prefers-contrast: high) {
    .guest-btn {
        border-width: 3px;
    }

    .map-area {
        border-width: 3px;
    }

    .legend-color {
        border-width: 2px;
    }
}

/* REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
    .guest-btn,
    .map-area,
    .btn-confirm {
        transition: none;
    }

        .guest-btn.active {
            animation: none;
        }

        .map-area:hover {
            transform: none;
        }
}