/* =========================================================
   DekaGratare – Public CSS v2.0
   ========================================================= */

/* ── MAP CONTAINER ── */
#deka-gratare-map-container {
    width: 100vw;
    height: 85vh;
    min-height: 550px;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    background-color: #e0e0e0;
}

/* ── INFOWINDOW ── */
.gm-style .gm-style-iw-c {
    padding: 0 !important;
    border-radius: 6px !important;
    overflow: hidden !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25) !important;
    max-width: 300px !important;
}

/* Remove default header row so image starts at very top */
.gm-style .gm-style-iw-chr {
    display: none !important;
}

.gm-style-iw-d {
    overflow: auto !important;
    max-height: none !important;
}

.gm-style .gm-style-iw-tc::after {
    background: #fff !important;
}

.deka-iw-container {
    width: 280px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #333;
}

.deka-iw-image {
    width: 100%;
    height: 160px;
    background-size: cover;
    background-position: center;
    background-color: #ddd;
}

.deka-iw-content {
    padding: 15px 18px 18px;
}

.deka-iw-title {
    margin: 0 0 6px 0 !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    color: #d11e3b !important;
    line-height: 1.3 !important;
}

.deka-iw-address {
    margin: 0 0 10px !important;
    font-size: 12px;
    color: #6688aa;
}

.deka-iw-schedule {
    font-size: 12px;
    color: #555;
    line-height: 1.7;
    margin-bottom: 0;
}

/* =========================================================
   SINGLE GRĂTAR PAGE
   ========================================================= */

.dg-single-wrap {
    max-width: 1100px;
    margin: 60px auto 80px;
    padding: 0 20px;
    font-family: "Ubuntu", Arial, sans-serif;
    color: #f1f1f1;
    line-height: 1.75;
}

/* ── Top: Image left + Text right ── */
.dg-top {
    display: flex;
    gap: 50px;
    margin-bottom: 50px;
}

.dg-top-left {
    width: 320px;
    flex-shrink: 0;
    position: relative;
}

.dg-image-frame {
    position: relative;
    padding: 30px 0 0 0;
}

.dg-image-frame::before {
    content: '';
    position: absolute;
    top: 0;
    left: 30px;
    width: 100%;
    height: 100%;
    border: 5px solid #d11e3b;
    z-index: 0;
    pointer-events: none;
}

.dg-image-frame img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: auto;
    display: block;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.dg-top-right {
    flex: 1;
    padding-top: 30px;
}

.dg-address {
    font-size: 16px;
    color: #d11e3b;
    font-weight: bold;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.dg-description {
    font-size: 16px;
    margin-bottom: 30px;
}

.dg-description p {
    margin-bottom: 18px;
}

/* ── Gallery grid 3×2 ── */
.dg-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 40px;
}

.dg-gallery img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 4px;
    display: block;
    cursor: pointer;
    transition: transform 0.2s;
}

.dg-gallery img:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* ── Lightbox Modal ── */
.dg-lightbox {
    display: none;
    position: fixed;
    z-index: 999999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
}

.dg-lightbox.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.dg-lightbox-content {
    max-width: 90%;
    max-height: 85vh;
    object-fit: contain;
    animation: dg-zoom 0.3s;
    user-select: none;
}

@keyframes dg-zoom {
    from {
        transform: scale(0.8)
    }

    to {
        transform: scale(1)
    }
}

.dg-lightbox-close {
    position: absolute;
    top: 25px;
    right: 35px;
    color: #f1f1f1;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2;
}

.dg-lightbox-prev,
.dg-lightbox-next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: 60px;
    height: 60px;
    margin-top: -30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    border-radius: 5px;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4);
    z-index: 2;
}

.dg-lightbox-prev {
    left: 20px;
}

.dg-lightbox-next {
    right: 20px;
}

.dg-lightbox-prev:hover,
.dg-lightbox-next:hover,
.dg-lightbox-close:hover {
    color: #d11e3b;
    background: rgba(0, 0, 0, 0.8);
}

/* ── Features 3 columns ── */
.dg-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px 20px;
    list-style: disc inside;
    padding: 0;
    margin: 0 0 50px;
    font-size: 15px;
    color: #f1f1f1;
}

.dg-features li {
    padding: 3px 0;
}

.dg-features li::marker {
    color: #d11e3b;
}

/* ── GRILA 4 COLOANE (Lista Gratare) ── */
.dg-grid-container {
    width: 100%;
    margin: 40px 0;
    font-family: inherit;
    /* will inherit Ubuntu from wrapper or body */
}

.dg-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.dg-grid-item {
    transition: transform 0.2s;
}

.dg-grid-item:hover {
    transform: translateY(-5px);
}

.dg-grid-item a {
    text-decoration: none !important;
}

.dg-grid-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    margin-bottom: 15px;
    border-radius: 4px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.dg-grid-placeholder {
    width: 100%;
    height: 180px;
    background: #444;
    border-radius: 4px;
    margin-bottom: 15px;
}

.dg-grid-title {
    font-family: "Oleo Script Swash Caps", cursive;
    font-size: 24px;
    font-weight: 700;
    color: #d11e3b;
    margin: 0 0 8px;
    line-height: 1.2;
}

.dg-grid-address {
    font-family: "Ubuntu", Arial, sans-serif;
    font-size: 15px;
    color: inherit;
    opacity: 0.85;
    margin: 0;
    line-height: 1.5;
}

.dg-btn-all:hover {
    background: #a1162d !important;
}

/* ── Schedule & Contact Side-by-Side ── */
.dg-schedule-contact {
    display: flex;
    gap: 40px;
    margin-bottom: 50px;
}

.dg-schedule-wrap,
.dg-contact-wrap {
    flex: 1;
}

/* ── Schedule table ── */
.dg-section-title {
    font-family: "Oleo Script Swash Caps", cursive;
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 25px;
    line-height: 1.2;
}

.dg-schedule {
    width: 100%;
    border-collapse: collapse;
}

.dg-schedule tr {
    border-bottom: 1px dashed #444;
}

.dg-schedule td {
    padding: 12px 0;
    font-size: 15px;
    color: #f1f1f1;
}

.dg-schedule td:first-child {
    font-weight: bold;
    color: #d11e3b;
    width: 40%;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.dg-schedule td:last-child {
    text-align: right;
}

/* ── Map on single page ── */
.dg-single-map {
    width: 100%;
    height: 350px;
    background: #e0e0e0;
    margin-bottom: 40px;
    border-radius: 6px;
    overflow: hidden;
}

/* ── Contact list (vertical) ── */
.dg-contact-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.dg-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    color: #f1f1f1;
    flex-wrap: wrap;
}

.dg-contact-icon {
    font-size: 18px;
    line-height: 1;
    flex-shrink: 0;
}

.dg-contact-item strong {
    color: #d11e3b;
    font-family: inherit;
    font-size: 15px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.dg-contact-item a {
    color: #f1f1f1;
    text-decoration: none;
    font-size: 16px;
}

.dg-contact-item a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* ── Responsive ── */
@media (max-width: 800px) {
    .dg-top {
        flex-direction: column;
    }

    .dg-top-left {
        width: 100%;
        max-width: 360px;
        margin: 0 auto;
    }

    .dg-gallery {
        grid-template-columns: 1fr 1fr;
    }

    .dg-features {
        grid-template-columns: 1fr 1fr;
    }

    .dg-schedule-contact {
        flex-direction: column;
        gap: 40px;
    }

    .dg-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 650px) {
    .dg-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .dg-gallery {
        grid-template-columns: 1fr;
    }

    .dg-features {
        grid-template-columns: 1fr;
    }
}