.full-page-modal .modal-dialog {
    max-width: none;
    width: 100%;
    height: 100vh;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

.full-page-modal .modal-content {
    width: 100%;
    height: 100vh;
    min-height: 100vh;
    border: none;
    border-radius: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    overflow: auto;
    position: relative;
}

.full-page-modal img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.full-page-modal .btn-close {
    position: absolute;
    top: 24px;
    right: 24px;
    z-index: 1001;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    padding: 12px;
    font-size: 17px;
    opacity: 1;
    color: #222;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
    border: none;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.full-page-modal .btn-close:hover {
    background: #ffffff;
    transform: rotate(90deg) scale(1.1);
}

.full-page-modal .btn-close::before {
    content: "\f00d";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
}

.tom-pull-button {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    z-index: 1000;
    background: linear-gradient(135deg, #1a73e8, #0d47a1);
    color: white;
    padding: 24px 14px;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    border-radius: 12px 0 0 12px;
    cursor: pointer;
    font-size: 13.6px;
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    border: none;
    box-shadow: -4px 0 12px rgba(0, 0, 0, 0.25);
    transition: all 0.3s ease;
    letter-spacing: 1.2px;
    min-height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tom-pull-button:hover {
    background: linear-gradient(135deg, #0d47a1, #002b7a);
    transform: translateY(-50%) translateX(-8px);
    box-shadow: -6px 0 16px rgba(0, 0, 0, 0.3);
}

.tom-pull-button:active {
    transform: translateY(-50%) translateX(-4px);
}

.full-page-modal.show .modal-content {
    animation: modalFadeIn 0.4s ease-out;
}

.full-page-modal.show img {
    animation: imageZoomIn 0.5s ease-out 0.1s both;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

.tom-info-modal-container {
    width: 100%;
    min-height: 100vh;
    position: relative;
    background: linear-gradient(135deg, #f0f4f8 0%, #d9e2ec 100%);
    border-radius: 0;
    overflow-x: hidden;
    overflow-y: auto;
    box-shadow: none;
    margin: 0;
    padding: 0;
    font-family: "Poppins", sans-serif;
    display: flex;
    flex-direction: column;
}

.tom-background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.95) 0%,
        rgba(255, 255, 255, 0.85) 30%,
        rgba(255, 255, 255, 0.6) 50%,
        rgba(255, 255, 255, 0.3) 70%,
        transparent 100%
    );
    pointer-events: none;
    z-index: 2;
}

.tom-cyclist-image {
    position: absolute;
    top: 0;
    left: 40%;
    right: 0;
    bottom: 0;
    background-image: url("../images/tom-promotion/cyclist.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.85;
    z-index: 1;
    mask-image: linear-gradient(to left, transparent 0%, rgba(0, 0, 0, 1) 40%);
    -webkit-mask-image: linear-gradient(
        to left,
        transparent 0%,
        rgba(0, 0, 0, 1) 40%
    );
}

.tom-info-modal-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: -60px;
    width: 240px;
    height: 100%;
    background: radial-gradient(
            ellipse 90px 60px at 30px 140px,
            rgba(255, 255, 255, 0.85) 0%,
            transparent 50%
        ),
        radial-gradient(
            ellipse 110px 70px at 60px 180px,
            rgba(255, 255, 255, 0.75) 0%,
            transparent 50%
        ),
        radial-gradient(
            ellipse 130px 90px at 40px 220px,
            rgba(255, 255, 255, 0.65) 0%,
            transparent 50%
        ),
        radial-gradient(
            ellipse 100px 65px at 80px 270px,
            rgba(255, 255, 255, 0.75) 0%,
            transparent 50%
        ),
        radial-gradient(
            ellipse 120px 80px at 50px 320px,
            rgba(255, 255, 255, 0.85) 0%,
            transparent 50%
        ),
        radial-gradient(
            ellipse 95px 55px at 70px 370px,
            rgba(255, 255, 255, 0.65) 0%,
            transparent 50%
        ),
        radial-gradient(
            ellipse 140px 100px at 35px 420px,
            rgba(255, 255, 255, 0.75) 0%,
            transparent 50%
        ),
        radial-gradient(
            ellipse 105px 70px at 90px 470px,
            rgba(255, 255, 255, 0.85) 0%,
            transparent 50%
        ),
        radial-gradient(
            ellipse 125px 85px at 45px 520px,
            rgba(255, 255, 255, 0.65) 0%,
            transparent 50%
        );
    z-index: 2;
    pointer-events: none;
    animation: cloudFloat 18s ease-in-out infinite;
}

@keyframes cloudFloat {
    0%,
    100% {
        transform: translateY(0px) translateX(0px);
    }
    25% {
        transform: translateY(-12px) translateX(6px);
    }
    50% {
        transform: translateY(-6px) translateX(-4px);
    }
    75% {
        transform: translateY(-18px) translateX(10px);
    }
}

.tom-event-title {
    top: 3%;
    left: 3%;
    z-index: 5;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.tom-event-title .tom-hotel-logo {
    height: clamp(42.5px, 12vw, 76.5px);
    width: auto;
    object-fit: contain;
    box-shadow: none;
    border: 0;
}

.tom-event-title .tom-tour-title,
.tom-event-title .tom-location-title {
    font-size: clamp(1.02rem, 4vw, 2.125rem);
    font-weight: 900;
    color: #1a73e8;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    line-height: 0.9;
    margin: clamp(2px, 1vw, 6px) 0;
}

.tom-event-title .tom-year {
    font-size: clamp(1.275rem, 6vw, 2.55rem);
    font-weight: 900;
    color: #ffab00;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    transform: perspective(600px) rotateX(10deg);
}

.tom-event-title .tom-year:hover {
    color: #ffab00;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    transform: perspective(600px) rotateX(10deg);
}

.tom-two-column {
    display: flex;
    flex-direction: row;
    width: 100%;
    min-height: 100vh;
    flex: 1;
    position: relative;
    z-index: 3;
    margin: 0;
    padding: 0;
    align-items: stretch;
}

.tom-left-column {
    flex: 0 0 40%;
    width: 40%;
    max-width: 40%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem 2%;
    background: transparent;
    position: relative;
    z-index: 4;
    box-sizing: border-box;
    text-align: center;
}

.tom-right-column {
    flex: 0 0 60%;
    width: 60%;
    max-width: 60%;
    background: transparent;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    padding: 1rem;
    overflow-y: auto;
    max-height: 100vh;
    text-align: center;
}

.tom-main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
    overflow-y: auto;
    overflow-x: hidden;
    max-height: 100vh;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
}

.tom-discount-highlight {
    width: 100%;
    max-width: 100%;
    background: linear-gradient(135deg, #1a73e8 0%, #0d47a1 100%);
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    text-align: center;
    box-sizing: border-box;
}

.tom-bottom-section {
    background: linear-gradient(135deg, #1a73e8 0%, #0d47a1 100%);
    padding: 24px 4%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
    margin: 0;
    border-radius: 0;
}

.tom-discount-info {
    flex: 1;
}

.tom-special-discount,
.tom-discount-text {
    font-size: 0.85rem;
    font-weight: 900;
    color: #ffab00;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
    line-height: 1.1;
    margin: 1px 0;
}

.tom-participants-text,
.tom-starts-text {
    font-size: 0.5525rem;
    color: #ffffff;
    font-weight: 600;
    margin: 1px 0;
}

.tom-price {
    font-size: 0.765rem;
    font-weight: 800;
    color: #ffffff;
    margin: 1px 0;
}

.tom-minimum {
    font-size: 0.51rem;
    color: #e0e0e0;
    font-weight: 400;
    margin: 1px 0;
}

.tom-booking-section {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    position: relative;
    width: 100%;
    text-align: right;
}

.tom-book-now-btn {
    background: linear-gradient(135deg, #ffab00 0%, #f57f17 100%);
    color: white;
    border: none;
    padding: 16px 36px;
    border-radius: 50px;
    font-size: 1.105rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(255, 171, 0, 0.4);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.tom-book-now-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(255, 171, 0, 0.5);
    background: linear-gradient(135deg, #f57f17 0%, #ef6c00 100%);
}

.tom-book-now-btn:active {
    transform: translateY(-2px);
}

.tom-cursor-pointer {
    font-size: 0.935rem;
    animation: bounce 1.2s infinite;
    position: absolute;
    right: -40px;
    top: 50%;
    transform: translateY(-50%) rotate(-45deg);
    pointer-events: none;
}

@keyframes bounce {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

.tom-validity {
    font-size: 0.765rem;
    color: #000;
    text-align: right;
}

.tom-footer {
    background: #0d47a1;
    padding: 18px 4%;
    text-align: center;
    position: relative;
    z-index: 2;
    margin: 0;
}

.tom-contact-info {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 0 4%;
}

.tom-phone {
    color: white;
    font-size: 0.935rem;
    font-weight: 500;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
}

.tom-website {
    color: #ffffff;
}

.tom-left-column::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 60px;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.9) 100%
    );
    z-index: 10;
    pointer-events: none;
}

.tom-right-column::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 120px;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.7) 0%,
        transparent 100%
    );
    z-index: 10;
    pointer-events: none;
}

.tom-rate-matrix-title {
    font-size: 1.7rem;
    font-weight: 800;
    color: #1a73e8;
    text-align: center;
    margin-bottom: 24px;
}

.tom-table-responsive {
    width: 100%;
    overflow-x: auto;
    overflow-y: visible;
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
    margin: 0 auto;
    text-align: center;
}

.tom-rate-table {
    width: 100%;
    min-width: 500px;
    max-width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    overflow: hidden;
    font-size: clamp(0.5525rem, 0.8vw, 0.7225rem);
}

.tom-rate-table th,
.tom-rate-table td {
    padding: clamp(4px, 1vw, 8px);
    text-align: center;
    font-size: inherit;
    border: 1px solid #e0e0e0;
    word-wrap: break-word;
    max-width: 80px;
}

.tom-rate-table th {
    background: #1a73e8;
    color: white;
    font-weight: 700;
}

.tom-rate-table td.tom-room-type {
    font-weight: 700;
    text-align: left;
    background: #f5f5f5;
}

.tom-rate-table td.tom-rate-cell {
    color: #333;
}

.tom-rate-cell.rate-consistent {
    background-color: #d4edda;
}

.tom-rate-cell.rate-changed {
    background-color: #fff3cd;
}

.tom-rate-table td.tom-rate-cell .tom-rate-amount {
    font-weight: 600;
}

.tom-rate-table td.tom-rate-cell .tom-rate-per {
    font-size: 0.7225rem;
    color: #666;
}

.tom-rate-table tfoot td.tom-discount-cell {
    background: linear-gradient(135deg, #1a73e8 0%, #0d47a1 100%);
    padding: 0;
    border: none;
    text-align: left;
}

.tom-rate-table tfoot td.tom-discount-cell .tom-discount-info {
    padding: 24px 4%;
}

.tom-welcome-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
    margin-bottom: 24px;
    width: 100%;
    max-width: 100%;
    text-align: left;
    box-sizing: border-box;
}

.tom-welcome-title {
    font-size: 1.87rem;
    font-weight: 800;
    color: #1a73e8;
    margin-bottom: 12px;
}

.tom-welcome-text {
    font-size: 0.935rem;
    color: #444;
    line-height: 1.6;
    margin-bottom: 24px;
    text-align: left;
}

.tom-features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
    text-align: left;
}

.tom-features-list li {
    font-size: clamp(0.765rem, 2.5vw, 0.85rem);
    color: #333;
    margin-bottom: 0.75rem;
    position: relative;
    padding-left: 28px;
    line-height: 1.4;
    text-align: left;
}

.tom-features-list li::before {
    content: "\f058";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: #1a73e8;
    position: absolute;
    left: 0;
    top: 0;
    font-size: 0.85em;
}

@media (max-width: 1200px) {
    .tom-event-title .tom-hotel-logo {
        height: 68px;
    }

    .tom-event-title .tom-tour-title,
    .tom-event-title .tom-location-title {
        font-size: 2.55rem;
    }

    .tom-event-title .tom-year {
        font-size: 2.975rem;
    }
}

@media (max-width: 768px) {
    .tom-info-modal-container {
        overflow-y: auto;
        min-height: 100vh;
        height: auto;
    }

    .tom-two-column {
        flex-direction: column;
        min-height: auto;
        height: auto;
        align-items: center;
    }

    .tom-right-column {
        display: none !important;
    }

    .tom-left-column {
        order: 1;
        padding: 2rem;
        flex: none;
        width: 100%;
        max-width: 100%;
        justify-content: flex-start;
        align-items: center;
        text-align: center;
        min-height: 100vh;
        overflow-y: auto;
    }

    .tom-cursor-pointer {
        display: none;
    }

    .tom-booking-section {
        align-items: center;
    }

    .tom-cyclist-image {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        mask-image: linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0.6) 0%,
            rgba(0, 0, 0, 0.3) 40%,
            transparent 100%
        );
        -webkit-mask-image: linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0.6) 0%,
            rgba(0, 0, 0, 0.3) 40%,
            transparent 100%
        );
        height: 100vh;
        width: 100%;
        opacity: 0.4;
        z-index: 1;
    }

    .tom-event-title {
        position: relative;
        top: auto;
        left: auto;
        align-items: flex-start;
        text-align: left;
        margin-bottom: 2rem;
        z-index: 10;
        width: 100%;
    }

    .tom-welcome-section {
        margin-bottom: 2rem;
        padding: 1.5rem;
        width: 100%;
        max-width: 500px;
        z-index: 10;
        position: relative;
        text-align: left;
    }

    .tom-bottom-section {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        padding: 1.5rem;
        margin-top: 2rem;
        width: 100%;
        max-width: 500px;
        z-index: 10;
        position: relative;
    }

    .tom-booking-section {
        align-items: center;
        width: 100%;
    }

    .tom-validity {
        text-align: center;
    }

    .tom-contact-info {
        flex-direction: column;
        gap: 8px;
        align-items: center;
    }

    .tom-phone {
        font-size: clamp(0.68rem, 3.5vw, 0.8075rem);
        width: 100%;
        text-align: center;
        padding: 6px 12px;
    }

    .tom-special-discount,
    .tom-discount-text {
        font-size: clamp(1.275rem, 5vw, 1.7rem);
    }

    .tom-book-now-btn {
        padding: clamp(12px, 3vw, 16px) clamp(24px, 6vw, 32px);
        font-size: clamp(0.85rem, 3vw, 0.935rem);
        width: 100%;
        max-width: 300px;
    }

    .tom-footer {
        width: 100%;
        max-width: 500px;
        z-index: 10;
        position: relative;
    }
}

@media (max-width: 480px) {
    .tom-left-column {
        padding: 1rem;
        min-height: 100vh;
        width: 100%;
        gap: 1rem;
    }

    .tom-right-column {
        display: none !important;
    }

    .tom-welcome-section {
        padding: 1rem;
        margin-bottom: 1rem;
        width: 100%;
        max-width: 100%;
    }

    .tom-cursor-pointer {
        display: none;
    }

    .tom-booking-section {
        align-items: center;
    }

    .tom-welcome-title {
        font-size: clamp(1.02rem, 6vw, 1.36rem);
    }

    .tom-welcome-text {
        font-size: clamp(0.7225rem, 4vw, 0.85rem);
        line-height: 1.4;
    }

    .tom-features-list li {
        font-size: clamp(0.68rem, 3.5vw, 0.8075rem);
        margin-bottom: 6px;
    }

    .tom-special-discount,
    .tom-discount-text {
        font-size: clamp(0.85rem, 6vw, 1.275rem);
        line-height: 1.1;
    }

    .tom-book-now-btn {
        padding: clamp(10px, 3vw, 14px) clamp(20px, 6vw, 28px);
        font-size: clamp(0.765rem, 4vw, 0.85rem);
        gap: 8px;
        width: 100%;
        max-width: 280px;
    }

    .tom-bottom-section {
        padding: 1rem;
        max-width: 100%;
    }

    .tom-footer {
        padding: 1rem;
        max-width: 100%;
    }

    .tom-phone,
    .tom-website {
        font-size: clamp(0.68rem, 3.5vw, 0.8075rem);
    }

    .tom-event-title {
        margin-bottom: 1rem;
    }
}

@media (min-width: 1400px) {
    .tom-left-column {
        flex: 0 0 25%;
        width: 25%;
        max-width: 25%;
    }

    .tom-right-column {
        flex: 0 0 75%;
        width: 75%;
        max-width: 75%;
    }

    .tom-rate-table {
        max-width: none;
        width: 100%;
    }
}

@media (min-width: 1800px) {
    .tom-left-column {
        flex: 0 0 30%;
        width: 30%;
        max-width: 30%;
    }

    .tom-right-column {
        flex: 0 0 70%;
        width: 70%;
        max-width: 70%;
    }
}

@media (max-height: 500px) and (orientation: landscape) and (max-width: 768px) {
    .tom-info-modal-container {
        overflow-y: auto;
        min-height: 100vh;
        height: auto;
    }

    .tom-two-column {
        flex-direction: column;
        min-height: auto;
        height: auto;
    }

    .tom-left-column {
        flex: none;
        order: 1;
        padding: 1rem;
        width: 100%;
        max-width: 100%;
        min-height: auto;
        justify-content: flex-start;
        gap: 0.5rem;
        overflow-y: auto;
    }

    .tom-right-column {
        display: none !important;
    }

    .tom-cyclist-image {
        height: 100vh;
        opacity: 0.3;
    }

    .tom-event-title {
        margin-bottom: 0.5rem;
    }

    .tom-welcome-section {
        padding: 0.75rem;
        margin-bottom: 0.5rem;
        width: 100%;
        max-width: 600px;
    }

    .tom-welcome-text {
        font-size: clamp(0.6375rem, 2.5vw, 0.765rem);
        line-height: 1.3;
    }

    .tom-features-list li {
        font-size: clamp(0.595rem, 2.2vw, 0.68rem);
        margin-bottom: 4px;
    }

    .tom-bottom-section {
        padding: 0.75rem;
        max-width: 600px;
    }

    .tom-footer {
        padding: 0.75rem;
        max-width: 600px;
    }

    .tom-book-now-btn {
        max-width: 200px;
    }
}

@media (max-width: 320px) {
    .tom-left-column {
        padding: 0.75rem 2%;
        height: 100vh;
        min-height: 100vh;
    }

    .tom-right-column {
        display: none !important;
    }

    .tom-welcome-section {
        padding: 0.75rem;
    }

    .tom-welcome-text {
        font-size: 0.68rem;
        line-height: 1.3;
    }

    .tom-features-list li {
        font-size: 0.6375rem;
        margin-bottom: 4px;
    }

    .tom-bottom-section {
        padding: 0.75rem 2%;
    }

    .tom-footer {
        padding: 0.75rem 2%;
    }
}

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .tom-rate-table {
        border-collapse: separate;
        border-spacing: 0;
    }

    .tom-rate-table th,
    .tom-rate-table td {
        border-width: 0.5px;
    }
}

@media print {
    .tom-info-modal-container {
        background: white !important;
        box-shadow: none !important;
    }

    .tom-cyclist-image {
        display: none !important;
    }

    .tom-background-overlay,
    .tom-info-modal-container::before {
        display: none !important;
    }

    .tom-pull-button,
    .full-page-modal .btn-close {
        display: none !important;
    }

    .tom-rate-table {
        page-break-inside: avoid;
    }
}

body.modal-open {
    overflow: hidden !important;
    padding-right: 0 !important;
}

.modal {
    padding: 0 !important;
}

.modal.fade .modal-dialog {
    transition: none;
    transform: none;
}

.modal.show .modal-dialog {
    transform: none;
}

* {
    box-sizing: border-box;
}

.tom-info-modal-container * {
    box-sizing: border-box;
}
