

.detail-page {
    min-height: 100vh;
}

.detail-hero {
    color: white;
    padding: 120px 0 45px;
    width: 100%;
    left: 0;
    right: 0;
    background: var(--detail-gradient);
}

.detail-hero .container {
    padding: 0 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.detail-title {
    font-size: 2.2rem;
    margin-bottom: 25px;
    font-family: 'Kumar One', serif;
    word-break: break-word;
    overflow-wrap: break-word;
    line-height: 1.2;
    letter-spacing: -0.5px;
    word-spacing: 0px;
    text-align: left;
    padding-top: 10px;
}

.detail-location {
    font-size: 1.2rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-align: left;
}

.detail-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1rem;
    text-align: left;
}

.rating-stars {
    color: #ffd700;
    font-size: 1.2rem;
}

.loader-wrapper {
    margin-top: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    height: 60px;
    width: 100%;
}

.packman {
    position: relative;
    display: inline-block;
    z-index: 2;
    margin-right: 8px;
}

.dots {
    display: inline-block;
    position: relative;
    z-index: 1;
}

.dot {
    display: inline-block;
    margin-right: 5px;
}

.description-card {
    background: white;
    border-radius: 1em;
    border: 0.4em solid black;
    box-shadow: 0.3em 0.3em black;
    padding: 1.5em;
    margin: 25px auto;
    max-width: 1400px;
}

.description-title {
    font-size: 1.8em;
    color: black;
    margin-bottom: 0.8em;
    display: flex;
    align-items: center;
    gap: 10px;
    word-break: break-word;
    line-height: 1.2;
    letter-spacing: -0.3px;
}

.svg-icon {
    width: 1em;
    height: 1em;
    background-color: black;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.svg-icon svg {
    width: 0.5em;
    height: 0.5em;
}

.svg-icon path {
    fill: white;
    filter: drop-shadow(0 0 0.5px white);
}

.description-content {
    font-size: 1.1em;
    line-height: 1.6;
    color: #333;
    text-align: justify;
    word-break: break-word;
    overflow-wrap: break-word;
}

.description-content ul {
    list-style-type: none;
    padding-left: 0;
    margin-top: 0.8em;
    margin-bottom: 0.8em;
}

.description-content li {
    margin-bottom: 0.4em;
    text-align: justify;
    word-break: break-word;
}

.receipt-container {
    width: 100%;
    max-width: 1400px;
    background: white;
    border: 2px dashed #ccc;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    font-family: 'Courier New', monospace;
    margin: 40px auto;
}

.receipt-shop-name {
    font-size: 1.4rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 15px;
    color: #333;
    word-break: break-word;
}

.receipt-info {
    text-align: center;
    font-size: 0.95rem;
    margin-bottom: 20px;
    color: #666;
    word-break: break-word;
}

.receipt-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    table-layout: fixed;
}

.receipt-table thead {
    border-bottom: 2px solid #333;
}

.receipt-table th {
    text-align: left;
    padding: 10px 5px;
    font-weight: bold;
    font-size: 1rem;
    word-break: break-word;
}

.receipt-table th:first-child {
    width: 70%;
    padding-left: 10px;
}

.receipt-table th:nth-child(2) {
    width: 5%;
    min-width: 10px;
}

.receipt-table th:last-child {
    width: 25%;
    text-align: right;
    padding-right: 10px;
}

.receipt-table td {
    padding: 8px 5px;
    border-bottom: 1px solid #eee;
    font-size: 0.95rem;
    word-break: break-word;
    overflow-wrap: break-word;
    vertical-align: top;
}

.receipt-table td:first-child {
    width: 70%;
    padding-left: 10px;
}

.receipt-table td:nth-child(2) {
    width: 5%;
    min-width: 10px;
    border: none;
}

.receipt-table td:last-child {
    width: 25%;
    text-align: right;
    padding-right: 10px;
    white-space: normal;
    overflow-wrap: break-word;
    word-break: keep-all;
    min-width: 80px;
}

.receipt-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.1rem;
    font-weight: bold;
    margin: 25px 0;
    padding-top: 12px;
    border-top: 2px dashed #ccc;
    flex-wrap: wrap;
    gap: 10px;
}

.receipt-barcode {
    display: flex;
    justify-content: center;
    margin: 20px 0;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
    font-weight: bold;
    font-size: 1rem;
    word-break: break-word;
    text-align: center;
}

.receipt-thanks {
    font-size: 0.85rem;
    text-align: center;
    margin-top: 8px;
    color: #d9534f;
    font-style: italic;
    border: 1px solid #f0ad4e;
    padding: 10px;
    background: #fff8e1;
    border-radius: 4px;
    word-break: break-word;
}

.custom-button-container {
    display: flex;
    justify-content: center;
    margin: 40px auto;
    max-width: 1400px;
}

.button-borders {
    position: relative;
    width: fit-content;
    height: fit-content;
}

.button-borders:before {
    content: "";
    position: absolute;
    width: calc(100% + 0.5em);
    height: 50%;
    left: -0.3em;
    top: -0.3em;
    border: 1px solid #000;
    border-bottom: 0px;
}

.button-borders:after {
    content: "";
    position: absolute;
    width: calc(100% + 0.5em);
    height: 50%;
    left: -0.3em;
    bottom: -0.3em;
    border: 1px solid #000;
    border-top: 0px;
    z-index: 0;
}

.primary-button.static-black-button {
    font-family: 'Ropa Sans', sans-serif;
    color: white;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 0.05rem;
    border: 1px solid #000;
    padding: 0.8rem 3rem;
    background-color: #000;
    background-size: 200%;
    background-position: 200%;
    background-repeat: no-repeat;
    position: relative;
    z-index: 1;
    min-width: 250px;
    text-transform: none;
    transition: none!important;
    animation: none!important;
}

.primary-button.static-black-button:hover {
    border: 1px solid #000;
    color: white;
    background-color: #000;
    background-position: 200%;
    transform: none;
}

.primary-button.static-black-button:before {
    content: "";
    position: absolute;
    background-color: #000;
    width: 0.2rem;
    height: 0.2rem;
    top: -1px;
    left: -1px;
    transition: none;
}

.primary-button.static-black-button:hover:before {
    background-color: #fff;
}

.primary-button.static-black-button:after {
    content: "";
    position: absolute;
    background-color: #000;
    width: 0.3rem;
    height: 0.3rem;
    bottom: -1px;
    right: -1px;
    transition: none;
}

.primary-button.static-black-button:hover:after {
    background-color: #fff;
}

.action-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 30px auto 60px;
    width: 100%;
    max-width: 1400px;
    overflow: visible;
    padding: 0 20px;
}

.action-button {
    padding: 16px 20px;
    border-radius: 30px;
    border: none;
    font-size: 17px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #fff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: bold;
    font-family: 'Bayon', sans-serif;
    white-space: nowrap;
    text-align: center;
    width: 100%;
    min-height: 60px;
    box-sizing: border-box;
    word-break: keep-all;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

.action-button.route {
    background: linear-gradient(45deg, #4169E1, #6495ED);
}

.action-button.photos {
    background: linear-gradient(45deg, #FF4500, #FF6347);
}

.action-button.reviews {
    background: linear-gradient(45deg, #FFD700, #FFEC8B);
    color: #000;
}

.action-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
}

.action-button i {
    font-size: 18px;
}

@media (max-width: 1024px) {
    .detail-hero {
        padding: 120px 0 45px !important;
    }
}

@media (min-width: 1025px) {
    .detail-title {
        font-size: 2.5rem;
    }
    
    .description-card {
        padding: 2.5em;
    }
    
    .description-title {
        font-size: 2.2em;
    }
    
    .description-content {
        font-size: 1.3em;
    }
    
    .action-buttons {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }
    
    .action-button {
        padding: 18px 25px;
        font-size: 18px;
        min-height: 65px;
        border-radius: 35px;
    }
    
    .action-button i {
        font-size: 20px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .detail-title {
        font-size: 2.2rem;
    }
    
    .description-card {
        padding: 2em;
    }
    
    .description-title {
        font-size: 2em;
    }
    
    .description-content {
        font-size: 1.2em;
    }
    
    .receipt-container {
        padding: 25px;
    }
    
    .action-buttons {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
    
    .action-button {
        padding: 14px 18px;
        font-size: 16px;
        min-height: 55px;
        border-radius: 28px;
    }
    
    .action-button i {
        font-size: 18px;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .detail-title {
        font-size: 2rem;
    }
    
    .detail-location {
        font-size: 1.1rem;
    }
    
    .detail-rating {
        font-size: 1rem;
    }
    
    .description-title {
        font-size: 1.8em;
    }
    
    .description-content {
        font-size: 1.1em;
    }
    
    .receipt-table th:first-child,
    .receipt-table td:first-child {
        width: 60%;
    }
    
    .receipt-table th:last-child,
    .receipt-table td:last-child {
        width: 30%;
        min-width: 90px;
    }
    
    .action-buttons {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .action-button {
        padding: 14px 16px;
        font-size: 15px;
        min-height: 50px;
        border-radius: 25px;
    }
    
    .action-button i {
        font-size: 16px;
    }
    
    .action-button.reviews {
        grid-column: 1 / -1;
    }
}

@media (max-width: 480px) {
    .detail-title {
        font-size: 1.8rem;
    }
    
    .detail-location {
        font-size: 1.1rem;
    }
    
    .detail-rating {
        font-size: 1rem;
    }
    
    .description-card {
        padding: 1.2em;
        margin: 20px auto;
    }
    
    .description-title {
        font-size: 1.6em;
    }
    
    .description-content {
        font-size: 1em;
        line-height: 1.5;
    }
    
    .receipt-container {
        padding: 15px;
        margin: 30px auto;
    }
    
    .receipt-table th:first-child,
    .receipt-table td:first-child {
        width: 55%;
        padding-left: 5px;
    }
    
    .receipt-table th:last-child,
    .receipt-table td:last-child {
        width: 35%;
        min-width: 80px;
        padding-right: 5px;
        font-size: 0.85rem;
    }
    
    .receipt-table th,
    .receipt-table td {
        font-size: 0.9rem;
        padding: 6px 4px;
    }
    
    .receipt-table td:last-child {
        word-break: break-word;
        overflow-wrap: anywhere;
        hyphens: auto;
        white-space: normal;
        line-height: 1.3;
    }
    
    .custom-button-container {
        margin: 30px auto;
    }
    
    .primary-button.static-black-button {
        font-size: 14px;
        padding: 0.7rem 1.5rem;
        min-width: 220px;
    }
    
    .action-buttons {
        grid-template-columns: 1fr;
        gap: 12px;
        margin: 25px auto 50px;
        padding: 0 15px;
    }
    
    .action-button {
        padding: 14px 20px;
        font-size: 15px;
        min-height: 52px;
        border-radius: 25px;
        white-space: normal;
        line-height: 1.2;
        text-align: center;
    }
    
    .action-button i {
        font-size: 16px;
        flex-shrink: 0;
    }
    
    .action-button span {
        flex-grow: 1;
        text-align: center;
    }
}

@media (max-width: 360px) {
    .detail-title {
        font-size: 1.6rem;
    }
    
    .detail-location {
        font-size: 1rem;
    }
    
    .detail-rating {
        font-size: 0.95rem;
    }
    
    .receipt-table th:first-child,
    .receipt-table td:first-child {
        width: 50%;
        font-size: 0.85rem;
    }
    
    .receipt-table th:last-child,
    .receipt-table td:last-child {
        width: 40%;
        min-width: 70px;
        font-size: 0.8rem;
        padding-right: 3px;
    }
    
    .receipt-table th:nth-child(2),
    .receipt-table td:nth-child(2) {
        width: 10%;
        min-width: 5px;
    }
    
    .receipt-table td:last-child {
        word-break: break-all;
        overflow-wrap: break-word;
    }
    
    .custom-button-container {
        margin: 25px auto;
    }
    
    .primary-button.static-black-button {
        font-size: 13px;
        padding: 0.6rem 1.2rem;
        min-width: 200px;
    }
    
    .action-buttons {
        gap: 10px;
        padding: 0 10px;
    }
    
    .action-button {
        padding: 12px 16px;
        font-size: 14px;
        min-height: 48px;
        border-radius: 22px;
    }
    
    .action-button i {
        font-size: 15px;
    }
}

@media (max-width: 768px) and (orientation: landscape) {
    .action-buttons {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    
    .action-button {
        padding: 10px 12px;
        font-size: 14px;
        min-height: 45px;
        border-radius: 20px;
        white-space: nowrap;
    }
    
    .action-button i {
        font-size: 14px;
    }
    
    .receipt-table th:first-child,
    .receipt-table td:first-child {
        width: 65%;
    }
    
    .receipt-table th:last-child,
    .receipt-table td:last-child {
        width: 30%;
        font-size: 0.9rem;
    }
}

@media (min-width: 1600px) {
    .action-buttons {
        max-width: 1200px;
    }
    
    .action-button {
        padding: 20px 30px;
        font-size: 20px;
        min-height: 70px;
        border-radius: 40px;
    }
    
    .action-button i {
        font-size: 22px;
    }
    
    .receipt-table th:last-child,
    .receipt-table td:last-child {
        width: 20%;
    }
    
    .receipt-table th:first-child,
    .receipt-table td:first-child {
        width: 75%;
    }
}
#detail-page-banner-container, .banner-card {
    display: none !important;
}